Agents

Create an agent

Creates a reusable agent without storing credentials. See agent configuration.

post/agents

Request body

metadataobject nullable

Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. Omission or null defaults to an empty map.

namestring nullable

A human-readable name for the agent. Omission or null leaves the agent unnamed.

modelstring required

The model to use for the agent. The requested model name is preserved.

service_tier'auto' | 'default' | 'flex' | 'priority' | 'fast' | 'ultrafast'

The service tier used for model requests.

instructionsstring nullable

Additional instructions appended to the agent's default base instructions. Omit or set to null to add no custom instructions.

Response

The created agent.

idstring required

The ID of the reusable agent.

object'agent' required

The object type. Always agent.

created_atinteger required

The Unix timestamp, in seconds, when the agent was created.

updated_atinteger required

The Unix timestamp, in seconds, when the agent was last updated.

namestring nullable required

A human-readable name for the agent, or null if it is unnamed.

metadataobject required

Custom string key-value pairs attached to the agent.

modelstring required

The requested model name used for inference.

service_tier'auto' | 'default' | 'flex' | 'priority' | 'fast' | 'ultrafast' required

The service-tier policy configured for an agent.

instructionsstring nullable required

Custom instructions appended to the agent's default base instructions.

Changes