{
  "openapi": "3.1.0",
  "info": {
    "title": "webhook.plus",
    "version": "1.0.0",
    "description": "A friendly webhook and HTTP testing tool. Get a personal endpoint, send test requests, and see exactly what arrived. Free, with no account.\n\nHeads up: webhook.plus saves a full copy of every request and response (headers, bodies, parameters), along with the sender's IP address, rough whereabouts, internet provider, the software that sent it, and a fingerprint of the secure connection. We run it for research into how web tools get used, and we never delete anything. Please use test data, not real secrets or customer details. Using webhook.plus or its API means you agree. https://webhook.plus/your-data"
  },
  "servers": [
    {
      "url": "https://webhook.plus"
    }
  ],
  "externalDocs": {
    "description": "Developer guide",
    "url": "https://webhook.plus/docs"
  },
  "paths": {
    "/base64": {
      "get": {
        "operationId": "convertBase64",
        "summary": "Turn base64 back into text, or text into base64 with mode=encode. Standard and URL-safe base64 both work.",
        "parameters": [
          {
            "name": "data",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "The text to decode or encode."
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "decode (the default) or encode.",
              "enum": [
                "decode",
                "encode"
              ],
              "default": "decode"
            }
          },
          {
            "name": "content_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "The Content-Type we use for the reply.",
              "default": "text/plain; charset=utf-8"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      },
      "post": {
        "operationId": "convertBase64Body",
        "summary": "Same as the GET version, but you send the input in the body. A plain text/plain body works too.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "string",
                    "description": "The text to decode or encode."
                  },
                  "mode": {
                    "type": "string",
                    "description": "decode (the default) or encode.",
                    "enum": [
                      "decode",
                      "encode"
                    ],
                    "default": "decode"
                  },
                  "content_type": {
                    "type": "string",
                    "description": "The Content-Type we use for the reply.",
                    "default": "text/plain; charset=utf-8"
                  }
                },
                "required": []
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "string",
                    "description": "The text to decode or encode."
                  },
                  "mode": {
                    "type": "string",
                    "description": "decode (the default) or encode.",
                    "enum": [
                      "decode",
                      "encode"
                    ],
                    "default": "decode"
                  },
                  "content_type": {
                    "type": "string",
                    "description": "The Content-Type we use for the reply.",
                    "default": "text/plain; charset=utf-8"
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/base64/{encoded}": {
      "get": {
        "operationId": "decodeBase64FromPath",
        "summary": "Put base64 right in the URL path and we decode it for you. URL-safe base64 is the comfiest choice here.",
        "parameters": [
          {
            "name": "encoded",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The base64 you want decoded."
            }
          },
          {
            "name": "content_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "The Content-Type we use for the reply."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/reply": {
      "get": {
        "operationId": "craftReply",
        "summary": "Pick the status, body, content type and headers we reply with, plus an optional delay of up to 10 seconds. HTML bodies can run JavaScript, in an isolated origin.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "The status we reply with (200 to 599).",
              "minimum": 200,
              "maximum": 599,
              "default": 200
            }
          },
          {
            "name": "body",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "What you want the reply body to say."
            }
          },
          {
            "name": "base64",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "A binary body for the reply, written as base64. If you send both, this wins over body."
            }
          },
          {
            "name": "content_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "The Content-Type we use for the reply.",
              "default": "text/plain; charset=utf-8"
            }
          },
          {
            "name": "headers",
            "in": "query",
            "required": false,
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              },
              "description": "Response headers as name/value pairs. With GET, send them as a JSON-encoded object."
            }
          },
          {
            "name": "delay",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 10,
              "default": 0,
              "description": "Seconds to wait before we start replying (up to 10)."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      },
      "post": {
        "operationId": "craftReplyFromBody",
        "summary": "Same as GET /reply, with your choices sent in the body instead. HTML bodies can run JavaScript, in an isolated origin.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "integer",
                    "description": "The status we reply with (200 to 599).",
                    "minimum": 200,
                    "maximum": 599,
                    "default": 200
                  },
                  "body": {
                    "type": "string",
                    "description": "What you want the reply body to say."
                  },
                  "base64": {
                    "type": "string",
                    "description": "A binary body for the reply, written as base64. If you send both, this wins over body."
                  },
                  "content_type": {
                    "type": "string",
                    "description": "The Content-Type we use for the reply.",
                    "default": "text/plain; charset=utf-8"
                  },
                  "headers": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Response headers as name/value pairs. With GET, send them as a JSON-encoded object."
                  },
                  "delay": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10,
                    "default": 0,
                    "description": "Seconds to wait before we start replying (up to 10)."
                  }
                },
                "required": []
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "integer",
                    "description": "The status we reply with (200 to 599).",
                    "minimum": 200,
                    "maximum": 599,
                    "default": 200
                  },
                  "body": {
                    "type": "string",
                    "description": "What you want the reply body to say."
                  },
                  "base64": {
                    "type": "string",
                    "description": "A binary body for the reply, written as base64. If you send both, this wins over body."
                  },
                  "content_type": {
                    "type": "string",
                    "description": "The Content-Type we use for the reply.",
                    "default": "text/plain; charset=utf-8"
                  },
                  "headers": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Response headers as name/value pairs. With GET, send them as a JSON-encoded object."
                  },
                  "delay": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10,
                    "default": 0,
                    "description": "Seconds to wait before we start replying (up to 10)."
                  }
                },
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/recipe/{directives}": {
      "get": {
        "operationId": "replyRecipe",
        "summary": "Build a reply right in the path, e.g. /recipe/s=201/h=content-type:text%2Fplain/b64=SGVsbG8=. Ingredients: s (status), h (header), c (cookie), r (redirect), b64 (body) and end. Go templates are not supported.",
        "parameters": [
          {
            "name": "directives",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Your recipe: directives separated by slashes. URL-encode any value that contains a slash."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/get": {
      "get": {
        "operationId": "echoGetRequest",
        "summary": "Send a GET and we show you what arrived: method, query, headers, body, parsed JSON, form fields and multipart files.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/post": {
      "post": {
        "operationId": "echoPostRequest",
        "summary": "Send a POST and we show you what arrived: method, query, headers, body, parsed JSON, form fields and multipart files.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/put": {
      "put": {
        "operationId": "echoPutRequest",
        "summary": "Send a PUT and we show you what arrived: method, query, headers, body, parsed JSON, form fields and multipart files.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/patch": {
      "patch": {
        "operationId": "echoPatchRequest",
        "summary": "Send a PATCH and we show you what arrived: method, query, headers, body, parsed JSON, form fields and multipart files.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/delete": {
      "delete": {
        "operationId": "echoDeleteRequest",
        "summary": "Send a DELETE and we show you what arrived: method, query, headers, body, parsed JSON, form fields and multipart files.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/anything": {
      "get": {
        "operationId": "seeAnything",
        "summary": "Your all-purpose webhook endpoint. Any method and any path below /anything/ works, and we echo back the method, query, headers, body, parsed JSON, form fields and files.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      },
      "post": {
        "operationId": "seeAnythingPosted",
        "summary": "POST to /anything (or any path below it) and we echo back the method, query, headers, body, parsed JSON, form fields and files.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/any": {
      "get": {
        "operationId": "seeAny",
        "summary": "A shorter twin of /anything: any method works, and we echo back the method, query, headers, body, parsed JSON, form fields and files.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      },
      "post": {
        "operationId": "seeAnyPosted",
        "summary": "POST to /any and we echo back the method, query, headers, body, parsed JSON, form fields and files.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/payload": {
      "get": {
        "operationId": "mirrorBody",
        "summary": "Sends your request body straight back, byte for byte, with the same Content-Type you used.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      },
      "post": {
        "operationId": "mirrorPostedBody",
        "summary": "POST a body and get it straight back, byte for byte, with the same Content-Type you used.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {},
                "required": []
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/headers": {
      "get": {
        "operationId": "showRequestHeaders",
        "summary": "See just the headers your request arrived with, as JSON.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/ip": {
      "get": {
        "operationId": "showMyIp",
        "summary": "See the IP address your request came from, as JSON.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/user-agent": {
      "get": {
        "operationId": "showUserAgent",
        "summary": "See the User-Agent your client sent, as JSON.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/uuid": {
      "get": {
        "operationId": "newUuid",
        "summary": "Get a fresh random UUID.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/cookies": {
      "get": {
        "operationId": "showCookies",
        "summary": "See the cookies your request carried, as JSON.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/bearer": {
      "get": {
        "operationId": "checkAnyBearerToken",
        "summary": "Check that your client sends an Authorization: Bearer header. Any token passes; no token gets a 401.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/json": {
      "get": {
        "operationId": "tryJson",
        "summary": "A small sample JSON response.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/html": {
      "get": {
        "operationId": "tryHtml",
        "summary": "A small sample HTML page.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/xml": {
      "get": {
        "operationId": "tryXml",
        "summary": "A small sample XML document.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/gzip": {
      "get": {
        "operationId": "echoGzipped",
        "summary": "Echoes your request back as gzip-compressed JSON, to check that your client decompresses it.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/deflate": {
      "get": {
        "operationId": "echoDeflated",
        "summary": "Echoes your request back as deflate-compressed JSON, to check that your client decompresses it.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/status/{codes}": {
      "get": {
        "operationId": "replyWithStatus",
        "summary": "Reply with the status you ask for (200 to 599). Give a comma-separated list and we pick one at random.",
        "parameters": [
          {
            "name": "codes",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The status to reply with, or a comma-separated list for us to pick from at random.",
              "example": "200,503"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/delay/{seconds}": {
      "get": {
        "operationId": "slowEcho",
        "summary": "Wait the number of seconds you choose (up to 10), then echo your request.",
        "parameters": [
          {
            "name": "seconds",
            "in": "path",
            "required": true,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 10,
              "description": "How many seconds to wait (up to 10; fractions are fine)."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/bytes/{count}": {
      "get": {
        "operationId": "randomBytes",
        "summary": "Get up to 1 MiB of random bytes.",
        "parameters": [
          {
            "name": "count",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 0,
              "maximum": 1048576
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/stream/{count}": {
      "get": {
        "operationId": "streamJsonLines",
        "summary": "Stream 1 to 100 newline-delimited JSON records.",
        "parameters": [
          {
            "name": "count",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/redirect/{count}": {
      "get": {
        "operationId": "bounceAround",
        "summary": "Redirect the number of times you choose (up to 20), ending at /get, which echoes your request.",
        "parameters": [
          {
            "name": "count",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 0,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/relative-redirect/{count}": {
      "get": {
        "operationId": "bounceRelative",
        "summary": "Like /redirect/{count}, but each Location header is a relative path.",
        "parameters": [
          {
            "name": "count",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 0,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/absolute-redirect/{count}": {
      "get": {
        "operationId": "bounceAbsolute",
        "summary": "Like /redirect/{count}, but each Location header is a full URL.",
        "parameters": [
          {
            "name": "count",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 0,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/cache/{age}": {
      "get": {
        "operationId": "cacheableEcho",
        "summary": "Echo your request with a Cache-Control max-age you choose, and answer conditional requests (If-None-Match, If-Match) with 304 or 412.",
        "parameters": [
          {
            "name": "age",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "How long, in seconds, the reply may be cached (sent as Cache-Control max-age).",
              "minimum": 0,
              "maximum": 31536000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/etag/{etag}": {
      "get": {
        "operationId": "etagCheck",
        "summary": "Reply with the ETag you choose, so you can test If-None-Match (304) and If-Match (412).",
        "parameters": [
          {
            "name": "etag",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The entity tag to use, without quotes."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/response-headers": {
      "get": {
        "operationId": "queryToHeaders",
        "summary": "Every query parameter you send comes back as a response header. Headers the runtime manages itself are left out.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/redirect-to": {
      "get": {
        "operationId": "redirectAnywhere",
        "summary": "Redirect to any HTTP(S) URL or relative path, with the redirect status of your choice.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Where to send the redirect: a public HTTP(S) URL or a relative path.",
              "format": "uri",
              "example": "https://example.com"
            }
          },
          {
            "name": "status_code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "The redirect status: 301, 302, 303, 307 or 308.",
              "minimum": 301,
              "maximum": 308,
              "default": 302
            }
          }
        ],
        "responses": {
          "302": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/basic-auth/{username}/{password}": {
      "get": {
        "operationId": "checkBasicAuth",
        "summary": "Check that your client sends HTTP Basic auth with the username and password in the path. Wrong or missing credentials get a 401.",
        "parameters": [
          {
            "name": "username",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The username your client should send."
            }
          },
          {
            "name": "password",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The password your client should send."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/bearer/{expectedToken}": {
      "get": {
        "operationId": "checkBearerToken",
        "summary": "Check that your client sends Authorization: Bearer with exactly the token in the path. Anything else gets a 401.",
        "parameters": [
          {
            "name": "expectedToken",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The token your client should send in Authorization: Bearer."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/cookies/set": {
      "get": {
        "operationId": "plantCookies",
        "summary": "Sets a cookie for each query parameter (name=value), then redirects you to /cookies.",
        "responses": {
          "302": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/cookies/delete": {
      "get": {
        "operationId": "clearCookies",
        "summary": "Clears the cookies named in the query string, then redirects you to /cookies.",
        "responses": {
          "302": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/drip": {
      "get": {
        "operationId": "trickleBytes",
        "summary": "Sends bytes slowly, one at a time, spread over the duration you choose. Duration plus delay can be up to 10 seconds in total.",
        "parameters": [
          {
            "name": "duration",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 10,
              "description": "Seconds to spread the stream over (up to 10, together with delay)."
            }
          },
          {
            "name": "delay",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 10,
              "description": "Seconds to wait before we start replying (up to 10)."
            }
          },
          {
            "name": "numbytes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "How many bytes to drip.",
              "minimum": 1,
              "maximum": 1000,
              "default": 10
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 1,
              "maximum": 100,
              "default": 5
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "The status we stream back with (200 to 599).",
              "minimum": 200,
              "maximum": 599,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/drip-lines": {
      "get": {
        "operationId": "trickleLines",
        "summary": "Like /drip, but each byte arrives on its own line. Duration plus delay can be up to 10 seconds in total.",
        "parameters": [
          {
            "name": "duration",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 10,
              "description": "Seconds to spread the stream over (up to 10, together with delay)."
            }
          },
          {
            "name": "delay",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 10,
              "description": "Seconds to wait before we start replying (up to 10)."
            }
          },
          {
            "name": "numbytes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "How many bytes to drip.",
              "minimum": 1,
              "maximum": 1000,
              "default": 10
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 1,
              "maximum": 100,
              "default": 5
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "The status we stream back with (200 to 599).",
              "minimum": 200,
              "maximum": 599,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/sse": {
      "get": {
        "operationId": "serverSentEvents",
        "summary": "Streams server-sent events, spread over the duration you choose. Duration plus delay can be up to 10 seconds in total.",
        "parameters": [
          {
            "name": "duration",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 10,
              "description": "Seconds to spread the stream over (up to 10, together with delay)."
            }
          },
          {
            "name": "delay",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 10,
              "description": "Seconds to wait before we start replying (up to 10)."
            }
          },
          {
            "name": "numbytes",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "How many bytes to drip.",
              "minimum": 1,
              "maximum": 1000,
              "default": 10
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 1,
              "maximum": 100,
              "default": 5
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "The status we stream back with (200 to 599).",
              "minimum": 200,
              "maximum": 599,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/links/{count}/{offset}": {
      "get": {
        "operationId": "linkPages",
        "summary": "A small HTML page of numbered links to its sibling pages, handy for testing crawlers.",
        "parameters": [
          {
            "name": "count",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "How many you want: bytes, records, events, redirects or links, depending on the endpoint.",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "offset",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "Which link is the current page (shown as plain text, not a link).",
              "minimum": 0,
              "maximum": 99
            }
          }
        ],
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    },
    "/docs": {
      "get": {
        "operationId": "developerGuide",
        "summary": "Our developer guide, as a friendly HTML page.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/robots.txt": {
      "get": {
        "operationId": "searchEngineRules",
        "summary": "What crawlers may visit, and where to find our sitemap.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "ourSitemap",
        "summary": "A list of our public pages for search engines.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "healthCheck",
        "summary": "A quick \"we're up\" check. It doesn't test anything beyond this service.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "aiToolsGuide",
        "summary": "A plain-text guide to webhook.plus for AI tools.",
        "responses": {
          "200": {
            "description": "It worked.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "ErrorResponse": {
        "description": "It didn't work; the error explains why.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean"
          },
          "error": {
            "type": "object",
            "required": [
              "status",
              "message"
            ],
            "properties": {
              "status": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              }
            }
          }
        },
        "example": {
          "success": false,
          "error": {
            "status": 400,
            "message": "Explanation of the problem."
          }
        }
      }
    }
  }
}
