Receive a signed Polar webhook
const url = 'https://api.voidfs.com/webhooks/polar';const options = { method: 'POST', headers: { 'webhook-id': 'example', 'webhook-timestamp': 'example', 'webhook-signature': '<webhook-signature>', 'Content-Type': 'application/json' }, body: '{"type":"customer.state_changed","timestamp":"2026-11-27T10:15:00Z","data":{"external_id":"0000000000000000000000000000000000000000000000000000000000000000"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.voidfs.com/webhooks/polar \ --header 'Content-Type: application/json' \ --header 'webhook-id: example' \ --header 'webhook-signature: <webhook-signature>' \ --header 'webhook-timestamp: example' \ --data '{ "type": "customer.state_changed", "timestamp": "2026-11-27T10:15:00Z", "data": { "external_id": "0000000000000000000000000000000000000000000000000000000000000000" } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Raw Polar JSON payload, at most 1 MiB. The signature covers the unmodified body.
object
object
Example
{ "type": "customer.state_changed", "timestamp": "2026-11-27T10:15:00Z", "data": { "external_id": "0000000000000000000000000000000000000000000000000000000000000000" }}Responses
Section titled “Responses”Receipt of a verified delivery, including an ignored or repeated event.
Invalid request. Conflicting credentials.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#invalid", "title": "Invalid request", "status": 400, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "invalid", "category": "invalid-input"}{ "type": "https://docs.voidfs.com/errors/#conflicting-credentials", "title": "Conflicting credentials", "status": 400, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "conflicting-credentials", "category": "invalid-input"}Not allowed.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#forbidden", "title": "Not allowed", "status": 403, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "forbidden", "category": "forbidden"}Not found.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#not-found", "title": "Not found", "status": 404, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "not-found", "category": "not-found"}Method not allowed.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#method-not-allowed", "title": "Method not allowed", "status": 405, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "method-not-allowed", "category": "invalid-input"}Headers
Section titled “Headers”Payload too large.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#payload-too-large", "title": "Payload too large", "status": 413, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "payload-too-large", "category": "invalid-input"}Unavailable.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unavailable", "title": "Unavailable", "status": 500, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unavailable", "category": "unavailable"}Unavailable.
object
Problem type URI
HTTP status code
Short summary of the problem type
Human-readable explanation
Examples
{ "type": "https://docs.voidfs.com/errors/#unavailable", "title": "Unavailable", "status": 503, "instance": "urn:uuid:4bf92f35-77b3-4da6-a3ce-929d0e0e4736", "error": "unavailable", "category": "unavailable"}