Skip to main content
POST
/
access-token
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/access-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "expiredTime": "2024-03-25",
  "description": "<string>",
  "spaceIds": [
    "<string>"
  ],
  "baseIds": [
    "<string>"
  ],
  "hasFullAccess": true
}
'
{
  "id": "<string>",
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "expiredTime": "<string>",
  "token": "<string>",
  "createdTime": "<string>",
  "lastUsedTime": "<string>",
  "description": "<string>",
  "spaceIds": [
    "<string>"
  ],
  "baseIds": [
    "<string>"
  ],
  "hasFullAccess": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
Minimum string length: 1
scopes
string[]
required
Minimum array length: 1
expiredTime
string
required
Example:

"2024-03-25"

description
string
spaceIds
string[] | null
Minimum array length: 1
baseIds
string[] | null
Minimum array length: 1
hasFullAccess
boolean

Response

201 - application/json

Returns access token.

id
string
required
name
string
required
Minimum string length: 1
scopes
string[]
required
expiredTime
string
required
token
string
required
createdTime
string
required
lastUsedTime
string
required
description
string
spaceIds
string[] | null
baseIds
string[] | null
hasFullAccess
boolean
Last modified on December 10, 2025