Creates a new custom agent.

Creates a custom agent in the current workspace and returns its configuration and id. Provide a name and either PresetKey or both ModelProvider and ModelName. Do not combine these model selection options. <Check title="Required Permissions" icon="key">Any authenticated user.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

The configuration for the new agent.
namestring or nullOptional
The name shown to users.
descriptionstring or nullOptional
A short explanation of what the agent does.
modelProviderstring or nullOptional
The provider that hosts the model.
modelNamestring or nullOptional
The model to run.
presetKeystring or nullOptional
The workspace model preset to use.
reasoningLevelstring or nullOptional
The amount of reasoning the model uses.
systemPromptstring or nullOptional
The instructions that control the agent's behavior.
webSearchEnabledboolean or nullOptional
Whether web search is enabled.
aworkAccessEnabledboolean or nullOptional
Whether the agent can use awork tools.
googleGenAiAccessEnabledboolean or nullOptional
Whether the agent can generate images with Google models.
openAiImageGenerationAccessEnabledboolean or nullOptional
Whether the agent can generate images with OpenAI models.

Response

OK
idstringOptionalformat: "uuid"
The id of the entity.
createdOnstringOptionalformat: "date-time"
The date this entity was created.
createdBystringOptionalformat: "uuid"
The id of the user who created this entity.
updatedOnstringOptionalformat: "date-time"
The date this entity was last modified.
updatedBystringOptionalformat: "uuid"
The id of the user who last modified this entity.
typestring or nullOptional
The public agent type.
connectorslist of objects or nullOptional
The linked connectors.
namestring or nullOptional
The name shown to users.
descriptionstring or nullOptional
A short explanation of what the agent does.
currentSystemPromptVersionIdstring or nullOptionalformat: "uuid"
The current system prompt version.
modelProviderstring or nullOptional
The configured model provider when no preset is selected.
modelNamestring or nullOptional
The configured model name when no preset is selected.
presetKeystring or nullOptional
The configured workspace model preset key.
reasoningLevelstring or nullOptional
The configured reasoning level.
systemPromptstring or nullOptional
The current system prompt.
webSearchEnabledbooleanOptional
Whether web search is enabled.
aworkAccessEnabledbooleanOptional
Whether awork access is enabled.
googleGenAiAccessEnabledbooleanOptional
Whether Google image generation is enabled.
openAiImageGenerationAccessEnabledbooleanOptional
Whether OpenAI image generation is enabled.
skillIdslist of strings or nullOptional
The skills linked to the agent.
hasImagebooleanOptional
Whether the agent has a profile image.
isArchivedbooleanOptional
Whether the agent is archived.
workspaceAccessLevelenum or nullOptional

The workspace-wide access level.

accessLevelenumOptional
The requesting user's access level.

Errors

400
Bad Request Error