Quickstart
Quickstart: REST API
You need: an API key in KC_API_KEY and any HTTP client.
Get a key. Sign up at https://app.cubbylark.com/sign-up (the Free plan, no card). An owner creates a key in Settings → API keys and picks its scopes:
agents:readto read, plusagents:writeto make changes. Keep it in an environment variable, never in a file you commit:export KC_API_KEY=kc_live_…Call it (no key yet?
kc sandbox create --host https://api.cubbylark.commakes a sandbox and saves its key):curl -s https://api.cubbylark.com/v1/me -H "Authorization: Bearer $KC_API_KEY" curl -s "https://api.cubbylark.com/v1/agents?limit=10" -H "Authorization: Bearer $KC_API_KEY" curl -s "https://api.cubbylark.com/v1/approvals?status=pending" -H "Authorization: Bearer $KC_API_KEY"- Check it.
/v1/meanswers with your organization and scopes. The spec for every route is at https://www.cubbylark.com/openapi.json, and the reference lists them by resource.
Errors are { "error": { "code", "message", "details" } }; see limits and errors.