Skip to content

Quickstart

Quickstart: REST API

Markdown version

You need: an API key in CG_API_KEY and any HTTP client.

  1. Get a key. Sign up at https://app.chapelwren.com/sign-up (the Free plan, no card). An owner creates a key in Settings → API keys and picks its scopes: agents:read to read, plus agents:write to make changes. Keep it in an environment variable, never in a file you commit:

    export CG_API_KEY=cg_live_…
  2. Call it:

    curl -s https://api.chapelwren.com/v1/me -H "Authorization: Bearer $CG_API_KEY"
    curl -s "https://api.chapelwren.com/v1/agents?limit=10" -H "Authorization: Bearer $CG_API_KEY"
    curl -s "https://api.chapelwren.com/v1/approvals?status=pending" -H "Authorization: Bearer $CG_API_KEY"
  3. Check it. /v1/me answers with your organization and scopes. The spec for every route is at https://www.chapelwren.com/openapi.json, and the reference lists them by resource.

Errors are { "error": { "code", "message", "details" } }; see limits and errors.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.