Authentication
This API surface is for integration partners building on top of the Rokt network. Rokt ecommerce partners integrating placements on their own checkout should use the Rokt Ecommerce developer docs instead.
Every call to the Partnerships API is authenticated with a short-lived access token passed as a bearer credential, plus your partner platform's parent account ID in an X-Platform-Parent-Account-Id header on writes. You obtain the access token by exchanging your long-lived API credentials (client_id + client_secret) at the Rokt auth endpoint.
Authorization: Bearer <access-token>
X-Platform-Parent-Account-Id: <your-platform-parent-account-id>
Get an access tokenGet an access token への直接リンク
Access-token acquisition is a two-step flow:
- Get API credentials (one-time). A
client_id+client_secretpair is provisioned for your platform. Issuance is currently white-glove — email smb-partnerships@rokt.com with your platform name, expected merchant volume, and the manager account ID you've been assigned. Self-serve issuance is on the roadmap. - Exchange API credentials for an access token (every ~5 minutes). POST the credentials to the Rokt auth endpoint to get a short-lived JWT access token. Use that access token as the
Authorization: Bearervalue on every Partnerships API call.
Treat client_secret like a password — store it in a secret manager, never check it into source, never expose it to a browser. Only the short-lived access token should travel to anything Partnerships-API-adjacent.
Exchange API credentials for an access tokenExchange API credentials for an access token への直接リンク
curl -X POST 'https://auth.rokt.com/api/v1/oauth/token' \
-H 'content-type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=rspub_xxxxxxxxxxxx' \
--data-urlencode 'client_secret=rsec_xxxxxxxxxxxx'
Standard OAuth2 client-credentials response:
{
"access_token": "eyJhbGciOiJSUzI1NiIs...",
"token_type": "Bearer",
"expires_in": 300
}
Pass access_token as Authorization: Bearer <access_token> on every Partnerships API call. expires_in is in seconds — roughly 5 minutes.