POST
/
access-tokens
curl --request POST \
  --url https://api.live.paisr.tech/{version}/access-tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "Postman",
  "scopes": [
    "invoices.read"
  ]
}'
{
  "success": true,
  "data": {
    "id": "tkn_123456",
    "secret": "nafukdsk43nz13kb7gx3qk"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
The details required to create an access token.

The body is of type object.

Response

200
application/json
Successfully created token.

The response is of type object.