List of all tokens
This endpoint retrieves all your tokens.
Request
GET https://api.nicereply.com/me/tokens
By default, list of tokens is sorted by created_at
.
Query Parameters
Pagination is supported.
Parameter | Required | Default | Description |
---|---|---|---|
sort_order | No | desc | Valid values is: asc or desc . |
Example response
200 OK
{
"data": [
{
"id": "9e649a0d-0ae6-4738-88cb-6375485b0568",
"name": "Production",
"accessed_at": "2023-10-03T15:01:13+02:00",
"created_at": "2023-09-20T14:46:56+02:00",
"updated_at": "2023-10-03T15:01:13+02:00"
},
{
"id": "8bb4b331-c1a4-463e-9ea0-04d6bab2a5fb",
"name": "Development token",
"accessed_at": null,
"created_at": "2023-08-12T12:14:23+02:00",
"updated_at": "2023-08-12T12:14:23+02:00"
},
// ...
],
"pagination": {
"total": 30,
"count": 10,
"per_page": 10,
"current_page": 1,
"total_pages": 3,
"links": {
"next": "/me/tokens?page=2",
"prev": null
}
}
}