API referenceWebhooks

rotate_webhook_secret

POST /v1/webhook_endpoints/{id}/rotate_secret: makes a new signing secret (an admin's key), shown only in this response.

POST
/v1/webhook_endpoints/{id}/rotate_secret

Makes a new signing secret (an admin's key), shown only in this response. For 24 hours, deliveries are signed with the old secret too.

Responses

The endpoint, with its new secret.

Examples

Example Request
curl -X POST 'https://api.finic.ai/v1/webhook_endpoints/string/rotate_secret' \  -H "Authorization: Bearer $FINIC_API_KEY"
Example Response
{  "id": "string",  "url": "string",  "description": "string",  "event_types": [    "string"  ],  "status": "enabled",  "disabled_reason": "string",  "failing_since": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "secret": "string"}