Skip to main content
POST
/
v1
/
auth
/
tokens
Create review API token
curl --request POST \
  --url https://api.propelcode.ai/v1/auth/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scopes": [],
  "expires_in_days": 183
}
'
{
  "token_id": 123,
  "token": "<string>",
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "expires_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.propelcode.ai/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint returns the raw token value once. Store it securely when you create it.

Authorizations

Authorization
string
header
required

Dashboard authentication token.

Body

application/json
name
string
required

Token display name.

scopes
enum<string>[]
required
Minimum array length: 1
Available options:
reviews:read,
reviews:write
expires_in_days
integer

Optional token lifetime in days.

Required range: 1 <= x <= 365

Response

Token created.

token_id
integer
required
token
string
required
name
string
required
scopes
string[]
required
expires_at
string<date-time>