Authentication

How do I get an API token

For information on getting a token for this API go to the applications section on your agency portal.

Making authenticated request

To make calls to the API, send the API token in the Authorization HTTP header using the Bearer authentication scheme.

Example

curl --header "Authorization: Bearer {token}" https://api.basset.ws/{path}

Error response

401 - Unauthorized

{
  "message": "Unauthorized"
}

401 - Token Expired

{
  "message": "Token expired"
}

401 - Access Denied

Refresh authentication token

GET https://api.basset.ws/clients/applications/:application_id/token?refresh_token=:refresh_token

Method used to refresh an authentication bearer token

Path Parameters

Name
Type
Description

application_id

string

Oauth app ID

Query Parameters

Name
Type
Description

refresh_token

string

Refresh token created on agency portal

Last updated