Authorization
Using OAuth2 credentials you will be able to authorize your app with THX API.
Obtain your clientId
and `clientSecret` in Developer -> API Keys of your campaign dashboard.
Create Authorization Header
Combine the client ID and client secret with a colon (
:
) separator.Example:
clientId:clientSecret
Encode the concatenated string using Base64 encoding.
Example:
Y2xpZW50SWQ6Y2xpZW50U2VjcmV0
Construct the Authorization header by prepending the word "Basic" followed by a space to the Base64-encoded string.
Example:
Basic Y2xpZW50SWQ6Y2xpZW50U2VjcmV0
Request access token
Create an HTTP request using your authorization header and the parameters given below to obtain an access token for our authorization server.
Create access token
POST
https://auth.thx.network/token
Headers
Name | Type | Description |
---|---|---|
Content-Type* | String | application/x-www-form-urlencoded |
Authorization* | String | Basic Y2xpZW50SWQ6Y2xpZW50U2VjcmV0 |
Request Body
Name | Type | Description |
---|---|---|
grant_type | String | client_credentials |
scope | String | openid events:write identities:read identities:write |
Last updated