Skip to content

Create a short-lived token

Request

Security
oauth2(Required scopes: auth.short-lived-token:create) or bearerAuth or apiKeyHeader
Bodyapplication/jsonrequired
permissionsArray of strings

List of permissions that the short-lived token can have. These can only be permissions that are already given to the calling user.

POST
/auth/token/short-lived
curl -i -X POST \
  https://sandboxapi.peach.finance/api/auth/token/short-lived \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "permissions": [
      "string"
    ]
  }'

Responses

JWT token

Bodyapplication/json
tokenstringrequired
Response
{ "token": "string" }