- API Reference
- endpoint
- beta
Beta Agents
Beta Agents
GET /v1/agents
List agent entities.
Retrieve a list of agent entities sorted by creation time. Deprecated: some features such as agent sharing are not supported by this endpoint. Use the cursor-paginated GET /v1/agents/pages instead.
Parameters
page
integerqueryPage number (0-indexed)
page_size
integerqueryNumber of agents per page
deployment_chat
boolean | nullquerysources
array<"api" | "playground" | "agent_builder_v1"> | nullqueryname
string | nullqueryFilter by agent name
search
string | nullquerySearch agents by name or ID
id
string | nullquerymetadata
map<any> | nullqueryResponses
Successful Response
Agent
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nullcreated_at
date-time* requireddeployment_chat
boolean* requireddescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullid
string* requiredinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredobject
stringDefault Value: "agent"
owner_id
string | nullsource
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
updated_at
date-time* requiredversion
integer* requiredversion_message
string | nullversions
array<integer>* requiredPOST /v1/agents
Create a agent that can be used within a conversation.
Create a new agent giving it instructions, tools, description. The agent is then available to be used as a regular assistant in a conversation or as part of an agent pool from which it can be used.
Request Example
{
"model": "ipsum eiusmod",
"name": "consequat do"
}
Request Body
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nulldescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
version_message
string | nullResponses
Successful Response
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nullcreated_at
date-time* requireddeployment_chat
boolean* requireddescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullid
string* requiredinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredobject
stringDefault Value: "agent"
owner_id
string | nullsource
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
updated_at
date-time* requiredversion
integer* requiredversion_message
string | nullversions
array<integer>* requiredGET /v1/agents/pages
List agent entities, cursor-paginated.
Retrieve a page of agent entities. Unlike the deprecated GET /v1/agents, this endpoint paginates by opaque cursor and honors per-agent sharing, returning only agents the caller is authorized to see.
Parameters
page_size
integerqueryNumber of agents per page
deployment_chat
boolean | nullquerysources
array<"api" | "playground" | "agent_builder_v1"> | nullqueryname
string | nullqueryFilter by agent name
search
string | nullquerySearch agents by name or ID
id
string | nullquerymetadata
map<any> | nullquerypage_token
string | nullqueryOpaque cursor from a previous response's next_page_token. When set, results page forward from the cursor.
Responses
Successful Response
Successful Response
Agent
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nullcreated_at
date-time* requireddeployment_chat
boolean* requireddescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullid
string* requiredinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredobject
stringDefault Value: "agent"
owner_id
string | nullsource
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
updated_at
date-time* requiredversion
integer* requiredversion_message
string | nullversions
array<integer>* requirednext_page_token
string | nullobject
stringDefault Value: "list"
GET /v1/agents/{agent_id}
Retrieve an agent entity.
Given an agent, retrieve an agent entity with its attributes. The agent_version parameter can be an integer version number or a string alias.
Parameters
agent_id
stringpath* requiredagent_version
integer | string | nullqueryResponses
Successful Response
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nullcreated_at
date-time* requireddeployment_chat
boolean* requireddescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullid
string* requiredinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredobject
stringDefault Value: "agent"
owner_id
string | nullsource
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
updated_at
date-time* requiredversion
integer* requiredversion_message
string | nullversions
array<integer>* requiredDELETE /v1/agents/{agent_id}
Delete an agent entity.
Delete an agent entity.
Parameters
agent_id
stringpath* requiredPATCH /v1/agents/{agent_id}
Update an agent entity.
Update an agent attributes and create a new version.
Parameters
agent_id
stringpath* requiredRequest Example
{}
Request Body
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nulldeployment_chat
boolean | nulldescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string | nullname
string | nulltools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
version_message
string | nullResponses
Successful Response
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nullcreated_at
date-time* requireddeployment_chat
boolean* requireddescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullid
string* requiredinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredobject
stringDefault Value: "agent"
owner_id
string | nullsource
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
updated_at
date-time* requiredversion
integer* requiredversion_message
string | nullversions
array<integer>* requiredPATCH /v1/agents/{agent_id}/version
Update an agent version.
Switch the version of an agent.
Parameters
agent_id
stringpath* requiredversion
integerquery* requiredResponses
Successful Response
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nullcreated_at
date-time* requireddeployment_chat
boolean* requireddescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullid
string* requiredinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredobject
stringDefault Value: "agent"
owner_id
string | nullsource
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
updated_at
date-time* requiredversion
integer* requiredversion_message
string | nullversions
array<integer>* requiredGET /v1/agents/{agent_id}/versions
List all versions of an agent.
Retrieve all versions for a specific agent with full agent context. Supports pagination.
Parameters
agent_id
stringpath* requiredpage
integerqueryPage number (0-indexed)
page_size
integerqueryNumber of versions per page
Responses
Successful Response
Agent
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nullcreated_at
date-time* requireddeployment_chat
boolean* requireddescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullid
string* requiredinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredobject
stringDefault Value: "agent"
owner_id
string | nullsource
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
updated_at
date-time* requiredversion
integer* requiredversion_message
string | nullversions
array<integer>* requiredGET /v1/agents/{agent_id}/versions/{version}
Retrieve a specific version of an agent.
Get a specific agent version by version number.
Parameters
agent_id
stringpath* requiredversion
stringpath* requiredResponses
Successful Response
completion_args
CompletionArgsWhite-listed arguments from the completion API
CompletionArgs
White-listed arguments from the completion API
frequency_penalty
number | nullmax_tokens
integer | nullprediction
Prediction | nullEnable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
Prediction
Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
content
stringDefault Value: ""
type
stringDefault Value: "content"
presence_penalty
number | nullrandom_seed
integer | nullreasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"response_format
ResponseFormat | nullSpecify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
ResponseFormat
Specify the format that the model must output. By default it will use \{ "type": "text" \}. Setting to \{ "type": "json_object" \} enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to \{ "type": "json_schema" \} enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide. Note: on third-party models (for example GLM), the schema is still enforced, but field descriptions may not influence the output; put field-level requirements in the prompt.
json_schema
JsonSchema | nullJsonSchema
description
string | nullname
string* requiredschema_definition
map<any>* requiredstrict
booleanDefault Value: false
type
"text" | "json_object" | "json_schema"stop
string | array<string> | nulltemperature
number | nulltool_choice
"auto" | "none" | "any" | "required"top_p
number | nullcreated_at
date-time* requireddeployment_chat
boolean* requireddescription
string | nullguardrails
array<GuardrailConfig> | nullGuardrailConfig
block_on_error
booleanIf true, return HTTP 403 and block request in the event of a server-side error
Default Value: false
moderation_llm_v1
ModerationLLMV1Config | nullModerationLLMV1Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV1CategoryThresholds | nullModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2411"
moderation_llm_v2
ModerationLLMV2Config | nullModerationLLMV2Config
action
"none" | "block"custom_category_thresholds
ModerationLLMV2CategoryThresholds | nullModerationLLMV2CategoryThresholds
criminal
number | nulldangerous
number | nullfinancial
number | nullhate_and_discrimination
number | nullhealth
number | nulljailbreaking
number | nulllaw
number | nullpii
number | nullselfharm
number | nullsexual
number | nullviolence_and_threats
number | nullignore_other_categories
booleanIf true, only evaluate categories in custom_category_thresholds; others are ignored.
Default Value: false
model_name
stringOverride model name. Should be omitted in general.
Default Value: "mistral-moderation-2603"
handoffs
array<string> | nullid
string* requiredinstructions
string | nullInstruction prompt the model will follow during the conversation.
metadata
map<any> | nullmodel
string* requiredname
string* requiredobject
stringDefault Value: "agent"
owner_id
string | nullsource
string* requiredtools
array<FunctionTool | WebSearchTool | WebSearchPremiumTool | CodeInterpreterTool | ImageGenerationTool | DocumentLibraryTool | CustomConnector>List of tools which are available to the model during the conversation.
FunctionTool
Function
description
stringDefault Value: ""
name
string* requiredparameters
map<any>* requiredstrict
booleanDefault Value: false
type
"function"Default Value: "function"
WebSearchTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search"Default Value: "web_search"
WebSearchPremiumTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"web_search_premium"Default Value: "web_search_premium"
CodeInterpreterTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"code_interpreter"Default Value: "code_interpreter"
ImageGenerationTool
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"image_generation"Default Value: "image_generation"
DocumentLibraryTool
library_ids
array<string>Min Items: 1* requiredIds of the library in which to search.
tool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"document_library"Default Value: "document_library"
CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | nullDeprecated: per-request connector credentials will be removed. Authenticate the connector through the Connectors API instead.
OAuth2TokenAuth
type
"oauth2-token"Default Value: "oauth2-token"
value
string* requiredAPIKeyAuth
type
"api-key"Default Value: "api-key"
value
string* requiredconnector_id
string* requiredtool_configuration
ToolConfiguration | nullToolConfiguration
exclude
array<string> | nullinclude
array<string> | nullrequires_confirmation
array<string> | nulltype
"connector"Default Value: "connector"
updated_at
date-time* requiredversion
integer* requiredversion_message
string | nullversions
array<integer>* requiredGET /v1/agents/{agent_id}/aliases
List all aliases for an agent.
Retrieve all version aliases for a specific agent.
Parameters
agent_id
stringpath* requiredResponses
Successful Response
AgentAliasResponse
alias
string* requiredcreated_at
date-time* requiredupdated_at
date-time* requiredversion
integer* requiredPUT /v1/agents/{agent_id}/aliases
Create or update an agent version alias.
Create a new alias or update an existing alias to point to a specific version. Aliases are unique per agent and can be reassigned to different versions.
Parameters
agent_id
stringpath* requiredalias
stringquery* requiredversion
integerquery* requiredResponses
Successful Response
alias
string* requiredcreated_at
date-time* requiredupdated_at
date-time* requiredversion
integer* requiredDELETE /v1/agents/{agent_id}/aliases
Delete an agent version alias.
Delete an existing alias for an agent.