endpoint
GET
/api/me
Current account for the supplied key or session
auth: API keybase https://app.nz
Request
curl -s "https://app.nz/api/me" \
-H "Authorization: Bearer pk_live_..."Authentication
Every API call authenticates with a bearer key created from your account. Pass it as an Authorization header. Browser sessions (cookie auth) work too, but keys are the right choice for servers, agents, and the CLI. Secrets are shown once at create/rotate time, so store them immediately.
Create a key and call the API
# Create a key (secret returned once)
curl -sX POST https://app.nz/api/keys \
-H "Authorization: Bearer $APP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"deploy bot"}'
# Use it on every other request
curl -s https://app.nz/api/me \
-H "Authorization: Bearer pk_live_..."