Agent SwarmAgent Swarm

PromptTemplates

PromptTemplates API endpoints

GET
/api/prompt-templates

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

eventType?string
scope?string
scopeId?string
isDefault?string
Value in"true" | "false"

Response Body

curl -X GET "http://localhost:3013/api/prompt-templates"
Empty
PUT
/api/prompt-templates

Authorization

bearerAuth
AuthorizationBearer <token>

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"  }'
Empty
Empty
DELETE
/api/prompt-templates/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Response Body

curl -X DELETE "http://localhost:3013/api/prompt-templates/string"
Empty
Empty
Empty
GET
/api/prompt-templates/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Response Body

curl -X GET "http://localhost:3013/api/prompt-templates/string"
Empty
Empty
POST
/api/prompt-templates/{id}/checkout

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

version*number

Response Body

curl -X POST "http://localhost:3013/api/prompt-templates/string/checkout" \  -H "Content-Type: application/json" \  -d '{    "version": 0  }'
Empty
Empty
Empty
POST
/api/prompt-templates/{id}/reset

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

id*string

Response Body

curl -X POST "http://localhost:3013/api/prompt-templates/string/reset"
Empty
Empty
GET
/api/prompt-templates/events

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Response Body

curl -X GET "http://localhost:3013/api/prompt-templates/events"
Empty
POST
/api/prompt-templates/preview

Authorization

bearerAuth
AuthorizationBearer <token>

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"  }'
Empty
Empty
POST
/api/prompt-templates/render

Authorization

bearerAuth
AuthorizationBearer <token>

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"  }'
Empty
Empty
GET
/api/prompt-templates/resolved

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Query Parameters

eventType*string
agentId?string
repoId?string

Response Body

curl -X GET "http://localhost:3013/api/prompt-templates/resolved?eventType=string"
Empty
Empty