User Access Token
Manage user access tokens.
Get user access tokens by me (logged in user)
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
OK
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
get
/me/tokensGET /api/v1/me/tokens HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"_id": "63ea10b94a472e003305232b",
"name": "text",
"token": "text",
"privileges": [
"project:read"
],
"userId": "text",
"organizationId": "text",
"expiresOn": "2025-12-06T01:49:03.391Z",
"createdAt": "2025-12-06T01:49:03.391Z",
"updatedAt": "2025-12-06T01:49:03.391Z"
}
]Create a user access token by me (logged in user)
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequiredExample:
Access token name
<name>lifetimestring · enumRequiredPossible values:
Token lifetime
privilegesstring[]OptionalExample:
Token privileges
["organization:user:read"]Responses
201
OK
application/json
400
Bad Request
application/json
post
/me/tokensPOST /api/v1/me/tokens HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"name": "<name>",
"lifetime": "one-week",
"privileges": [
[
"organization:user:read"
]
]
}{
"_id": "63ea10b94a472e003305232b",
"name": "text",
"token": "text",
"privileges": [
"project:read"
],
"userId": "text",
"organizationId": "text",
"expiresOn": "2025-12-06T01:49:03.391Z",
"createdAt": "2025-12-06T01:49:03.391Z",
"updatedAt": "2025-12-06T01:49:03.391Z"
}Delete a user access token by me (logged in user)
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
tokenIdstringRequiredPattern:
Entity ID
^[0-9a-fA-F]{24}$Responses
204
No Content
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
delete
/me/tokens/{tokenId}DELETE /api/v1/me/tokens/{tokenId} HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?

