Skip to content

Obține toate

Obține toate tokenurile bearer active ale utilizatorului.

Endpoint

http
GET /api/v1/user/tokens

Exemplu de cerere

sh
curl --location --request GET 'https://files.ro/api/v1/user/tokens' \
--header 'Authorization: Bearer {token}'

Răspuns

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."
    ]
  }
}