Use AgentTemplate
Creates a user-owned copy from the template. Requires authentication.
Authorization
AccessToken AuthorizationBearer <token>
In: header
Path Parameters
templateId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/agent-templates/string/use" \ -H "Content-Type: application/json" \ -d '{}'{ "status": 0, "message": "string", "data": { "slug": "string", "name": "string", "description": "", "role": "", "avatar": "", "instructions": "string", "modelId": "openai/gpt-4o", "defaultOptions": { "temperature": 0.7, "maxTokens": null, "maxSteps": 5, "maxRetries": 2, "output": "text", "jsonPromptInjection": false }, "tools": [ { "id": "string", "label": "string", "type": "builtin", "config": {} } ], "workflowIds": [ "string" ], "subAgentIds": [ "string" ], "memory": { "enabled": false, "storage": "libsql", "lastMessages": 20, "semanticRecall": false, "semanticRecallTopK": 3, "workingMemory": false, "workingMemoryTemplate": "" }, "scorers": [ { "id": "string", "label": "string", "enabled": true, "threshold": null } ], "ownerId": "string", "status": "draft", "isPublic": false, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "id": "string", "isSupervisor": false, "remoteAgents": [ { "label": "string", "url": "string", "headers": { "property1": "string", "property2": "string" } } ], "knowledge": { "enabled": true, "scope": "user", "nudge": false, "nudgeText": "" } }, "type": "string", "code": "string"}