Skip to main content
POST
/
vault
/
{id}
/
events
/
subscriptions
Create vault webhook subscription
curl --request POST \
  --url https://api.case.dev/vault/{id}/events/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "callbackUrl": "<string>",
  "eventTypes": [
    "<string>"
  ],
  "objectIds": [
    "<string>"
  ],
  "signingSecret": "<string>"
}
'

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Vault ID

Body

application/json
callbackUrl
string<uri>
required

Webhook endpoint URL that will receive vault event deliveries

eventTypes
string[]

Vault event types to deliver. Omit to receive the default supported set.

objectIds
string[]

Vault object IDs to limit notifications to. Omit to receive events for all objects in the vault.

signingSecret
string

Optional secret used to sign outbound webhook deliveries

Response

Vault webhook subscription created successfully