User API keys GET
GEThttps://sandbox.absmartly.com/v1/users/:userId/api_keys
Required Permissions: User Get
or User Admin
Request
Path Parameters
userId integerrequired
The id of the User that you wish to get the API Keys of.
Responses
- 200
A JSON Object containing an array of all API keys that are linked to a user.
- application/json
- Schema
- Example (from schema)
Schema
items integer
page integer
Possible values: >= 1
total integer
user_api_keys object[]
{
"items": 0,
"page": 0,
"total": 0,
"user_api_keys": [
{
"id": 0,
"name": "All CRUD API Key",
"description": "An API key with all permissions",
"key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"permissions": "string",
"used_at": "2025-06-18T16:08:32.571Z",
"created_at": "2025-06-18T16:08:32.571Z",
"created_by_user_id": 0,
"updated_at": "2025-06-18T16:08:32.571Z",
"updated_by_user_id": 0,
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2025-06-18T16:08:32.571Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "[email protected]"
}
}
]
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: A User API Key for API authorization. **Must be in the format "Api-Key your_user_api_key"**scheme: ^Api-Key\s\S+
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://sandbox.absmartly.com/v1/users/:userId/api_keys' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear