POST
/
webhookEndpoints
curl --request POST \
  --url https://backendapi.corbado.io/v2/webhookEndpoints \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "basicAuthUsername": "<string>",
  "basicAuthPassword": "<string>",
  "subscribedEvents": [
    "passkey-login.completed"
  ],
  "customHeaders": {}
}'
{
  "id": "<string>",
  "url": "<string>",
  "basicAuthUsername": "<string>",
  "basicAuthPassword": "<string>",
  "customHeaders": {},
  "subscribedEvents": [
    "passkey-login.completed"
  ],
  "created": "<string>",
  "createdMs": 123,
  "updated": "<string>",
  "updatedMs": 123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Response

200
application/json

Webhook endpoint has been created

The response is of type object.