{
  "openapi": "3.1.0",
  "info": {
    "title": "zapier.sh",
    "version": "1.0.0",
    "summary": "Working Next Gen Zaps an agent deploys with zap-pack or Zapier MCP.",
    "description": "Read-only and public: no key, no sign-in, no rate-limited writes. List every zap, then fetch a zap's SKILL.md and follow it. Installing a zap happens in the user's own Zapier account, through the zap-pack CLI or Zapier MCP, not through this API.",
    "termsOfService": "https://zapier.com/legal/terms-of-service",
    "contact": {
      "name": "Zapier Support",
      "url": "https://zapier.com/app/get-help"
    },
    "license": {
      "name": "MIT",
      "identifier": "MIT"
    }
  },
  "externalDocs": {
    "description": "How to install a zap, for agents",
    "url": "https://zapier.sh/llms.txt"
  },
  "servers": [
    {
      "url": "https://zapier.sh"
    }
  ],
  "security": [],
  "paths": {
    "/zaps.json": {
      "get": {
        "operationId": "listZaps",
        "summary": "List every zap",
        "description": "Every zap on zapier.sh with its summary, apps, category and file URLs. Pick the one whose summary fits what the user wants to automate.",
        "responses": {
          "200": {
            "description": "All zaps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ZapList"
                }
              }
            }
          }
        }
      }
    },
    "/{owner}/{repo}/{slug}/": {
      "get": {
        "operationId": "getZap",
        "summary": "Get one zap",
        "description": "One zap. Ask for `application/json` for its entry from zaps.json, `text/markdown` for its SKILL.md, or HTML for its page.",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "GitHub owner of the repo the zap comes from, for example `zapier`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "Repo the zap comes from, for example `awesome-zaps`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The zap's folder name in that repo, for example `post-daily-sales-report-to-central-team-chat`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The zap.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Zap"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              },
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No zap at this path. The body is Markdown when the request asks for `text/markdown`, the HTML 404 page when it asks for `text/html`, and JSON otherwise (`application/json`, `*/*` or no Accept header).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/{owner}/{repo}/{slug}/SKILL.md": {
      "get": {
        "operationId": "getZapGuide",
        "summary": "Get a zap's install guide",
        "description": "SKILL.md: what to ask the user, which apps to connect, which `REPLACE_…` values to fill in, and how to test the zap.",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "GitHub owner of the repo the zap comes from, for example `zapier`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "Repo the zap comes from, for example `awesome-zaps`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The zap's folder name in that repo, for example `post-daily-sales-report-to-central-team-chat`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The install guide.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/{owner}/{repo}/{slug}/workflow.ts": {
      "get": {
        "operationId": "getZapSource",
        "summary": "Get a zap's source",
        "description": "workflow.ts: the workflow itself. Deploy it as SKILL.md says, with the zap's other files and each `REPLACE_…` value filled in: with zap-pack, or with Zapier MCP. A zap with no other .ts files deploys it as the workflow's single source file.",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "GitHub owner of the repo the zap comes from, for example `zapier`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "Repo the zap comes from, for example `awesome-zaps`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The zap's folder name in that repo, for example `post-daily-sales-report-to-central-team-chat`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The TypeScript source.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/{owner}/{repo}/{slug}/{file}": {
      "get": {
        "operationId": "getZapFile",
        "summary": "Get any other file in a zap",
        "description": "Any other file in the zap's folder, as its `files` lists it: config.ts, each `connections/<alias>.ts`, each `triggers/<name>.ts`, anything under `lib/`, and README.md. SKILL.md says which to deploy and how.",
        "parameters": [
          {
            "name": "owner",
            "in": "path",
            "required": true,
            "description": "GitHub owner of the repo the zap comes from, for example `zapier`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "repo",
            "in": "path",
            "required": true,
            "description": "Repo the zap comes from, for example `awesome-zaps`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The zap's folder name in that repo, for example `post-daily-sales-report-to-central-team-chat`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._-]+$"
            }
          },
          {
            "name": "file",
            "in": "path",
            "required": true,
            "description": "The file's path in the zap's folder, as the zap's `files` in zaps.json lists it, for example `config.ts` or `connections/slack.ts`. A file in a subfolder keeps its slash.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._/-]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file, unchanged.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getAgentGuide",
        "summary": "Get the agent guide",
        "description": "How an agent finds and installs a zap, what it costs, and when to use zapier.sh.",
        "responses": {
          "200": {
            "description": "The guide, in Markdown.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getAgentGuideWithZaps",
        "summary": "Get the agent guide with every zap",
        "description": "llms.txt plus every zap, grouped by category.",
        "responses": {
          "200": {
            "description": "The guide and the list, in Markdown.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Zap": {
        "type": "object",
        "description": "One zap: what it does, the apps it uses, and where its files are.",
        "required": [
          "slug",
          "title",
          "summary",
          "apps",
          "path",
          "page",
          "skill",
          "workflow",
          "files",
          "commands",
          "prompt"
        ],
        "properties": {
          "slug": {
            "type": "string",
            "description": "The zap's folder name. Permanent."
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string",
            "description": "One sentence on what the zap does."
          },
          "apps": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Apps the zap connects to."
          },
          "path": {
            "type": "string",
            "description": "`<owner>/<repo>/<slug>`, the zap's path on zapier.sh."
          },
          "category": {
            "type": "string",
            "description": "The role it's for, as on zapier.com/automations."
          },
          "job": {
            "type": [
              "string",
              "null"
            ],
            "description": "The job within the category."
          },
          "author": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": "string",
            "format": "uri",
            "description": "The zap's folder on GitHub."
          },
          "page": {
            "type": "string",
            "format": "uri",
            "description": "The zap's page on zapier.sh."
          },
          "skill": {
            "type": "string",
            "format": "uri",
            "description": "SKILL.md, the install guide to follow."
          },
          "workflow": {
            "type": "string",
            "format": "uri",
            "description": "workflow.ts, the workflow itself."
          },
          "files": {
            "type": "array",
            "description": "Every file in the zap's folder, sorted by path: SKILL.md, workflow.ts and README.md, plus config.ts, connections/, triggers/ and lib/ where the zap has them. Deploy them as SKILL.md says.",
            "items": {
              "type": "object",
              "required": [
                "path",
                "url"
              ],
              "properties": {
                "path": {
                  "type": "string",
                  "description": "The file's path in the zap's folder, for example `connections/slack.ts`."
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "description": "The file on zapier.sh, next to the zap's SKILL.md."
                }
              }
            }
          },
          "commands": {
            "type": "object",
            "description": "The zap-pack commands an agent that runs shell commands uses. Between them, it replaces each `REPLACE_…` value as SKILL.md says; deploy refuses while any is left.",
            "required": [
              "add",
              "deploy"
            ],
            "properties": {
              "add": {
                "type": "string",
                "description": "Copies the zap's folder into the user's zap project, making one if there is none."
              },
              "deploy": {
                "type": "string",
                "description": "Deploys the zap to the user's Zapier account, signing them in first if needed."
              }
            }
          },
          "prompt": {
            "type": "string",
            "description": "A prompt that has any agent set up the zap: with zap-pack when it can run commands, with Zapier MCP otherwise."
          }
        }
      },
      "ZapList": {
        "type": "object",
        "required": [
          "name",
          "description",
          "zaps"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "zaps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Zap"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "hint"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "not_found"
                ],
                "description": "What went wrong, as a stable code."
              },
              "message": {
                "type": "string",
                "description": "What went wrong, for a person."
              },
              "hint": {
                "type": "string",
                "description": "Where to go instead."
              }
            }
          }
        }
      }
    }
  }
}
