API tokens
Personal API tokens. These endpoints need a signed-in session: a token cannot create or list tokens.
View as MarkdownEndpoints
- DELRevoke an API token
/v1/api-tokens/{tokenId} - GETList your API tokens
/v1/workspaces/{workspaceId}/api-tokens - POSTCreate an API token
/v1/workspaces/{workspaceId}/api-tokens
The ApiToken object
{
"id": "string",
"workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
"name": "Notes",
"prefix": "string",
"scopes": [
"docs:read"
],
"createdAt": "string",
"lastUsedAt": null,
"expiresAt": null
}