curl --request GET \
--url http://co-mind-platform-host/v1/api-tokens \
--header 'Authorization: Bearer <token>'[
{
"id": "abc123",
"name": "CI/CD Pipeline Token",
"scopes": [
"chat:write",
"models:read"
],
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"is_expired": false,
"is_revoked": false
}
]List all API tokens for the authenticated user. Token secrets are never returned.
curl --request GET \
--url http://co-mind-platform-host/v1/api-tokens \
--header 'Authorization: Bearer <token>'[
{
"id": "abc123",
"name": "CI/CD Pipeline Token",
"scopes": [
"chat:write",
"models:read"
],
"created_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"is_expired": false,
"is_revoked": false
}
]Bearer token authentication. Supports two token types:
POST /v1/auth/loginPOST /v1/api-tokens, format: cmnd_<tokenId>.<secret>List of API tokens