List access tokens
const url = 'https://api.flotera.com/api/v1/tokens?limit=50&kind=pat';const options = { method: 'GET', headers: {cookie: '__Host-erm_session=<__Host-erm_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.flotera.com/api/v1/tokens?limit=50&kind=pat' \ --cookie __Host-erm_session=<__Host-erm_session>PATs, one-time init tokens and agent credentials of the tenant. Only masked prefixes are ever returned; plaintext exists once at mint time.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Opaque pagination cursor from a previous next_cursor.
Page size.
Responses
Section titled “Responses”Page of tokens.
object
object
UUID (v7 for new entities; v4 accepted during migration).
UUID (v7 for new entities; v4 accepted during migration).
Masked prefix for display (erm_pat_xxxx····xxxx); plaintext is never stored.
Granted scopes; agent tokens carry fixed server-assigned scopes.
PAT caveat; null means the caveat is unset (all tenant servers).
For init tokens — when the one-time claim happened.
RFC 3339 UTC with microsecond precision, or null.
RFC 3339 UTC with microsecond precision, or null.
Updated at most once per 5 minutes.
RFC 3339 UTC with microsecond precision.
Opaque cursor for the next page; null when there are no more rows.
Example
{ "items": [ { "kind": "pat", "created_at": "2026-07-25T10:15:30.123456Z" } ]}Missing/invalid credentials (code=unauthorized).
RFC 9457 problem document with a stable machine code.
object
Stable machine-readable error code (03 §2.4).
UUID (v7 for new entities; v4 accepted during migration).
object
JSON Pointer to the offending field.
Example
{ "type": "https://ermeon.com/problems/validation", "code": "unauthorized"}Authenticated but not permitted. code=forbidden — role/scope mismatch; code=feature_not_entitled — the plan does not include the capability; code=account_frozen — the account is frozen and this operation is declared x-ermeon-frozen: deny. The three are deliberately distinct: only the last one is fixed by a top-up (13 §5.6).
RFC 9457 problem document with a stable machine code.
object
Stable machine-readable error code (03 §2.4).
UUID (v7 for new entities; v4 accepted during migration).
object
JSON Pointer to the offending field.
Example
{ "type": "https://ermeon.com/problems/validation", "code": "unauthorized"}The tenant has no plan assignment, so the capability cannot be evaluated (code=plan_required).
RFC 9457 problem document with a stable machine code.
object
Stable machine-readable error code (03 §2.4).
UUID (v7 for new entities; v4 accepted during migration).
object
JSON Pointer to the offending field.
Example
{ "type": "https://ermeon.com/problems/validation", "code": "unauthorized"}