Skip to main content
POST
/
webhooks
/
v1
/
endpoints
Create webhook endpoint
curl --request POST \
  --url https://api.case.dev/webhooks/v1/endpoints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "eventTypeFilters": [
    "<string>"
  ],
  "description": "<string>",
  "resourceScopes": {
    "vaultIds": [
      "<string>"
    ],
    "matterIds": [
      "<string>"
    ]
  }
}
'

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
url
string<uri>
required

HTTPS callback URL that will receive event deliveries

eventTypeFilters
string[]
required

Glob patterns of event types to deliver (e.g. "vault.", "ocr.job.completed", "")

description
string

Human-readable label for this endpoint

resourceScopes
object

Optional per-resource allowlists. If vaultIds is set, only events for those vaults are delivered. Same for matterIds.

Response

Webhook endpoint created successfully