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 } }.
https://api.cloudraker.com/agentsTry it
Authorization
Request body JSON required
Returns
201
The created agent and its draft.
- dataobjectrequired
- agentobjectrequired
- createdAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- updatedAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- draftobjectrequired
- createdAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- updatedAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- publishedrequired}
Any of the following:
- AgentVersion
- idstringrequired
- agentIdstringrequired
- versionintegerrequiredmaximum: 9007199254740991 · minimum: -9007199254740991
- publishedAtrequired}
Any of the following:
- string
- null
- createdAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- updatedAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- createdBystringrequired
- documentAgentoptionalboolean
Offer this published agent as a document reviewer. Requires file reading and document editing tools.
- harnessoptionalautoornativeorsandbox
Automatic execution keeps the agent loop in the platform and starts isolated compute only when a tool needs it. Default:
auto. Legacynativeandsandboxvalues remain accepted for existing integrations. - instructionsoptionalstring
The standing instructions the agent runs under. A
nativeversion must also fit the engine ceiling (8000 chars) to publish.maxLength: 32768 - modeloptionalobject
- policyoptionalstringmaxLength: 64 · minLength: 1
- maxStepsoptionalintegermaximum: 100 · minimum: 1
- budgetCreditsoptionalintegermaximum: 9007199254740991 · minimum: 1
- memoryoptionalobject
Saved memory the agent reads and updates across sessions. Private agents only: publishing an org agent with memory enabled answers 422
memory_requires_private. Default: on forsandbox, off otherwise.- enabledbooleanrequired
- skillsoptionalarray ofstringmaxLength: 64 · minLength: 1
- toolsoptionalarray ofToolGrant}
One of the following:
- object
- kindstringrequired
- installedActionIdstringrequiredmaxLength: 128 · minLength: 1
- preApprovaloptionalboolean
- postApprovaloptionalboolean
- object
- kindstringrequired
- connectionIdstringrequiredmaxLength: 128 · minLength: 1
- readOnlyToolsoptionalarray ofstringmaxLength: 64 · minLength: 1
- object
- kindstringrequired
- namefilesorartifactsorspacesorcomposeorsignorsearch+3 morerequired
- object
- kindstringrequired
- namefsorshellorbrowserorcodeornetrequired
- object
- kindstringrequired
- object
- kindstringrequired
- spacesoptionalobject
- modeoptionalsessionorfixedorany
- spaceIdsoptionalarray ofstringmaxLength: 128 · minLength: 1
- spaceTypesoptionalarray ofstringpattern: ^[a-z][a-z0-9-]{0,38}[a-z0-9]$
- networkoptionalobject
- policyIdoptional}
Any of the following:
- string
- null
- approvalsoptionalobject
- defaultForWriteoptionalaskorallow
- sensitiveoptionalstring
- approversoptionalarray ofstringmaxLength: 128 · minLength: 1
- delegationoptionalobject
- canInviteoptional}
Any of the following:
- array<string>
- stringanyornone
- tasksoptionalarray ofobject
- idstringrequiredmaxLength: 64 · minLength: 1
- titlestringrequiredmaxLength: 200 · minLength: 1
- instructionsoptional}
Any of the following:
- string
- null
- dependsOnoptionalarray ofstring
- executoroptionalagentorhuman
- assigneeoptional}
Any of the following:
- string
- null
- null