Enable webhook endpoint
Enables the endpoint and resets its failure counter. Events that failed while it was disabled can be sent again with resend-failed.
bearerAuthAuthorizationBearer <token>An organization API key (koast_sk_…) with the API surface enabled, or an OAuth access token issued by Koast (koast_at_…) whose audience covers this API. REST access requires an active Agency plan.
endpointId*stringThe webhook endpoint id (ep_…).
1 <= length <= 64Idempotency-Key?stringRetrying with the same key within 24 hours returns the first response without acting again.
length <= 255Enable webhook endpoint
application/json- response
id*stringurl*stringeventTypes*array<string>brandIds*array<number>|nullstatus*stringdisabled_by_failures means Koast gave up after ~3 days of failed deliveries; enable it again once fixed.
"enabled""disabled""disabled_by_failures"disabledReason*string|nulldisabledAt*string|nullconsecutiveFailures*integer-9007199254740991 <= value <= 9007199254740991lastSuccessAt*string|nulllastFailureAt*string|nulllastError*string|nullsecretRotationExpiresAt*|While set, deliveries are signed with both the new and the previous secret.
createdAt*stringupdatedAt*stringcurl -X POST "https://example.com/v1/webhooks/string/enable" \ -H "Authorization: Bearer koast_sk_..."{ "id": "string", "url": "string", "eventTypes": [ "string" ], "brandIds": [ 0 ], "status": "enabled", "disabledReason": "string", "disabledAt": "string", "consecutiveFailures": -9007199254740991, "lastSuccessAt": "string", "lastFailureAt": "string", "lastError": "string", "secretRotationExpiresAt": "string", "createdAt": "string", "updatedAt": "string"}Required scope: write. CLI: koast enable-webhook-endpoint, see Webhooks commands. Authentication, headers, errors and pagination work the same on every operation. See Conventions.
List webhook deliveries
Lists every delivery attempt of the endpoint from the last 30 days, newest first, with status code, latency, a truncated response body and the error.
Resend failed webhook deliveries
Re-queues the latest finally failed delivery of each event (at most 100 events from the most recent 500 attempts). Receivers dedupe on the event id.