WARNING: Access to this endpoint requires a paid subscription plan.
Description
This endpoint lets you run an assistant you can configure in the UI. Users can create a custom AI agent by providing a description of the desired functionality using natural language. The system supports both conversational inputs and advanced prompting techniques to define the agent’s behavior.Enterprise Settings
To maintain enterprise security, enable Zero Data Retention on your enterprise account. Manage this setting at you.com/settings/privacy. When enabled, the platform does not retain your data and does not use customer data for model training.WARNING: Privacy settings can only be managed by You.com Enterprise or team admins.
Get Your Custom Agent ID
Visit you.com/agents and create a new custom agent with your personalized parameters:

NOTE: You can manage the tools only in the UI by enabling or disabling them. They can not be managed via the API.See Web Search Tool, Research Tool, and Compute Tool to learn more about tools.

agent
parameter to call it via API.Streaming Example (SSE)
Limitations
WARNING: The API currently does not support custom agents that use a foundational model with advanced research and reasoning enabled.
WARNING: Files attached to a Custom Agent are not accessible when the agent is invoked via the API.
Errors
Errors are returned as a structured JSON object withstatus
, code
, title
, and detail
fields:HTTP | Code | When it happens |
---|---|---|
400 | bad_request | Invalid request body (e.g., tools must be an array of objects) |
401 | unauthorized | Missing or invalid Authorization header (use a valid <API_KEY> ) |
403 | forbidden | You are not allowed to run this agent or the requested tool |
404 | agent_not_found , agent_not_supported_yet | The agent ID does not exist (or was deleted), or the agent uses an unsupported model/feature |
Authorizations
The unique API Key required to authorize API access. Learn how to get yours in the “Get your API key” section of the documentation.
Body
application/json
The custom agent that will be used to execute your request.
Example:
"550e8400-e29b-41d4-a716-446655440000"
The input for the agent. This can be a query or a prompt.
Example:
"Summarize today's top AI research headlines and cite sources."
When true
, responses stream over SSE (text/event-stream). When false
, returns JSON (application/json).
Response
Inference response in application/json or text/event-stream format.