Webhook

Full reference for the Webhook resource in the bluefox.email API. See the API overview for authentication, the response envelope, and pagination.

Get the configured webhook

GET /v1/projectId/{projectId}/webhook

Parameters

NameInTypeRequiredDescription
projectIdpathstringyesThe project _id, found in the app under Project Settings.

Responses

StatusDescription
200OK, result is null if no webhook is configured
403Missing or invalid API key

Response body

FieldTypeRequiredDescription
urlstring
secretKeystring
bounceboolean
complaintboolean
clickboolean
openboolean
sentboolean
failedboolean
subscriptionboolean

Create or replace the webhook configuration

PATCH /v1/projectId/{projectId}/webhook

Parameters

NameInTypeRequiredDescription
projectIdpathstringyesThe project _id, found in the app under Project Settings.

Request body

FieldTypeRequiredDescription
urlstringyes
secretKeystringyesMust match one of this project's existing API keys (managed in the app under Project Settings > API Keys - not exposed via this API).
bounceboolean
complaintboolean
clickboolean
openboolean
sentboolean
failedboolean
subscriptionboolean

Responses

StatusDescription
200OK
400Invalid request body or query - every violation found (missing/invalid/unexpected fields) is reported in one response, semicolon-separated, not just the first one hit.
403Missing or invalid API key

Response body

FieldTypeRequiredDescription
urlstring
secretKeystring
bounceboolean
complaintboolean
clickboolean
openboolean
sentboolean
failedboolean
subscriptionboolean

Remove the webhook configuration

DELETE /v1/projectId/{projectId}/webhook

Parameters

NameInTypeRequiredDescription
projectIdpathstringyesThe project _id, found in the app under Project Settings.

Responses

StatusDescription
200Deleted
403Missing or invalid API key
404Webhook not found