ci-script or local-dev (1–100 characters)Pass the token as a Bearer token in the Authorization header:
curl -X POST "https://<your-instance>/personal/v1/knowledge/list" \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{"page_num": 1, "page_size": 20}'
import requests
headers = {
"Authorization": "Bearer <your-token>",
"Content-Type": "application/json",
}
resp = requests.post(
"https://<your-instance>/personal/v1/knowledge/list",
headers=headers,
json={"page_num": 1, "page_size": 20},
)
print(resp.json())
curl -X POST "https://<your-instance>/personal/v1/knowledge/upsert" \
-H "Authorization: Bearer <your-token>" \
-H "Content-Type: application/json" \
-d '{"name": "Common Ops Commands", "content": "## Disk Check\n```bash\ndf -h\n```"}'
Go to Settings → Access Tokens to view and manage your tokens.
Revoked tokens stop working immediately. This cannot be undone.
Rotation issues a new token and revokes the old one, keeping the same name and expiration window.
Can I view a token after creation? No — it's shown once. Rotate to get a new one if lost.
What happens when a token expires? API requests will return 401. Rotate to renew.
Can a token be used across workspaces? No — each token is scoped to the workspace where it was created.