Custom Agent

Beta
View as MarkdownOpen in Claude
## Description This endpoint lets you run an assistant you can configure within our web product at https://you.com/agents. The system supports both conversational inputs and advanced prompting techniques to define the agent’s behavior. <Info>The call only returns when the agent has finished fully responding to the input question.</Info> ## Enterprise Settings To maintain enterprise security, enable Zero Data Retention on your enterprise account. Manage this setting at [you.com/settings/privacy](https://you.com/settings/privacy). When enabled, we do not retain your data and do not use it for model training. <Warning>Privacy settings can only be managed by You.com Enterprise or team admins.</Warning>

Authentication

AuthorizationBearer

A unique API Key is required to authorize API access. For details, see how to get your API Key.

Request

The parameters we pass to ask the agent a question
agentstringRequired
Your Custom Agent's ID. To obtain one you must have created a custom agent at https://you.com/agents.
inputstringRequired
The question you'd like to ask the agent
streamfalseRequired

Must be true to stream the agent response as it’s generated, and false to receive a response after the agent has finished.

Response

agentstring
The id of the agent populated in the request.
inputlist of objects
The users access role and question you asked the agent
outputlist of objects
The agent's response items

Errors

400
Bad Request Error
422
Unprocessable Entity Error