Get All
Get all users active bearer authentication tokens.
Endpoint
http
GET /api/v1/user/tokensRequest example
sh
curl --location --request GET 'https://files.ro/api/v1/user/tokens' \
--header 'Authorization: Bearer {token}'Response
json
[
{
"id": 1,
"name": "CLI",
"last_used_at": "2024-01-01T00:00:00.000000Z",
"created_at": "2024-01-01T00:00:00.000000Z"
}
]json
{
"type": "error",
"message": "You are not authorized"
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}