Register a webhook endpoint
Add somewhere to send events. **The secret is shown once.**
Add somewhere to send events. The secret is shown once.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Where we send events, and which ones. IN-302.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/b/v1/webhooks" \ -H "Content-Type: application/json" \ -d '{ "url": "https://api.example.com/hooks/inversepay" }'{ "endpoint": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "description": "string", "event_types": [ "string" ], "is_active": true, "failure_streak": 0, "last_delivered_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" }, "secret": "string", "signature_header": "X-InversePay-Signature", "verification_hint": "Sign the raw request body, not a re-serialised copy: two JSON documents can mean the same thing and differ byte for byte."}List webhook endpoints GET
Previous Page
Issue a new signing secret POST
Issue a new signing secret, shown once — E11-1 AC2. By default the outgoing secret keeps signing for a day, so this can be done before the receiver is updated rather than in lockstep with it. A rotation that has to be coordinated is a rotation that does not happen.