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.
name
The name shown to users.
description
A short explanation of what the agent does.
modelProvider
The provider that hosts the model.
modelName
The model to run.
presetKey
The workspace model preset to use.
reasoningLevel
The amount of reasoning the model uses.
systemPrompt
The instructions that control the agent's behavior.
webSearchEnabled
Whether web search is enabled.
aworkAccessEnabled
Whether the agent can use awork tools.
googleGenAiAccessEnabled
Whether the agent can generate images with Google models.
openAiImageGenerationAccessEnabled
Whether the agent can generate images with OpenAI models.
Response
OK
id
The id of the entity.
createdOn
The date this entity was created.
createdBy
The id of the user who created this entity.
updatedOn
The date this entity was last modified.
updatedBy
The id of the user who last modified this entity.
type
The public agent type.
connectors
The linked connectors.
name
The name shown to users.
description
A short explanation of what the agent does.
currentSystemPromptVersionId
The current system prompt version.
modelProvider
The configured model provider when no preset is selected.
modelName
The configured model name when no preset is selected.
presetKey
The configured workspace model preset key.
reasoningLevel
The configured reasoning level.
systemPrompt
The current system prompt.
webSearchEnabled
Whether web search is enabled.
aworkAccessEnabled
Whether awork access is enabled.
googleGenAiAccessEnabled
Whether Google image generation is enabled.
openAiImageGenerationAccessEnabled
Whether OpenAI image generation is enabled.
skillIds
The skills linked to the agent.
hasImage
Whether the agent has a profile image.
isArchived
Whether the agent is archived.
workspaceAccessLevel
The workspace-wide access level.
accessLevel
The requesting user's access level.
Errors
400
Bad Request Error

