Version 4.0.26.4 (latest)
Create Agent
Creates an agent.
Required fields: name, description, sources.
Request
POST
/agents
Datatype
Description
Request
body
Expand HTTP Body definition...
body
Agent
Expand Agent definition...
can
lock
Operations the current user is able to perform on this object
id
lock
Agent unique identifier
created_by_user_id
lock
User that created the Agent
created_by_name
lock
Name of user that created the Agent
created_by_first_name
lock
Name of user that created the Agent
created_by_last_name
lock
Name of user that created the Agent
created_by_avatar_url
lock
Avatar URL of user that created the Agent
name
Agent name
description
Agent description
category
The category of the agent (e.g., dashboard, conversation)
sources
has_inaccessible_source
lock
Has inaccessible source
context
Agent context
deleted
Is Agent soft deleted
created_at
lock
Agent created_at
updated_at
lock
Agent updated_at
content_metadata_id
lock
Content metadata ID for this Agent
code_interpreter
Enables Code Interpreter for this Agent
studio_agent_id
lock
Studio Agent ID (if this agent was migrated)
query
Expand HTTP Query definition...
fields
Requested fields
Response
200: Agent
Datatype
Description
(object)
can
lock
Operations the current user is able to perform on this object
id
lock
Agent unique identifier
created_by_user_id
lock
User that created the Agent
created_by_name
lock
Name of user that created the Agent
created_by_first_name
lock
Name of user that created the Agent
created_by_last_name
lock
Name of user that created the Agent
created_by_avatar_url
lock
Avatar URL of user that created the Agent
name
Agent name
description
Agent description
category
The category of the agent (e.g., dashboard, conversation)
sources
Expand Source definition...
model
Source model
explore
Source explore
has_inaccessible_source
lock
Has inaccessible source
context
Agent context
Expand Context definition...
instructions
Agent instructions
deleted
Is Agent soft deleted
created_at
lock
Agent created_at
updated_at
lock
Agent updated_at
content_metadata_id
lock
Content metadata ID for this Agent
code_interpreter
Enables Code Interpreter for this Agent
studio_agent_id
lock
Studio Agent ID (if this agent was migrated)
400: Bad Request
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
409: Resource Already Exists
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
422: Validation Error
Datatype
Description
(object)
message
lock
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
Field with error
code
lock
Error code
message
lock
Error info message
documentation_url
lock
Documentation link
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link