GET
/
v1
/
api_tokens
curl --request GET \
  --url https://api.edgee.app/v1/api_tokens \
  --header 'Authorization: Bearer <token>'
{
  "limit": 123,
  "start_key": "<string>",
  "order_direction": "DESC",
  "data": [
    {
      "object": "api_token",
      "id": "<string>",
      "user_id": "<string>",
      "name": "<string>",
      "from_browser": true,
      "last_used_at": "2023-11-07T05:31:56Z",
      "expires_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "token": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

name
string

The name of the ApiToken.

limit
integer

A limit on the number of objects to be returned.

start_key
string

A cursor for use in pagination. start_key parameter defines the place in the list for your subsequent calls. For instance, if you make a list request and receive 100 objects, the last one having ABCDE key, you can make a subsequent call with start_key=ABCDE in order to fetch the next page of the list.

order_direction
enum<string>

The order direction of the returned list. Objects are returned sorted by creation date. By default, the order is descending, so the most recent object appears first. Possible values are ASC and DESC. Default is DESC.

Available options:
ASC,
DESC

Response

200
application/json
A list of ApiTokens
limit
integer

A limit on the number of objects to be returned.

start_key
string

A cursor for use in pagination. start_key parameter defines the place in the list for your subsequent calls. For instance, if you make a list request and receive 100 objects, the last one having ABCDE key, you can make a subsequent call with start_key=ABCDE in order to fetch the next page of the list.

order_direction
enum<string>
default:DESC

The order direction of the returned list. Objects are returned sorted by creation date. By default, the order is descending, so the most recent object appears first. Possible values are ASC and DESC. Default is DESC.

Available options:
ASC,
DESC
data
object[]

An ApiToken is a unique identifier that you can use to authenticate requests to the API. You can create as many ApiTokens as you need.