Principals API

Principals are users with access to the Marketing Cloud Personalization platform. The Personalization Principals API enables you to retrieve a full list of your Principals, which can help you adhere to various governance, risk, and compliance (GRC) guidelines.

GET /api/principals

https://<accountName>.<instance>.evergage.com/api/principals

URL ParameterRequired?Description
accountNameYesThe Personalization account name. You can find the accountName by accessing Gears from the Personalization UI and reviewing the URL. For example, if the Gears URL is https://demo.us-1.evergage.com/, then the account name is demo.
instanceYesThe Personalization instance identifier. You can find this value by accessing Gears from the Personalization UI and reviewing the URL. For example, if the Gears URL is https://demo.us-1.evergage.com/, then the instance identifier is us-1.
  • application/json

Authorization: Basic <base64-encoded-API-token>

The Principals API uses API tokens to authenticate requests. Your API token must be a strict Base64 encoding of your API Key ID and its API Secret Key, separated by a colon. You can use an existing API token if it has the required permissions. Alternatively, you can ask an account administrator to generate a new one from the Personalization UI. For more information on API tokens, see Personalization API Tokens on Salesforce Help.

Alternatively, if you use cURL to interact with the API, you can send your API Key ID and its API Key Secret using the -u "apiKeyId:apiKeySecret" command-line option. cURL automatically converts the apiKeyId:apiKeySecret pair into a Base64-encoded string and adds Authorization: Basic <base64-encoded-API-token> to the request header.

The following is an example API request sent using cURL.

The following is an example of a response to a valid GET request made to the Principals API endpoint.