Skip to main content
POST
/
v1
/
tokens
/
{id}
/
rotate
Rotate an agent token
curl --request POST \
  --url https://api.fortressproductivity.com/v1/tokens/{id}/rotate \
  --cookie better-auth.session_token=
{
  "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>",
  "setup_url": "<string>",
  "prompt": "<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"

Response

Rotated 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
setup_url
string
required
Minimum string length: 1
prompt
string
required
Minimum string length: 1