Authentication

Get your access token

This mutation is subject to change during BETA period.

With current implementation the token will expire in 4 hours.

Here is an example of the login query.

Query
Response
Query
mutation {
login(input: { email: "you@example.com", password: "12345678" }) {
token
message
code
success
}
}
Response
{
"data": {
"login": {
"token": "YOUR_TOKEN",
"message": "OK",
"code": "SUCCESS",
"success": true
}
}
}

If using GraphQL Playground then click the "HTTP HEADERS" on the bottom left and paste there the following (replace the YOUR_TOKEN with the value you have just received form the above mutation):

{
"authorization": "Bearer YOUR_TOKEN"
}