Skip to main content

List tokens

This endpoint allows you to list all tokens created for a given api_connection access.

Endpoint

POST /user/v1/users/{user}/access/{access}/tokens

Parameters

NameLocationRequiredTypeDefault valueDescription
userURLYesStringThe user identifier
accessURLYesIntegerThe access identifier

Response

A list of Token objects.

Example request

GET /user/v1/users/c0b48140-34cb-4187-acd7-aaa830dc97f9/access/127/tokens

Example response

{
"message": "OK",
"data": {
"total": 2,
"results": [
{
"id": 10,
"token": "da6e13ac-fcba-4113-806c-56e1b578d140",
"expires_at": null,
"created_at": "2023-10-12T13:08:14+00:00",
"updated_at": "2023-10-12T13:08:14+00:00"
},
{
"id": 15,
"token": "2b444ea5-87c7-4d9a-12e0-a6b8d9cf6f50",
"expires_at": null,
"created_at": "2023-10-12T13:41:12+00:00",
"updated_at": "2023-10-12T13:41:12+00:00"
}
]
}
}