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.
description
string
required

Clear description on the token use case.

Example:

"Postman"

scopes
string[]
required

List scopes to attach to the token.

Response

200
application/json
Successfully created token.
success
boolean

Indicates if the request was successful.

data
object