Skip to main content
POST
/
api
/
v1
/
apps
/
{app_id}
/
tokens
cURL
curl --request POST \
  --url https://api.example.com/api/v1/apps/{app_id}/tokens \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "expires_at": "2023-11-07T05:31:56Z",
  "metadata": {}
}
'
{
  "data": "<unknown>",
  "message": "<string>",
  "status": 1
}

Documentation Index

Fetch the complete documentation index at: https://docs.draskencloud.com/llms.txt

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

Path Parameters

app_id
string<uuid>
required

App ID

Body

application/json
name
string
required
scopes
string[]
required
expires_at
string<date-time> | null
metadata
object

Response

Token issued — raw_value shown only once

data
any
required

Response payload; null on delete or error

message
string
required
status
integer<int32>
required

HTTP status code mirrored in the body

Required range: x >= 0