Rewardly Docs
API ReferenceWebhooks

Create a webhook endpoint

POST
/v1/webhook-endpoints

Events are signed with HMAC-SHA256. Verify the X-Webhook-Signature header (v1=<hex>) against "{X-Webhook-Timestamp}.{raw body}" using the returned secret.

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/webhook-endpoints" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com"  }'
{  "endpoint": {    "id": "string",    "url": "string",    "events": [      "string"    ],    "active": true,    "createdAt": "string",    "secret": "string"  }}