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

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
callbackUrl
string<uri>
required
eventTypes
string[]
signingSecret
string

Response

Usage webhook subscription created successfully