Authorization
Authorization via Partner Token
Get partner token
Go to profile and generate Partner token
Get access token
Paste to mutation into playground left side terminal:
mutation
{
auth_token {accessToken}
}
Paste code into “HTTP Headers” tab, using your Partner Token (received from WhiteMarket) :
{
"X-partner-token" : "Partner Token"
}
Receive Authorization Token at right-side terminal.
Use it for further requests in order for our server to process them as legit ones.
This token has 24-hour lifetime
After 24 hours you will receive:
"error": {
"code": 401,
"message": "Expired JWT Token"
}
Please repeat step to receive new token.
Usage of access token
Paste to Authorization header Bearer ACCESS_TOKEN
In GraphQL playground:
{
"Authorization" : "Bearer ACCESS_TOKEN"
}