Skip to main content
GET
/
auth
/
access_tokens
List access tokens
curl -X GET http://localhost:6575/auth/access_tokens \
  -H "Accept: application/json" \
  -H 'Authorization: Bearer <admin-jwt-or-access-token>'
import requests

url = "http://localhost:6573/auth/access_tokens"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('http://localhost:6573/auth/access_tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_PORT => "6573",
CURLOPT_URL => "http://localhost:6573/auth/access_tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "http://localhost:6573/auth/access_tokens"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("http://localhost:6573/auth/access_tokens")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("http://localhost:6573/auth/access_tokens")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
[
  {
    "id": 12,
    "name": "reader-admin-token",
    "description": "Used by the analytics dashboard to run read-only admin checks.",
    "created_at": "2026-04-02T08:30:00Z",
    "expired_at": "2026-04-03T08:30:00Z",
    "will_expire": true,
    "permission": "read,admin"
  },
  {
    "id": 13,
    "name": "writer-token",
    "description": "Used by the nightly import job.",
    "created_at": "2026-04-02T09:00:00Z",
    "expired_at": null,
    "will_expire": false,
    "permission": "write"
  }
]
{
"status": "<string>",
"message": "<string>"
}

Authorizations

Authorization
string
header
required

Admin JWT obtained from the login endpoint.

Headers

Authorization
string
required

Admin JWT or admin access token. Format Bearer <admin-jwt-or-access-token>.

Response

List of access tokens.

id
integer

Unique identifier for the access token.

name
string

Human-readable name for the token.

description
string

Description of the token's intended use.

created_at
string<date-time>

Timestamp when the token was created, in RFC 3339 UTC format.

expired_at
string<date-time> | null

Timestamp when the token expires. null when will_expire is false.

will_expire
boolean

Whether the token has an expiration date.

permission
string

Comma-separated permission names assigned to the token.