Skip to main content
GET
/
api
/
v1
/
tokens
List tokens
curl --request GET \
  --url https://devs.adaptyvbio.com/api/v1/tokens \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://devs.adaptyvbio.com/api/v1/tokens"

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

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

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

fetch('https://devs.adaptyvbio.com/api/v1/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_URL => "https://devs.adaptyvbio.com/api/v1/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 := "https://devs.adaptyvbio.com/api/v1/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("https://devs.adaptyvbio.com/api/v1/tokens")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://devs.adaptyvbio.com/api/v1/tokens")

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

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

response = http.request(request)
puts response.read_body
{
  "count": 123,
  "items": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "kind": "root",
      "name": "<string>",
      "attenuation_spec": "<unknown>",
      "expires_at": "2023-11-07T05:31:56Z",
      "parent_token_id": "<string>",
      "revoked_at": "2023-11-07T05:31:56Z",
      "root_token_id": "<string>",
      "token_type": "<string>"
    }
  ],
  "offset": 123,
  "total": 123
}
{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}
{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}
{
"error": "experiment not found",
"request_id": "req_019462a4-b1c2-7def-8901-23456789abcd"
}

Authorizations

Authorization
string
header
required

Biscuit-based bearer token. Obtain tokens from the Adaptyv Portal or via the /tokens endpoint. Tokens encode organization membership and role-based capabilities; the API verifies the token's cryptographic signature and authorization claims before processing requests. Use /tokens/attenuate to create restricted tokens for delegation.

Query Parameters

limit
integer<int64>

Maximum number of items to return (1-100, default 50).

offset
integer<int64>

Number of items to skip (default 0).

Response

Token list with lineage

Paginated list response with offset-based navigation metadata.

All list endpoints return this shape. Use offset and limit query parameters to page through results; total reports how many items match the query across all pages.

count
integer<int64>
required

Number of items in this response.

items
object[]
required

The page of results.

offset
integer<int64>
required

Offset used for this page (mirrors the offset query parameter).

total
integer<int64>
required

Total number of items matching the query (across all pages).