# Portainer Custom Templates API

**Canonical:** https://apis.io/apis/portainer/portainer-custom-templates-api/  
**Provider:** Portainer — https://apis.io/providers/portainer/  
**Base URL:** https://api-docs.portainer.io  
**Documentation:** https://www.portainer.io/

Portainer Custom Templates API is one of 32 APIs that [Portainer](https://apis.io/providers/portainer/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 5 JSON Schema definitions. Tagged areas include Custom Templates. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, and 5 JSON Schemas.

Manage Custom Templates

## Operations (9)

| Method | Path | Summary |
|---|---|---|
| GET | `/custom_templates` | List available custom templates |
| DELETE | `/custom_templates/{id}` | Remove a template |
| GET | `/custom_templates/{id}` | Inspect a custom template |
| PUT | `/custom_templates/{id}` | Update a template |
| GET | `/custom_templates/{id}/file` | Get Template stack file content |
| PUT | `/custom_templates/{id}/git_fetch` | Fetch the latest config file content based on custom template's git repository… |
| POST | `/custom_templates/create/file` | Create a custom template |
| POST | `/custom_templates/create/repository` | Create a custom template |
| POST | `/custom_templates/create/string` | Create a custom template |

## Machine-readable artifacts (9)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/portainer/refs/heads/main/openapi/portainer-custom-templates-api-openapi.yml
- **Documentation** — https://docs.portainer.io/
- **APIReference** — https://api-docs.portainer.io/
- **GettingStarted** — https://docs.portainer.io/start
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/portainer/refs/heads/main/json-schema/portainer-customtemplates-custom-template-update-payload-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/portainer/refs/heads/main/json-schema/portainer-customtemplates-custom-template-from-git-repository-payload-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/portainer/refs/heads/main/json-schema/portainer-portainer-custom-template-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/portainer/refs/heads/main/json-schema/portainer-customtemplates-custom-template-from-file-content-payload-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/portainer/refs/heads/main/json-schema/portainer-customtemplates-file-response-schema.json

## Other Portainer APIs (12)

- [Portainer Auth API](https://apis.io/apis/portainer/portainer-auth-api/)
- [Portainer Backup API](https://apis.io/apis/portainer/portainer-backup-api/)
- [Portainer Docker API](https://apis.io/apis/portainer/portainer-docker-api/)
- [Portainer Edge API](https://apis.io/apis/portainer/portainer-edge-api/)
- [Portainer Edge Groups API](https://apis.io/apis/portainer/portainer-edge-groups-api/)
- [Portainer Edge Jobs API](https://apis.io/apis/portainer/portainer-edge-jobs-api/)
- [Portainer Edge Stacks API](https://apis.io/apis/portainer/portainer-edge-stacks-api/)
- [Portainer Endpoint Groups API](https://apis.io/apis/portainer/portainer-endpoint-groups-api/)
- [Portainer Endpoints API](https://apis.io/apis/portainer/portainer-endpoints-api/)
- [Portainer Helm API](https://apis.io/apis/portainer/portainer-helm-api/)
- [Portainer Intel API](https://apis.io/apis/portainer/portainer-intel-api/)
- [Portainer Kubernetes API](https://apis.io/apis/portainer/portainer-kubernetes-api/)

## Tags

Custom Templates

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/portainer/portainer-custom-templates-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/portainer/.
