PromptTemplates
PromptTemplates API endpoints
Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
"true" | "false"Response Body
curl -X GET "http://localhost:3013/api/prompt-templates"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PUT "http://localhost:3013/api/prompt-templates" \ -H "Content-Type: application/json" \ -d '{ "eventType": "string", "body": "string" }'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
curl -X DELETE "http://localhost:3013/api/prompt-templates/string"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
curl -X GET "http://localhost:3013/api/prompt-templates/string"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/prompt-templates/string/checkout" \ -H "Content-Type: application/json" \ -d '{ "version": 0 }'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
curl -X POST "http://localhost:3013/api/prompt-templates/string/reset"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
curl -X GET "http://localhost:3013/api/prompt-templates/events"Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/prompt-templates/preview" \ -H "Content-Type: application/json" \ -d '{ "eventType": "string" }'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "http://localhost:3013/api/prompt-templates/render" \ -H "Content-Type: application/json" \ -d '{ "eventType": "string" }'Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
Response Body
curl -X GET "http://localhost:3013/api/prompt-templates/resolved?eventType=string"