Create a personal webhook subscription
POST
Optional idempotency key. Reuse the same key only for an identical request; successful responses are replayable for 24 hours.
bearerAuthheader
AuthorizationBearer <relk_… | relu_… | OAuth JWT>Machine/operator tokens use the relk_ prefix; self-serve read-only user keys use relu_; Sign in with Releases supplies an OAuth access token. Required scope depends on the endpoint.
Idempotency-Key?stringOptional idempotency key. Reuse the same key only for an identical request; successful responses are replayable for 24 hours.
Match
^[\x21-\x7e]+$Length
16 <= length <= 255application/json- body
scope?stringValue in
"org""follows"url*stringPublic https URL that receives deliveries.
Length
length <= 2048format?stringDelivery format. Defaults to json.
Value in
"json""slack""discord"description?stringLength
length <= 1000releaseType?stringValue in
"feature""rollup"orgId?stringorgSlug?stringsourceId?stringsourceSlug?stringproductId?stringproductSlug?stringCreated webhook subscription, including its one-time signing key.
application/json- response
id*stringuserId*stringscope*stringValue in
"org""follows"orgId*string|nullurl*stringsourceId*string|nullproductId*string|nullreleaseType*|nullformat*stringValue in
"json""slack""discord"enabled*booleandescription*string|nullsecretVersion*integerRange
-9007199254740991 <= value <= 9007199254740991createdAt*stringlastSuccessAt*string|nulllastErrorAt*string|nulllastErrorMsg*string|nullconsecutiveFailures*integerRange
-9007199254740991 <= value <= 9007199254740991disabledReason*string|nullfailureStreakStartedAt*string|nulldeliveryHealth*stringValue in
"never_delivered""healthy""degraded""failing""paused""auto_paused"deliveryHealthSummary*stringorgSlug*string|nullorgName*string|nullsigningKey?stringcurl -X POST 'https://api.releases.sh/v1/me/webhooks' \ -H 'Content-Type: application/json' \ -d '{ "url": "string"}'Example Response
{ "id": "string", "userId": "string", "scope": "org", "orgId": "string", "url": "string", "sourceId": "string", "productId": "string", "releaseType": "feature", "format": "json", "enabled": true, "description": "string", "secretVersion": -9007199254740991, "createdAt": "string", "lastSuccessAt": "string", "lastErrorAt": "string", "lastErrorMsg": "string", "consecutiveFailures": -9007199254740991, "disabledReason": "string", "failureStreakStartedAt": "string", "deliveryHealth": "never_delivered", "deliveryHealthSummary": "string", "orgSlug": "string", "orgName": "string", "signingKey": "string"}