ManagementStorage
Rotate a storage webhook's secret
POST
Replaces the signing secret; deliveries are signed with the new one within seconds. The new secret is in this response only.
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
Database id
Format
uuidwebhook_id*string
Webhook id
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/databases/497f6eca-6276-4993-bfeb-53cbbbba6f08/storage/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret"{ "secret": "string", "webhook": { "bucket": "string", "consecutive_failures": 0, "created_at": "2019-08-24T14:15:22Z", "database_id": "91088904-0b92-46ad-9240-e1afa0da22df", "disabled_reason": "string", "enabled": true, "enabled_since": "2019-08-24T14:15:22Z", "events": [ "string" ], "failing_since": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "last_attempt_at": "2019-08-24T14:15:22Z", "prefix": "string", "updated_at": "2019-08-24T14:15:22Z", "url": "string" }}List a storage webhook's recent attempts GET
The endpoint's newest delivery attempts (at most 100), newest first: status and duration only.
Send a test event to a storage webhook POST
Sends one signed `webhook.test` event now (enabled or not), without retries and without counting toward the endpoint's failures, and answers how it went.