Get datastore attributes API

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

What is DataStore Metadata?

The data store metadata consists of data store id, datastore name, and the column attributes such as column name, column id, and the data type.

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

You can fetch the datastore metadata to know the datastore definition without logging into Webex Campaign. The fetched metadata is then used to analyze the datastore and take appropriate action to integrate with 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://<domain>/campaignapi/metadata/v3/datastore/
https://<domain>/campaignapi/resources/metadata/v3/datastore/88

Response Parameters

This API will return the following response parameters:

ParameterDescription
datastore-idReturns the datastore id.
datastore-nameReturns the datastore name.
columnsReturns the columns.

datatype: Returns the data type of the column.
id: Returns the id of the column.
name: Returns the name of the column.
max-length: Returns the maximum length of the column.

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.
1022Datastore Id does not exist
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
Language