Page tree
Skip to end of metadata
Go to start of metadata

Legacy API tokens will expire and cease functioning at 00:00:00 GMT on June 1, 2020. Please refer to the migration instructions in this document to replace legacy API tokens with new API tokens before this date.

API Tokens are used to authenticate and authorize all API requests to Interaction Studio's REST APIThis REST API provides access to read and update data at several levels:

  • Create and update users and accounts within Interaction Studio
  • Receive behavioral data from offline systems
  • Receive historical transaction data
  • Create and update catalog data, including products and content
This Section Explains

This section describes how to create and manage Interaction Studio API tokens used to access the Interaction Studio REST API.

Sections in this Article

Create an API Token

The Interaction Studio REST API utilizes API tokens to authorize all data changes.

  1. Log into Interaction Studio as an Administrator
  2. Navigate to Security -> API Tokens 
  3. Click Create Token
  4. Permissions are set by default and should not be changed
    1. Can access API - not selected
    2. Can send events  - selected
  5. (Optional) If you want to restrict access to specific datasets in your account, add them in Restrict to Specific Datasets, otherwise the token will apply to all current and future datasets in your account
  6. (Optional) Add any Notes about the token as needed
  7. (Optional) Define an IP Accept List of addresses may use this token. If configured, requests originating from addresses not on the accept list will be rejected
  8. Click OK
  9. Once created, a dialog will appear where you can access the API Key ID and API Key Secret, which function like a username and password in an API request. Since these values can be used to access your data in Interaction Studio, they should be downloaded and stored securely. Once you close this dialog, you will be unable to access these values again.

Use an API Token in an API Request

When making an API request, you must set the HTTP Authorization Header using Basic encoding:

  • Most REST clients provide the option to set Basic credentials using a username / password. In this situation, supply the API Key ID as the username, and the API Secret Key as the password.
  • If you must construct the HTTP authorization header value manually, use Basic encoding as shown below:
Basic <encoded-credential>

Where <encoded-credential> is a strict Base64 encoding of

<api-key-id>:<api-secret-key>


Replace a Legacy API Token in API Request

Legacy tokens are no longer supported and will stop working on June 1, 2020.

When making an API request add a query string parameter called _at to the API URL. Attempting to use this parameter with a new API token will generate an error.

Migrating Legacy API Tokens to New API Tokens

  1. Determine if you are using any legacy API tokens (a token created prior to March 7, 2020)
    1. You can use the token's Key Age to determine if it is a legacy token
    2. If you need help determining if any of your API tokens are legacy tokens, please contact support
  2. Create new tokens to replace your legacy tokens using the procedure outlined above
  3. Replace API calls in your application(s) with the new calling method described above
    1. The new token key ID and secret must be supplied in the HTTP Authorization header
    2. Attempting to use the legacy _at query string parameter with a new token will produce an error