Skip to main content
POST
https://agentgate.mynewapi.com
/
v1
/
templates
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"
}
id
string
required
Unique template identifier (lowercase, hyphens allowed).
name
string
required
Human-readable template name.
description
string
Template description.
source
object
required
Template source configuration.
variables
array
Variable definitions for customization.
hooks
object
Lifecycle hooks (postCreate, etc.).
tags
array
Tags for filtering.
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"
}