POST
/
v1
/
webhook
/
create
curl --request POST \
  --url https://api.decodahealth.com/v1/webhook/create \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '{
  "notificationEmail": "<string>",
  "subscriptions": [
    "PATIENT_CREATED"
  ],
  "url": "<string>"
}'
{
  "createdDate": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "notificationEmail": "<string>",
  "secret": "<string>",
  "subscriptions": [
    "PATIENT_CREATED"
  ],
  "updatedDate": "2023-11-07T05:31:56Z",
  "url": "<string>"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.