Portainer Endpoints API

Manage Docker environments(endpoints)

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
IT Infrastructure Management BC-600.50

Operations 21

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

DELETE /endpoints Remove several endpoints (deprecated) · Remove multiple environments #
Ask an LLM
“Is there an older deprecated call to remove multiple endpoints at once?”
“Can I clean up associated resources when removing several endpoints?”
Tell an agent destructive · confirm first
Remove the endpoints listed in {endpoints} using the deprecated call.
Delete several environments in one request with the legacy endpoint.
GET /endpoints List environments (endpoints) · List environments(endpoints) #
Ask an LLM
“Which Docker and Kubernetes environments can I manage?”
“Can I list only the endpoints that are down or provisioned?”
Tell an agent
List all my environments.
List endpoints in group {groupIds} with status {status}.
POST /endpoints Add a new environment (endpoint) · Create a new environment(endpoint) #
Ask an LLM
“How do I add a new Docker host as an environment?”
“Can I create an Azure or Edge environment endpoint?”
Tell an agent
Create an environment named {Name} of type {EndpointCreationType}.
Add a new endpoint {Name} at {URL} using {ContainerEngine}.
DELETE /endpoints/{id} Remove an environment · Remove an environment #
Ask an LLM
“How do I remove an environment I no longer manage?”
“Can I clean up resources when deleting an endpoint?”
Tell an agent destructive · confirm first
Remove endpoint {id}.
Delete the environment {id} and clean up its resources.
GET /endpoints/{id} Inspect an environment (endpoint) · Inspect an environment(endpoint) #
Ask an LLM
“What URL and status does a specific endpoint have?”
“Can I see the details of one environment by its ID?”
Tell an agent
Show endpoint {id}.
Inspect environment {id} and exclude its snapshot.
PUT /endpoints/{id} Update an environment (endpoint) · Update an environment(endpoint) #
Ask an LLM
“How do I change the URL or TLS settings of an existing endpoint?”
“Can I rename an environment or change its group?”
Tell an agent
Rename endpoint {id} to {Name}.
Set the URL of endpoint {id} to {URL}.
PUT /endpoints/{id}/association De-associate an edge endpoint · De-association an edge environment(endpoint) #
Ask an LLM
“How do I de-associate an edge environment from its group?”
“Can I unlink an edge endpoint without deleting it?”
Tell an agent destructive · confirm first
De-associate edge endpoint {id}.
Unlink edge environment {id} from its group.
POST /endpoints/{id}/docker/v2/browse/put Upload TLS files to an environment · Upload a file under a specific path on the file system of an environment… #
Ask an LLM
“How do I upload a TLS certificate file to an environment?”
“Can I upload a file to a specific volume on a Docker host?”
Tell an agent
Upload {file} to path {Path} on endpoint {id}.
Upload {file} to volume {volumeID} on endpoint {id} at {Path}.
GET /endpoints/{id}/dockerhub/{registryId} Check Docker Hub pull limits for an endpoint · fetch docker pull limits #
Ask an LLM
“What are my Docker Hub pull limits on a given endpoint?”
“Can I check the registry pull limits for an environment?”
Tell an agent
Show Docker Hub pull limits for registry {registryId} on endpoint {id}.
Check the Docker Hub pull limits of registry {registryId} in environment {id}.
POST /endpoints/{id}/edge/jobs/{jobID}/logs Update logs from an Edge job · Update the logs collected from an Edge Job #
Ask an LLM
“How does an edge environment report logs from a job?”
“Can I update the logs collected from an Edge job?”
Tell an agent
Update the logs for Edge job {jobID} on endpoint {id}.
Send new logs from edge job {jobID} in environment {id}.
GET /endpoints/{id}/edge/stacks/{stackId} Inspect an Edge stack · Inspect an Edge Stack for an Environment(Endpoint) #
Ask an LLM
“What is the status of an Edge stack on a managed endpoint?”
“Can I inspect a single edge stack by its ID?”
Tell an agent
Inspect Edge stack {stackId} on endpoint {id}.
Show the status of edge stack {stackId} in environment {id}.
GET /endpoints/{id}/edge/status Check an edge environment's status · Get environment(endpoint) status #
Ask an LLM
“How does an edge environment check its own status?”
“What does the edge status endpoint return?”
Tell an agent
Check the status of edge environment {id}.
Report the edge status for environment {id}.
PUT /endpoints/{id}/forceupdateservice Force a Docker service update · force update a docker service #
Ask an LLM
“How do I force a Docker service to pull the latest image?”
“Can I force an update of a single Docker service?”
Tell an agent
Force update Docker service {ServiceID} on endpoint {id}.
Force a Docker service {ServiceID} on environment {id} to pull {PullImage}.
GET /endpoints/{id}/registries List registries on an environment · List Registries on environment #
Ask an LLM
“Which container registries are configured on an environment?”
“Can I list registries for a Kubernetes namespace?”
Tell an agent
List registries on endpoint {id}.
List registries in namespace {namespace} on environment {id}.
PUT /endpoints/{id}/registries/{registryId} Update registry access on an environment · update registry access for environment #
Ask an LLM
“How do I grant a team access to a registry on an environment?”
“Can I change user access policies for a registry?”
Tell an agent
Update registry {registryId} on endpoint {id}.
Grant team access policies {TeamAccessPolicies} to registry {registryId} in environment {id}.
PUT /endpoints/{id}/settings Update an environment's settings · Update settings for an environment(endpoint) #
Ask an LLM
“How do I allow regular users to use bind mounts on an environment?”
“Can I enable GPU management for an environment?”
Tell an agent
Set allow bind mounts for regular users to {allowBindMountsForRegularUsers} on endpoint {id}.
Enable GPU management on environment {id} with GPUs {gpus}.
POST /endpoints/{id}/snapshot Snapshot an environment · Snapshots an environment(endpoint) #
Ask an LLM
“How do I take a snapshot of an environment?”
“Can I create a backup of an environment's state?”
Tell an agent
Take a snapshot of endpoint {id}.
Create a backup of environment {id}.
POST /endpoints/delete Remove multiple environments · Remove multiple environments #
Ask an LLM
“How do I remove several environments in one request?”
“Can I clean up resources when deleting multiple endpoints?”
Tell an agent destructive · confirm first
Remove endpoints {endpoints}.
Delete several environments and clean up their resources.
POST /endpoints/global-key Create or get the global key for an Edge ID · Create or retrieve the endpoint for an EdgeID #
Ask an LLM
“How do I create or retrieve the global endpoint key for an Edge ID?”
“Where do I get the global key for an edge environment?”
Tell an agent
Create or retrieve the global key for an Edge ID.
Get the global endpoint key for my edge environment.
PUT /endpoints/relations Update relations between environments · Update relations for a list of environments #
Ask an LLM
“How do I update the edge groups, tags and environment groups for several endpoints?”
“Can I change relations for a list of environments?”
Tell an agent
Update the relations for these environments: {Relations}.
Reassign edge groups and tags for the listed environments.
POST /endpoints/snapshot Take a snapshot of all endpoints · Snapshot all environments(endpoints) #
Ask an LLM
“Can I back up every environment in Portainer at once?”
“Is there a way to capture all endpoints in one snapshot?”
Tell an agent
Take a snapshot of all endpoints.
Create a backup of every environment in Portainer.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/portainer:portainer-endpoints-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

portainer-endpoints-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: info@portainer.io
  description: Portainer API is an HTTP API served by Portainer.
  license:
    name: zlib
    url: https://github.com/portainer/portainer/blob/develop/LICENSE
  title: PortainerCE Endpoints API
  version: 2.39.1
servers:
- url: /api
tags:


# --- truncated at 32 KB (65 KB total) ---
# Full source: https://artifacts.apis.io/portainer/openapi/portainer-endpoints-api-openapi.yml