Get instruction
Returns the full definition of an instruction, including its template, metadata, enabled status, and version. Instruction templates may contain Velocity expressions that reference tools and metadata. If no version is specified, the platform returns the latest version.
Path parameters
The unique identifier for an instruction.
The unique identifier of the instruction to retrieve.
Query parameters
The specific version of the instruction to retrieve. If not specified, the platform returns the latest version.
Headers
The platform makes a best effort to complete the request in the specified seconds, or it times out.
The platform makes a best effort to complete the request in the specified milliseconds, or it times out.
Response
The requested instruction details.
Example response
{
"id": "ins_customer_support_init",
"type": "initial",
"name": "Customer Support Initial Instruction",
"template_type": "velocity",
"template": "You are an expert customer support agent for $agent.name. Available tools: #foreach($tool in $tools)${tool.name}#if($foreach.hasNext), #end#end",
"version": 1
}Changes
No recorded changes to this endpoint across all 8 revisions of this API.