Create an agent
Creates an agent together with its version-1 draft. Authorization: organization administrators only — other callers are rejected with 403. Body: name (required, 1-200 chars); optional role, avatar, visibility (org | private), handle (lowercase/digits/hyphens; derived from the name and de-duplicated — a second “Mike” becomes mike-2 — when omitted) and a full draft version config. 409 handle_taken if an explicit handle is already used. Response 201: { data: { agent, draft, published } }.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
role
handle
Lowercase, digits and hyphens. Derived from name when omitted.
avatar
visibility
Allowed values:
draft
Response
The created agent and its draft.
data
Errors
409
Conflict Error