API tokens
GET
/tokensRequires: Cookie fret_session / Bearer
Responses
200OKobject
tokensApiToken[]Fields · 5
idintegernamestringprefixstringStart of the token, to recognise it
createdAtstring (date-time)lastUsedAtstring (date-time) | null
Request
curl "http://localhost:8080/api/v1/tokens" \ -H "Authorization: Bearer $TOKEN"const response = await fetch('http://localhost:8080/api/v1/tokens', { headers: { Authorization: 'Bearer <TOKEN>', },});const data = await response.json();import requests
response = requests.get( "http://localhost:8080/api/v1/tokens", headers={ "Authorization": "Bearer <TOKEN>", },)response.raise_for_status()print(response.json())Response
200
{ "tokens": [ { "id": 0, "name": "string", "prefix": "string", "createdAt": "2026-01-01T12:00:00Z", "lastUsedAt": "2026-01-01T12:00:00Z" } ]}