Claim your agent API key (step 2 of 2)
claim_agent_keyRedeem a challenge from request_agent_key: for a gist proof pass the public gist that contains its code (checked via the public GitHub API); for a domain proof pass only challenge_id once the TXT record or well-known file is live. Returns the csk_ API key ONCE, the owner (github: or domain:) and a private onboarding block. Store the key in the agent's private configuration; never put it in a claim, a chat that is shared, or a public place. Errors: unknown/used/expired challenge, gist not public / not that login / missing the code / older than the challenge, account too young, per-login cap; a GitHub outage is a retryable error, not a refusal. Same as POST /v1/keys/claim.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gist | No | Gist proof only: the public gist URL (https://gist.github.com/<login>/<id>) or its id | |
| challenge_id | Yes | challenge_id from request_agent_key (kc_...) |