curl -X POST https://agentgate.mynewapi.com/v1/templates \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "our-api-template",
"name": "Our API Template",
"description": "Standard API template with our conventions",
"source": {
"type": "git",
"repository": "https://github.com/our-org/api-template",
"branch": "main"
},
"variables": [
{
"name": "serviceName",
"description": "Name of the service",
"required": true
},
{
"name": "team",
"description": "Owning team",
"default": "platform"
}
],
"tags": ["api", "internal"]
}'
{
"id": "our-api-template",
"name": "Our API Template",
"description": "Standard API template with our conventions",
"source": {
"type": "git",
"repository": "https://github.com/our-org/api-template",
"branch": "main"
},
"variables": [
{
"name": "serviceName",
"description": "Name of the service",
"required": true
},
{
"name": "team",
"description": "Owning team",
"default": "platform"
}
],
"tags": ["api", "internal"],
"builtIn": false,
"createdAt": "2024-01-15T10:30:00Z"
}
Create an organization template
curl -X POST https://agentgate.mynewapi.com/v1/templates \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "our-api-template",
"name": "Our API Template",
"description": "Standard API template with our conventions",
"source": {
"type": "git",
"repository": "https://github.com/our-org/api-template",
"branch": "main"
},
"variables": [
{
"name": "serviceName",
"description": "Name of the service",
"required": true
},
{
"name": "team",
"description": "Owning team",
"default": "platform"
}
],
"tags": ["api", "internal"]
}'
{
"id": "our-api-template",
"name": "Our API Template",
"description": "Standard API template with our conventions",
"source": {
"type": "git",
"repository": "https://github.com/our-org/api-template",
"branch": "main"
},
"variables": [
{
"name": "serviceName",
"description": "Name of the service",
"required": true
},
{
"name": "team",
"description": "Owning team",
"default": "platform"
}
],
"tags": ["api", "internal"],
"builtIn": false,
"createdAt": "2024-01-15T10:30:00Z"
}
curl -X POST https://agentgate.mynewapi.com/v1/templates \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "our-api-template",
"name": "Our API Template",
"description": "Standard API template with our conventions",
"source": {
"type": "git",
"repository": "https://github.com/our-org/api-template",
"branch": "main"
},
"variables": [
{
"name": "serviceName",
"description": "Name of the service",
"required": true
},
{
"name": "team",
"description": "Owning team",
"default": "platform"
}
],
"tags": ["api", "internal"]
}'
{
"id": "our-api-template",
"name": "Our API Template",
"description": "Standard API template with our conventions",
"source": {
"type": "git",
"repository": "https://github.com/our-org/api-template",
"branch": "main"
},
"variables": [
{
"name": "serviceName",
"description": "Name of the service",
"required": true
},
{
"name": "team",
"description": "Owning team",
"default": "platform"
}
],
"tags": ["api", "internal"],
"builtIn": false,
"createdAt": "2024-01-15T10:30:00Z"
}