API tokens
Preview

Which permissions the caller could give a token on some places

The keys the caller holds on every one of the places, so the access picker can grey out the rest.

POST
/api-tokens/holdable
cookiebetter-auth.session_token<token>

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

application/json
  1. body
places*array<>
Items1 <= items <= 200

Response Body

The keys the caller holds on all of the places.

application/json
  1. response
permissions*array<string>

Keys the caller holds on every one of the places.

Example Request
curl -X POST 'https://wardn.example.com/api/v1/api-tokens/holdable' \  -H 'Content-Type: application/json' \  -d '{  "places": [    {      "kind": "org"    }  ]}'
Example Response
{  "permissions": [    "string"  ]}