Get a stack's Compose file
One step with Portainer. We can help you get access.
Look something up
Get a stack's Compose file
Works with AI assistantsUse Portainer: its PortainerCE Stacks API lets you get a stack's Compose file in a single step (GET /stacks/{id}/file). Portainer also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- What does the Compose file of a stack look like?
- Can I view the stack file content?
Say it to your AI assistant
- Show the stack file of stack {id}.
- Get the Compose file content for stack {id}.
For your developer
GET /stacks/{id}/file in PortainerCE Stacks API. Full spec on APIs.io.