POST
/ai_agentsCreate AI agent
Creates an AI agent. At least one of the following capabilities must be provided: ask, text_gen, extract.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
typestringrequired
The type of agent used to handle queries.
namestringrequired
The name of the AI Agent.
access_statestringrequired
The state of the AI Agent. Possible values are: `enabled`, `disabled`, and `enabled_for_selected_users`.
icon_referencestringoptional
The icon reference of the AI Agent. It should have format of the URL `https://cdn01.boxcdn.net/app-assets/aistudio/avatars/<file_name>`
where possible values of `file_name` are: `logo_boxAi.png`,`logo_stamp.png`,`logo_legal.png`,`logo_finance.png`,`logo_config.png`,`logo_handshake.png`,`logo_analytics.png`,`logo_classification.png`.
allowed_entitiesarray<TheEntityWithTypeAndID>optional
List of allowed users or groups.
askobjectoptional
The AI agent to be used to handle queries.
text_genobjectoptional
The AI agent to be used to generate text.
extractobjectoptional
The AI agent to be used for metadata extraction.
200Definition of created AI agent.
idstringrequired
The unique identifier of the AI Agent.
typestringoptional
The type of agent used to handle queries.
originstringrequired
The provider of the AI Agent.
namestringrequired
The name of the AI Agent.
access_statestringrequired
The state of the AI Agent. Possible values are: `enabled`, `disabled`, and `enabled_for_selected_users`.
created_byobjectoptional
The user who created this agent.
created_atstringoptional
The ISO date-time formatted timestamp of when this AI agent was created.
modified_byobjectoptional
The user who most recently modified this agent.
modified_atstringoptional
The ISO date-time formatted timestamp of when this AI agent was recently modified.
icon_referencestringoptional
The icon reference of the AI Agent.
allowed_entitiesarray<TheEntityWithTypeAndID>optional
List of allowed users or groups.
askobjectoptional
The AI agent to be used to ask questions.
text_genobjectoptional
The AI agent to be used to generate text.
extractobjectoptional
The AI agent to be used for metadata extraction.
400An unexpected client error.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
500An unexpected server error.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
Error handling
A 400 is returned: An unexpected client error. A 500 is returned: An unexpected server error.