Create a new agent subscription
POST/agent-subscriptions
Creates an AgentSubscription that immediately becomes active and expires after the plan's intervalDays. Agent-role callers can only subscribe themselves. Emits an agent_subscription.create audit event. Requires the agent-subscription:write permission.
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 429
- 500
Newly-created AgentSubscription.
Plan does not exist or is inactive.
Missing or invalid access token.
Caller lacks the required permission or is subscribing another agent.
The request conflicts with the current state of the target resource — a duplicate unique field on registration, an idempotency-key replay with a different payload, or a webhook eventId that has already been processed. error.code may be CONFLICT or IDEMPOTENCY_CONFLICT depending on the cause.
Rate limit exceeded. Global default is 120 requests/minute per IP; auth-flow, OTP, self-registration, WebAuthn, IRA lookup, and public-lead endpoints carry tighter per-endpoint limits. Retry after the delay indicated by the Retry-After header.
Response Headers
Seconds to wait before retrying.
Unhandled server error. The response carries a meta.requestId correlator you can hand to platform operations to trace the failure through structured logs and the hash-chained audit trail. Retry with the same Idempotency-Key header if the endpoint accepts idempotency.