mistralM

Docs

sideBar

Beta Agents

(beta) Agents API

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
integerquery

Page number (0-indexed)

page_size
integerquery

Number of agents per page

deployment_chat
boolean | nullquery
sources
array<"api" | "playground" | "agent_builder_v1"> | nullquery
name
string | nullquery

Filter by agent name

string | nullquery

Search agents by name or ID

id
string | nullquery
metadata
map<any> | nullquery

Responses

array<Agent>

Successful Response

Agent
completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
created_at
date-time* required
deployment_chat
boolean* required
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
id
string* required
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required
object
string

Default Value: "agent"

owner_id
string | null
source
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

updated_at
date-time* required
version
integer* required
version_message
string | null
versions
array<integer>* required

POST /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
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

version_message
string | null

Responses

Successful Response

completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
created_at
date-time* required
deployment_chat
boolean* required
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
id
string* required
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required
object
string

Default Value: "agent"

owner_id
string | null
source
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

updated_at
date-time* required
version
integer* required
version_message
string | null
versions
array<integer>* required

GET /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
integerquery

Number of agents per page

deployment_chat
boolean | nullquery
sources
array<"api" | "playground" | "agent_builder_v1"> | nullquery
name
string | nullquery

Filter by agent name

string | nullquery

Search agents by name or ID

id
string | nullquery
metadata
map<any> | nullquery
page_token
string | nullquery

Opaque cursor from a previous response's next_page_token. When set, results page forward from the cursor.

Responses

Successful Response

data
array<Agent>* required

Successful Response

Agent
completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
created_at
date-time* required
deployment_chat
boolean* required
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
id
string* required
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required
object
string

Default Value: "agent"

owner_id
string | null
source
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

updated_at
date-time* required
version
integer* required
version_message
string | null
versions
array<integer>* required
next_page_token
string | null
object
string

Default 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* required
agent_version
integer | string | nullquery

Responses

Successful Response

completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
created_at
date-time* required
deployment_chat
boolean* required
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
id
string* required
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required
object
string

Default Value: "agent"

owner_id
string | null
source
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

updated_at
date-time* required
version
integer* required
version_message
string | null
versions
array<integer>* required

DELETE /v1/agents/{agent_id}

Delete an agent entity.

Delete an agent entity.

Parameters

agent_id
stringpath* required

PATCH /v1/agents/{agent_id}

Update an agent entity.

Update an agent attributes and create a new version.

Parameters

agent_id
stringpath* required

Request Example

{}

Request Body

completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
deployment_chat
boolean | null
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string | null
name
string | null

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

version_message
string | null

Responses

Successful Response

completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
created_at
date-time* required
deployment_chat
boolean* required
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
id
string* required
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required
object
string

Default Value: "agent"

owner_id
string | null
source
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

updated_at
date-time* required
version
integer* required
version_message
string | null
versions
array<integer>* required

PATCH /v1/agents/{agent_id}/version

Update an agent version.

Switch the version of an agent.

Parameters

agent_id
stringpath* required
version
integerquery* required

Responses

Successful Response

completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
created_at
date-time* required
deployment_chat
boolean* required
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
id
string* required
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required
object
string

Default Value: "agent"

owner_id
string | null
source
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

updated_at
date-time* required
version
integer* required
version_message
string | null
versions
array<integer>* required

GET /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* required
page
integerquery

Page number (0-indexed)

page_size
integerquery

Number of versions per page

Responses

array<Agent>

Successful Response

Agent
completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
created_at
date-time* required
deployment_chat
boolean* required
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
id
string* required
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required
object
string

Default Value: "agent"

owner_id
string | null
source
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

updated_at
date-time* required
version
integer* required
version_message
string | null
versions
array<integer>* required

GET /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* required
version
stringpath* required

Responses

Successful Response

completion_args
CompletionArgs

White-listed arguments from the completion API

CompletionArgs

White-listed arguments from the completion API

frequency_penalty
number | null
max_tokens
integer | null
prediction
Prediction | null

Enable 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
string

Default Value: ""

type
string

Default Value: "content"

presence_penalty
number | null
random_seed
integer | null
reasoning_effort
"none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"
response_format
ResponseFormat | null

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.

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 | null
JsonSchema
description
string | null
name
string* required
schema_definition
map<any>* required
strict
boolean

Default Value: false

type
"text" | "json_object" | "json_schema"
stop
string | array<string> | null
temperature
number | null
tool_choice
"auto" | "none" | "any" | "required"
top_p
number | null
created_at
date-time* required
deployment_chat
boolean* required
description
string | null
guardrails
array<GuardrailConfig> | null
GuardrailConfig
block_on_error
boolean

If true, return HTTP 403 and block request in the event of a server-side error

Default Value: false

moderation_llm_v1
ModerationLLMV1Config | null
ModerationLLMV1Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV1CategoryThresholds | null
ModerationLLMV1CategoryThresholds
dangerous_and_criminal_content
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2411"

moderation_llm_v2
ModerationLLMV2Config | null
ModerationLLMV2Config
action
"none" | "block"
custom_category_thresholds
ModerationLLMV2CategoryThresholds | null
ModerationLLMV2CategoryThresholds
criminal
number | null
dangerous
number | null
financial
number | null
hate_and_discrimination
number | null
health
number | null
jailbreaking
number | null
law
number | null
pii
number | null
selfharm
number | null
sexual
number | null
violence_and_threats
number | null
ignore_other_categories
boolean

If true, only evaluate categories in custom_category_thresholds; others are ignored.

Default Value: false

model_name
string

Override model name. Should be omitted in general.

Default Value: "mistral-moderation-2603"

handoffs
array<string> | null
id
string* required
instructions
string | null

Instruction prompt the model will follow during the conversation.

metadata
map<any> | null
model
string* required
name
string* required
object
string

Default Value: "agent"

owner_id
string | null
source
string* required

List of tools which are available to the model during the conversation.

FunctionTool
function
Function* required
Function
description
string

Default Value: ""

name
string* required
parameters
map<any>* required
strict
boolean

Default Value: false

type
"function"

Default Value: "function"

WebSearchTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search"

Default Value: "web_search"

WebSearchPremiumTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"web_search_premium"

Default Value: "web_search_premium"

CodeInterpreterTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"code_interpreter"

Default Value: "code_interpreter"

ImageGenerationTool
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"image_generation"

Default Value: "image_generation"

DocumentLibraryTool
library_ids
array<string>Min Items: 1* required

Ids of the library in which to search.

tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"document_library"

Default Value: "document_library"

CustomConnector
authorization
OAuth2TokenAuth | APIKeyAuth | null
exclamationMark

Deprecated: 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* required
APIKeyAuth
type
"api-key"

Default Value: "api-key"

value
string* required
connector_id
string* required
tool_configuration
ToolConfiguration | null
ToolConfiguration
exclude
array<string> | null
include
array<string> | null
requires_confirmation
array<string> | null
type
"connector"

Default Value: "connector"

updated_at
date-time* required
version
integer* required
version_message
string | null
versions
array<integer>* required

GET /v1/agents/{agent_id}/aliases

List all aliases for an agent.

Retrieve all version aliases for a specific agent.

Parameters

agent_id
stringpath* required

Responses

array<AgentAliasResponse>

Successful Response

AgentAliasResponse
alias
string* required
created_at
date-time* required
updated_at
date-time* required
version
integer* required

PUT /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* required
alias
stringquery* required
version
integerquery* required

Responses

Successful Response

alias
string* required
created_at
date-time* required
updated_at
date-time* required
version
integer* required

DELETE /v1/agents/{agent_id}/aliases

Delete an agent version alias.

Delete an existing alias for an agent.

Parameters

agent_id
stringpath* required
alias
stringquery* required