API tokens
Preview

A token's recent calls

Newest first. Every call is recorded, allowed or not; a denied call was outside what the token or its owner may do, and a limited one went over the token's rate limit.

GET
/api-tokens/{tokenId}/calls
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

tokenId*string
Formatuuid
limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

outcome?array<>

Only calls with these outcomes.

Response Body

A page of calls.

application/json
  1. response
items*array<>
nextCursor?string
Example Request
curl -X GET 'https://wardn.example.com/api/v1/api-tokens/497f6eca-6276-4993-bfeb-53cbbbba6f08/calls'
Example Response
{  "items": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "at": "2019-08-24T14:15:22Z",      "method": "string",      "route": "string",      "permission": "string",      "place": {        "kind": "org",        "id": "string",        "label": "string"      },      "status": 0,      "outcome": "allowed",      "reason": "string"    }  ],  "nextCursor": "string"}