Authentication

Endpoint

Method: POST
Type: RAW
URL: {{API_BASE_URL}}/auth/access-token

In order to make requests against Data API, client needs to perform authentication. We use Bearer Tokens method of authentication (https://oauth.net/2/bearer-tokens/). In order to obtain auth token,client submits credentials to /auth/access-token endpoint.

Credentials are provided by Adpos Pay as part of Data API signup process.

Request Parameters

Parameter Type Required Description
email string Y E-mail address
password string Y password
{
    "email": "admin@adpos.com",
    "password": "123456"
}

Response

Field Type Description
- data object data Object
access_token string Access token string
token_type string Token type
message string Message
- errors object Errors
status_code number Status code
Status: 200 ok
{
    "data": {
        "access_token": "this is a access token string",
        "token_type": "Bearer"
    }
}