API tokens
PreviewWhich 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
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
application/json- body
places*array<>Items
1 <= items <= 200The keys the caller holds on all of the places.
application/json- response
permissions*array<string>Keys the caller holds on every one of the places.
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" ]}Create an API token POST
The caller owns the token, and the owner never changes. Each access row gives permission keys on places; a row can only give what the caller holds on each of its places. A token cannot be edited later: only rotated or revoked. The secret is not in this response. The web app makes it as a Better Auth
Get an API token GET
Next Page