POST /projects/{project_id}/agents
Changed onRequest
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- AuthHTTP bearer
Path parameters
Project ID
Request body
Preferred model identifier for the CLI. Some("") clears the stored value.
Plain-text API key — will be encrypted before storage
Branch of the config repo to use (default: "main").
Private config repo containing .claude/ directory (skills, MCP, plugins).
Response
Agent created
Preferred model for the CLI (e.g. "sonnet", "gpt-6.2-sol"). None means default.
true if an API key is set; false otherwise.
Branch of the config repo to use.
Private config repo containing .claude/ directory (skills, MCP, plugins).
None = use global sandbox setting, true = force on, false = force off
Secret token for the X-Webhook-Token header.
Returned in full exactly once, by the request that mints it (creating an agent with the webhook trigger on, or turning that trigger on). Every later read is ***: the row holds only a digest, so the token cannot be shown again. Turn the webhook trigger off and on to mint a replacement.
Public webhook URL for triggering this agent externally. Only set when on: { webhook: true } is configured. Usage: POST {webhook_url} with header X-Webhook-Token: {webhook_token}
Changes
- info
endpoint added
- info