Skip to main content
POST
Exchange a wk_live_ API key for a short-lived org session.

Headers

apikey
string
required

The Supabase publishable/anon key (required by the edge function).

Body

application/json
api_key
string
required
Pattern: ^wk_(live|test)_[A-Za-z0-9]{16,}$

Response

Session minted.

access_token
string
required
refresh_token
string
required
expires_at
integer
required

UNIX epoch SECONDS at which access_token expires.

org_id
string
required
supabase_url
string<uri>
required
anon_key
string
required