To request access and refresh tokens from the DISPL Ads External DSP API, you must perform a POST request to the login endpoint with your credentials. The access token provided upon a successful request has a lifetime of 30 minutes, while the refresh token is valid for 2 hours.
The following is an example JSON payload for the request to the https://api.dooh.one/api/v2/login/ endpoint:
{
"email": "<email>",
"password": "<password>"
}
Upon a successful authentication, the server will return a response containing both tokens in the following format:
{
"refresh": "<refresh_token>",
"access": "<access_token>"
}
The resulting access token must then be included in the X-Authorization header as a Bearer token for subsequent API calls.
Comments
0 comments
Please sign in to leave a comment.