Create agent from template
Clone a built-in template into the team as a new agent with its first version. Returns 409 when an agent with the template’s slug already exists in the team; edit that agent instead.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Template slug from the list agent templates endpoint (for example infographic-slideshows).
Response
Success
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Stable, url-safe identifier unique within the team (lower-case letters, digits and hyphens, 1-64 characters). Derived from the name when omitted.
1 - 64^[a-z0-9]+(?:-[a-z0-9]+)*$"infographic-slideshows"
Display name of the agent, 1-120 characters.
1 - 120What the agent is for, shown in the agents list (up to 2000 characters); null clears it.
2000The version new runs pin. Null only transiently while the first version is being written.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$The current version, embedded so one read shows the live configuration.
When the agent was archived (ISO-8601 UTC); null while live.
Immutable platform role: general or slideshow for the two protected team agents; null for customer-created agents. Bundled agents remain editable but cannot be deleted or archived.
general, slideshow true for the team's protected General agent, provisioned with Slideshow when the team is created. It is used by chat and schedules that name no other agent. Its configuration is editable; its identity cannot be changed, deleted or archived.
Creator of this agent; null only for bundled agents provisioned by the system for an ownerless team.
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$When the agent was created (ISO-8601 UTC).
When the agent or its current version last changed (ISO-8601 UTC).
Advisory notes about the current version, returned by create and update (for example a tool policy that denies search_tools). Absent when there is nothing to flag.