POST
/
access-token
curl --request POST \
  --url https://app.teable.io/api/access-token \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"name":"string","description":"string","scopes":["string"],"spaceIds":["string"],"baseIds":["string"],"expiredTime":"2024-03-25"}'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "scopes": [
    "<string>"
  ],
  "spaceIds": [
    "<string>"
  ],
  "baseIds": [
    "<string>"
  ],
  "expiredTime": "<string>",
  "token": "<string>",
  "createdTime": "<string>",
  "lastUsedTime": "<string>"
}

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 length: 1
scopes
string[]
required
expiredTime
string
required
description
string
spaceIds
string[] | null
baseIds
string[] | null

Response

201 - application/json
Returns access token.
id
string
required
name
string
required
Minimum 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