Webhooks
Issue a new signing secret
Issue a new signing secret, shown once. 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.
Before you call this endpoint
- An API key needs the
webhooks:managescope. - Once your business has an IP allowlist, every live key must call from an address on it.
- Guide: Rotating a secret
Issue a new signing secret, shown once.
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.
Path Parameters
uuidQuery Parameters
How long the outgoing secret keeps signing. Both secrets sign during the window, so deliveries verify whether or not the receiver has been updated yet. Pass 0 to retire the old secret immediately — the right choice if it leaked.
0 <= value <= 16824Response Body
application/json
application/json
curl -X POST "https://example.com/api/b/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret"{ "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."}