Create agent

Create a new agent with optional capabilities and configuration. Supports runtype, external, and claude_managed agent types.

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
namestringRequired>=1 character
agentTypeenumOptionalDefaults to runtype
Allowed values:
capabilitieslist of objectsOptional
claudeManagedConfigobjectOptional
configobjectOptional
descriptionstringOptional
externalConfigobjectOptional
iconstringOptional<=50 characters
maxTurnsintegerOptional1-100
primaryFlowIdstring or nullOptional

Response

Agent created
agentTypestring
capabilitieslist of objects
claudeManagedConfigmap from strings to any or null
configmap from strings to any or null
configHashstring or null
createdAtstring
descriptionstring or null
draftVersionIdstring or null
externalConfigmap from strings to any or null
healthStatusstring or null
iconstring or null
idstring
lastHealthCheckAtstring or null
lastModifiedSourcestring or null
namestring
organizationIdstring or null
primaryFlowIdstring or null
publishedVersionIdstring or null
statusstring
updatedAtstring
userIdstring
_warningslist of strings
dashboardUrlstring

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error