Skip to main content
POST
/
v1
/
agents
/
{id}
/
tokens
Create an agent token
curl --request POST \
  --url https://api.fortressproductivity.com/v1/agents/{id}/tokens \
  --header 'Content-Type: application/json' \
  --cookie better-auth.session_token= \
  --data '
{
  "name": "<string>"
}
'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "agent_id": "<string>",
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "last_used_at": "2023-11-07T05:31:56Z",
  "revoked_at": "2023-11-07T05:31:56Z",
  "raw_token": "<string>"
}

Documentation Index

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

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

Authorizations

better-auth.session_token
string
cookie
required

Human web-session cookie issued by Better Auth.

Path Parameters

id
string
required
Minimum string length: 1
Example:

"act_123"

Body

application/json
name
string
required
Minimum string length: 1

Response

Created token

id
string
required
Minimum string length: 1
workspace_id
string
required
Minimum string length: 1
agent_id
string
required
Minimum string length: 1
name
string
required
Minimum string length: 1
created_at
string<date-time>
required
last_used_at
string<date-time> | null
required
revoked_at
string<date-time> | null
required
raw_token
string
required
Minimum string length: 1