Get profile attributes API

This API returns a list of Profiles and their corresponding attributes. You can also get information on a specific Profile and its attributes by specifying the Profile ID in the API request.

What is profile metadata?

The profile metadata consists of profile name, profile validity, and the attributes of the profile such as attribute name, attribute id, data type, and so on.

When should I fetch profile metadata? And what should I do after fetching it?

You can fetch the profile metadata to know the profile definition without logging into Webex Campaign. The fetched metadata is then used to analyze and modify the data of the data that is being added to the profile from a 3rd party system.

📘

Know your endpoint

Based on the domain you use to log in to Webex Campaign, the endpoint domain for your API varies. For more information, refer to the Know Your API Endpoints section.

Go to the Postman Collection section to learn how to import a Postman collection. Click the below button, If you already know how to import a postman collection.

Run In Postman

Request Headers

The following table describes the request headers:

Request HeaderDescription
content-Typeapplication/json
authorizationAccess token or API Secret Key in Bearer format

Example: Bearer $(key)

Request Example

https://yourdomain.webexcampaign.io/campaignapi/metadata/v3/profile/123123123
https://yourdomain.webexcampaign.io/campaignapi/metadata/v3/profile/

Response Parameters

This API will return the following response parameters:

ParameterDescription
profile-idReturns the profile ID.
profile-nameReturns the profile name.
attributesReturns an array of list of the attribute defined under the profile. Each attribute consists below info.
datatypeReturns the attribute data type in a JSObject.

group-name: Returns the attribute group name.
id: Returns the attribute id.
name : Returns the attribute name.
parent-groupname: Returns the attributes parent group name.
* value: Returns the attribute value.

Response Codes

The API will return code within the response as per the following table in case of failure scenarios.

HTTP Status CodeCode within API ResponseDescription
2001010The request was not processed.
2001021Profile Id does not exist
401430Authorization failed. This resource is not allowed to access using this TOKEN or KEY
401498Invalid token or Access token expired
405405Method not supported
429429Too many requests. Throttle limit reached for the time window.
499499Request failed. Check the exact reason of failure in application code and description of error stream.
500500Internal server error
Language
Authorization
Basic
base64
: