Get profile query status API

This API is used to check the status of asynchronous profile requests if the request was processed before the result file path is returned.

📘

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)

Body Parameters

This API will return the following response parameters:

ParameterTypeMandatoryDescription
request-idStringYesSpecifies the “request-id”. The id is returned using "GetContactProfile” and “UpdateContactProfile” APIs in async mode.

Request Example

https://<client domain>/campaignapi/resources/v3/profilequerystatus/12345

Response Parameters

This API will return the following response parameters:

ParameterDescription
fileReturns the success file path. This parameter is returned using “Get Contact Profile” API in Async mode.
error-fileReturns the error file path. This parameter is available for the “UpdateContactProfile” API in async mode. The error-file will be part of the response.

Below is the error file format:
Record separator: New line character (\r\n).
Field Separator: , (comma)
Headers: Code, Description, and Index.
EnclosedBy: Data for the description field will be enclosed by "and will be escaped by .
Data: 123 , Failed, 1
123 , Failed, 31
123 , Failed, 40
update-countReturns the count of updated profiles. This parameter is returned for “Update Contact Profile” API in async mode.

Failure 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.
3005Invalid Profile ID
7031Profile Id and Profile name do not match.
401430Authorization failed. This resource is not allowed to access using this TOKEN or KEY
498Invalid 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
1001Invalid input JSON
Language