{
  "opencollection": "1.0.0",
  "info": {
    "name": "Letta Agent Templates API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Agent Templates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List templates (Cloud-only)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.letta.com/v1/v1/templates",
            "params": [
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "exact",
                "value": "",
                "type": "query",
                "description": "Whether to search for an exact name match"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "Specify the version you want to return, otherwise will return the latest version"
              },
              {
                "name": "template_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "name",
                "value": "",
                "type": "query"
              },
              {
                "name": "search",
                "value": "",
                "type": "query"
              },
              {
                "name": "project_slug",
                "value": "",
                "type": "query"
              },
              {
                "name": "project_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List all templates"
        },
        {
          "info": {
            "name": "Create template (Cloud-only)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.letta.com/v1/v1/templates",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new template from an existing agent or agent file"
        },
        {
          "info": {
            "name": "Create template (Cloud-only)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.letta.com/v1/v1/templates/:project_id",
            "params": [
              {
                "name": "project_id",
                "value": "",
                "type": "path",
                "description": "The project id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new template from an existing agent or agent file"
        },
        {
          "info": {
            "name": "List template versions (Cloud-only)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.letta.com/v1/v1/templates/:project_id/:name/versions",
            "params": [
              {
                "name": "project_id",
                "value": "",
                "type": "path",
                "description": "The project id"
              },
              {
                "name": "name",
                "value": "",
                "type": "path",
                "description": "The template name (without version)"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "List all versions of a specific template"
        },
        {
          "info": {
            "name": "Create Agents From Template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.letta.com/v1/v1/templates/:project_id/:template_version/agents",
            "params": [
              {
                "name": "project_id",
                "value": "",
                "type": "path",
                "description": "The project id"
              },
              {
                "name": "template_version",
                "value": "",
                "type": "path",
                "description": "The template version, formatted as {template-name}:{version-number} or {template-name}:latest. This endpoint is not available for self-hosted Letta."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates an Agent or multiple Agents from a template"
        }
      ]
    }
  ],
  "bundled": true
}