Our API is working with an OAuth (Open Authorization) restriction. For every request within the advanced API, you need an access token. You can request an access token with your username and password. If you haven't an account or question please write at [email protected].
How to get the access token
To get an access token, you need to send an POST request with your user credentials.
POST https://oauth2.ad4mat.net/oauth2/token
Request body:
header: {
Content-Type: application/x-www-form-urlencoded
},
body: {
grant_type: password,
username: YOUR_EMAIL_FOR_SUITE_LOGIN,
password: YOUR_PASSWORD_FOR_SUITE_LOGIN,
client_id: publisher-gateway,
client_secret: PqyXxm1iIWM7OVVD4x
}
curl example
curl --location --request POST 'https://oauth2.ad4mat.net/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=YOUR_EMAIL_FOR_SUITE_LOGIN' \
--data-urlencode 'password=YOUR_PASSWORD_FOR_SUITE_LOGIN' \
--data-urlencode 'client_id=publisher-gateway' \
--data-urlencode 'client_secret=PqyXxm1iIWM7OVVD4x'
response example
{
"scope": "",
"access_token": "4cdeb777-f96a-4e8f-bfab-e8e43b4209b5",
"token_type": "bearer",
"expires_in": 3600,
"refresh_token": "e4ac857a-a83b-4a05-9baa-a92c0d8f2a79"
}