Skip to main content
GET
/
v1
/
auth
/
tokens
List all access tokens
curl --request GET \
  --url https://nextvisit.app/api/v1/auth/tokens \
  --header 'Authorization: Bearer <token>'
{
  "tokens": [
    {
      "id": 123,
      "name": "iPhone 14 Pro",
      "created_at": "2023-01-01T12:00:00.000000Z",
      "last_used_at": "2023-01-02T14:30:00.000000Z"
    },
    {
      "id": 124,
      "name": "MacBook Pro",
      "created_at": "2023-01-10T09:15:00.000000Z",
      "last_used_at": "2023-01-10T15:22:00.000000Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

List of tokens

tokens
object[]