API Authentication
The Allegro REST API authenticates requests using Bearer tokens. You generate these tokens in the Allegro admin UI — each token is tied to your user account and carries the same permissions.
Creating a token
- Sign in to your Allegro instance.
- Open the user menu in the top-right corner and choose Settings.
- Select API Tokens from the left sidebar.
- Click Create Token, give it a descriptive name (e.g.
data-pipeline), and confirm. - Copy the token value that appears — it is only shown once.
Store your token securely
The token value is displayed only at creation time. If you lose it, delete the token and create a new one.
Using the token
Include the token as a Bearer value in the Authorization header of every
request:
Authorization: Bearer <your-token>
Example with curl:
curl https://your-instance.allegrocdp.com/api/v1/audience-members \
-H "Authorization: Bearer <your-token>" \
-H "Accept: application/json"
Revoking a token
To revoke a token, return to Settings → API Tokens, find the token in the list, and click Delete. The token stops working immediately.