Get token list
- Authentication
This method requires authentication.
Summary
Get User Token List
Description
This method retrieves a list of user tokens.
The parameters required are limit and skip. The limit parameter sets a limit on the number of tokens that should be returned in the list. The skip parameter is used to skip a certain number of entries in the token list.
Query Parameters
name | type | data type | default | description |
|---|---|---|---|---|
limit | optional | integer | 20 | number of tokens |
skip | optional | integer | 0 | number of tokens to skip |
Response
The response data contains an array of Token objects.
Good Response Example
{
"status": "ok",
"statusCode": 200,
"data": [
{
"_id": "token-id",
"login": "your-login",
"token": "your-token",
"partner": "your-partner-id",
"active": true,
"expires_at": "2024-02-01T12:49:56.319Z",
"created_at": "2024-01-01T12:49:56.319Z",
"updated_at": "2024-01-01T12:49:56.319Z"
}
]
}
Bad Response Examples
http code | response example |
|---|---|
| see 401 Unauthorized |
|
Last modified: 09 February 2024