Import the API into n8n, Make, Pipedream or Postman
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
MZPanel publishes an OpenAPI 3.1 description of its whole management API. It is generated from the same operation registry the API and the MCP server use, so every operation a token can call is in it: servers, sites, Docker apps and stacks, DNS/TLS, backups, mail, uptime, files, projects, network and more. It also has the exact body schema of every on-box job kind. It is on every plan (on Free, writes are a 30-day trial, then read-only).
Where to get it
Section titled “Where to get it”| What | URL | Size |
|---|---|---|
| Whole API (live) | https://api.mzpanel.com/v1/openapi.json | about 700 KB |
| One area (live) | https://api.mzpanel.com/v1/openapi.json?tag=dns | 7–400 KB |
| Whole API (static copy) | https://docs.mzpanel.com/openapi/mzpanel.json | same content, indented |
| One area (static copy) | https://docs.mzpanel.com/openapi/<tag>.json | same content, indented |
Tags (areas): servers, sites, apps, deployments, projects, connections, dns, backups,
jobs, mail, files, uptime, notifications, network, team, account,
webhooks, wordpress, ai and rest (the synchronous /v1/api/* shortcuts and
discovery). An unknown ?tag= answers 404 unknown_tag with the list in
error.details.tags. Fetching the document needs no token.
Which one to import:
- Postman, Insomnia, Bruno, code generators: the whole API is fine.
- n8n, Make, Pipedream and other low-code tools: import or read one area at a
time, the one your workflow needs (for example
dnsfor DNS records,uptimefor monitors,appsfor deploys). Smaller files load faster and keep the operation list short. - On-box actions (create a site, restart a service, back up a stack, install PHP …)
all go through one operation,
POST /v1/servers/{id}/jobs, in thejobsarea. Its body is aoneOfover every job kind, picked by thetypefield (site.create,app.create,stack.deploy,db.create, …). Each kind’s schema iscomponents.schemas["job.<kind>"].
What each operation carries
Section titled “What each operation carries”operationId= the operation id (dns.records_create);x-mz-mcp-tool= the matching MCP tool (dns_records_create).x-mz-level: the minimum token level (read<deploy<operate<full).x-mz-scope: the opt-in scope the call needs, if any (sites:delete,data:delete, …). The level never implies a scope.x-mz-min-tier: the lowest plan, if the operation is gated (pro).- Errors share one envelope,
components.schemas.Error:{"error": {"code", "message", "details"?}}.429carriesRetry-After(seconds).
See Tokens, levels & scopes for what to tick when you mint the token.
Postman (or Insomnia, Bruno)
Section titled “Postman (or Insomnia, Bruno)”- Import → Link → paste
https://api.mzpanel.com/v1/openapi.json(or one area). - On the new collection, open Authorization → type Bearer Token → paste your
mzmcp_…token. Every request inherits it. - The base URL is
https://api.mzpanel.com. Path parameters such as{id}are server UUIDs; get them fromGET /v1/servers.
- Credentials → New → Header Auth: name
Authorization, valueBearer mzmcp_…. - Add an HTTP Request node with that credential. Take the method, path and body
fields from the area document (for example
dns.json→POST /v1/dns/records). Set Body Content Type to JSON. - For an on-box job,
POST https://api.mzpanel.com/v1/servers/{id}/jobswith{"type": "<kind>", ...fields}, then pollGET /v1/jobs/{job_id}with a Wait node (2–5 s) untilstatusiscompleted,failed,timeoutorcancelled. - For an n8n AI Agent, connect the MCP server instead of single endpoints: see Connect your AI client (MCP).
- Add an HTTP → Make a request module.
- URL
https://api.mzpanel.com/<path from the area document>, method from the document, headerAuthorization: Bearer mzmcp_…, body type Raw with content type JSON. - Use the operation’s request body schema as the template for the JSON body. Jobs are
async: loop on
GET /v1/jobs/{job_id}with a Sleep module.
Pipedream
Section titled “Pipedream”- Add an HTTP / Webhook → Send any HTTP request step (or a Node.js code step).
- Add the header
Authorization: Bearer {{process.env.MZPANEL_TOKEN}}and store the token as an environment variable. - Copy the path and body from the area document. When you ask Pipedream’s AI code generation to write the step, give it the area document URL so it uses the exact field names.
Code generators
Section titled “Code generators”Any OpenAPI 3.1 generator works on the whole document (for example
openapi-generator-cli generate -i https://api.mzpanel.com/v1/openapi.json -g python).
Request bodies are strict: an unknown key is rejected with 400 and a did-you-mean hint
in error.details, so keep the generated models in sync by regenerating them from the
live URL.
Limits
Section titled “Limits”- Response bodies are documented as plain JSON (no per-operation response schema yet);
read the operation
descriptionfor the shape.GET /v1/api/operationsis the live discovery document and marks what your token may call. - When an operation documents its body only in prose, the document has a generic
objectwith a pointer to the description. - Rate limits are per token per minute: Free 60, Plus 120, Pro 300, Max 600, shared with MCP.