{"id":38,"date":"2026-11-25T22:35:49","date_gmt":"2026-11-25T22:35:49","guid":{"rendered":"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/"},"modified":"2026-11-25T22:42:55","modified_gmt":"2026-11-25T22:42:55","password":"","slug":"webhook-signature","status":"publish","type":"docs","link":"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/","title":{"rendered":"Webhook payload and signature"},"content":{"rendered":"<p>Every webhook delivery is a JSON POST with two headers that let your endpoint verify origin and freshness.<\/p>\n<h2>Headers<\/h2>\n<table>\n<thead>\n<tr>\n<th>Header<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>X-Rulemancer-Timestamp<\/code><\/td>\n<td>Unix time in seconds when the request was built<\/td>\n<\/tr>\n<tr>\n<td><code>X-Rulemancer-Signature<\/code><\/td>\n<td><code>sha256=<\/code> + HMAC-SHA256 of <code>timestamp.body<\/code> using the endpoint secret<\/td>\n<\/tr>\n<tr>\n<td><code>User-Agent<\/code><\/td>\n<td><code>Rulemancer-Webhook\/1.0<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Verifying<\/h2>\n<ol>\n<li>Read the raw body exactly as sent \u2014 do not re-serialise JSON.<\/li>\n<li>Build the string <code>timestamp + \".\" + body<\/code>.<\/li>\n<li>Compute HMAC-SHA256 with the endpoint secret and compare in constant time.<\/li>\n<li>Reject requests whose timestamp is older than a few minutes to block replays.<\/li>\n<\/ol>\n<h2>Payload shape<\/h2>\n<p>Each event includes the bot, the pair, the event name and a timestamp; trade events add fill price, quantity and fee. Failures are visible in the webhook log with the HTTP status the endpoint returned, and they never block the bot.<\/p>\n<p><!--rm-related-start--><\/p>\n<aside class=\"rm-related\" style=\"margin-top:48px;padding-top:24px;border-top:1px solid #E6E6F0;\">\n<h2 style=\"font-size:18px;margin:0 0 12px;\">Related reading<\/h2>\n<ul style=\"list-style:none;padding:0;margin:0 0 4px;display:grid;gap:8px;\">\n<li><a href=\"https:\/\/rulemancer.com\/blog\/telegram-webhook-alerts\/\">Alerts that reach you: Telegram, email and signed webhooks<\/a><\/li>\n<\/ul>\n<p style=\"margin:12px 0 0;font-size:14px;color:#5B5B72;\"><a href=\"https:\/\/rulemancer.com\/blog\/docs\/\">All documentation<\/a> &nbsp;\u00b7&nbsp; <a href=\"https:\/\/rulemancer.com\/register\">Start free<\/a><\/p>\n<\/aside>\n<p><!--rm-related-end--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every webhook delivery is a JSON POST with two headers that let your endpoint verify origin and freshness. Headers Header Value X-Rulemancer-Timestamp Unix time in seconds\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[8],"doc_tag":[],"class_list":["post-38","docs","type-docs","status-publish","hentry","doc_category-alerts"],"year_month":"2026-11","word_count":138,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/rulemancer.com\/blog\/author\/admin\/"},"doc_category_info":[{"term_name":"Alerts","term_url":"https:\/\/rulemancer.com\/blog\/docs-category\/alerts\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Webhook payload and signature - Rulemancer Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Webhook payload and signature - Rulemancer Blog\" \/>\n<meta property=\"og:description\" content=\"Every webhook delivery is a JSON POST with two headers that let your endpoint verify origin and freshness. Headers Header Value X-Rulemancer-Timestamp Unix time in seconds\u2026\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/\" \/>\n<meta property=\"og:site_name\" content=\"Rulemancer Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-25T22:42:55+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/webhook-signature\\\/\",\"url\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/webhook-signature\\\/\",\"name\":\"Webhook payload and signature - Rulemancer Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-11-25T22:35:49+00:00\",\"dateModified\":\"2026-11-25T22:42:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/webhook-signature\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/webhook-signature\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/webhook-signature\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Webhook payload and signature\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/\",\"name\":\"Rulemancer Blog\",\"description\":\"Guides for rule-based crypto trading bots\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rulemancer.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Webhook payload and signature - Rulemancer Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/","og_locale":"en_US","og_type":"article","og_title":"Webhook payload and signature - Rulemancer Blog","og_description":"Every webhook delivery is a JSON POST with two headers that let your endpoint verify origin and freshness. Headers Header Value X-Rulemancer-Timestamp Unix time in seconds\u2026","og_url":"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/","og_site_name":"Rulemancer Blog","article_modified_time":"2026-11-25T22:42:55+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/","url":"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/","name":"Webhook payload and signature - Rulemancer Blog","isPartOf":{"@id":"https:\/\/rulemancer.com\/blog\/#website"},"datePublished":"2026-11-25T22:35:49+00:00","dateModified":"2026-11-25T22:42:55+00:00","breadcrumb":{"@id":"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rulemancer.com\/blog\/docs\/webhook-signature\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/rulemancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/rulemancer.com\/blog\/docs\/"},{"@type":"ListItem","position":3,"name":"Webhook payload and signature"}]},{"@type":"WebSite","@id":"https:\/\/rulemancer.com\/blog\/#website","url":"https:\/\/rulemancer.com\/blog\/","name":"Rulemancer Blog","description":"Guides for rule-based crypto trading bots","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rulemancer.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":1,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/38\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/docs\/38\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/doc_category?post=38"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/rulemancer.com\/blog\/wp-json\/wp\/v2\/doc_tag?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}