Create a webhook
Register a webhook endpoint to receive event notifications. Maximum 10 webhooks per account. The secret is only returned at creation time. Pass mailbox_ids or domain_ids to receive mailbox and domain events for only those resources; unknown IDs are rejected with a 422 whose details code is invalid_mailbox_ids or invalid_domain_ids. Pass authorization to send that value as the Authorization header of every delivery; it is write-only. Pass standard_webhooks_secret to sign every delivery the way Standard Webhooks receivers check; it is write-only too.
Request
- Base URL: https://shipmail.to/api/v1
- URL: https://shipmail.to/api/v1/webhooks
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://shipmail.to/api/auth/oauth2/authorize, token URL https://shipmail.to/api/auth/oauth2/token)
Headers
OAuth access tokens only. The organization ID this request acts on. Required when the OAuth connection was approved for several organizations (400 validation_error without it); optional with one. An organization the connection was not approved for returns 403 authorization_error. Ignored for API keys, which belong to one organization.
Request body
Response
Webhook created. The secret field is only included in this response.
Changes
No recorded changes to this operation across all 1 revision of this API.