CountWatchDocs

CountWatch docs / API reference

invalid_header

HTTP 400. A webhook's custom header is not allowed: at most 3, each a name of up to 64 letters, digits or - _ . ! # $ % & ' * + ^ ` | ~ and a value of up to …

HTTP 400. A webhook's custom header is not allowed: at most 3, each a name of up to 64 letters, digits or - _ . ! # $ % & ' * + ^ | ~ and a value of up to 1,024 printable ASCII characters. Host, Content-Length, Content-Type, Transfer-Encoding, Connection, User-Agent and everywebhook-name are CountWatch's own, and Expect, Upgrade, TE, Trailer, Keep-Alive,Proxy-andCF-* cannot be sent (any letter case). A value that still starts with a header name and a colon (X-Api-Keyset toAuthorization: Bearer …`) is refused: a whole line is split only when the name is empty or the same.

Fix: Read detail, then send headers again as [{"name": "Authorization", "value": "Bearer …"}] (only the value in value; a whole Authorization: Bearer … line with an empty name is split for you); on PATCH, {"name": "X-Key", "value": null} removes one.

Every problem also carries request_id; quote it when you ask for help. All codes: index.

For agents: this page as Markdown.