Webhooks

Get a webhook

get/webhooks/{id}

Request

  • Base URL: https://shipmail.to/api/v1
  • URL: https://shipmail.to/api/v1/webhooks/{id}
  • 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

X-Shipmail-Organizationstring

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.

Response

Webhook object.

object'webhook' required
idstring required
urlstring uri required
eventsWebhookEventType[] required
activeboolean required
descriptionstring nullable required
mailbox_idsstring[] nullable required

Mailboxes this webhook is limited to, or null. See Scoping in the webhooks guide.

domain_idsstring[] nullable required

Domains this webhook is limited to, or null. When both lists are null the webhook receives events for every mailbox.

has_authorizationboolean required

True when deliveries carry an Authorization header set through authorization. The value itself is never returned.

has_standard_webhooks_secretboolean required

True when deliveries carry Standard Webhooks signatures (webhook-id, webhook-timestamp, webhook-signature) from a secret set through standard_webhooks_secret. The secret itself is never returned.

include_reply_textboolean required

True when message.received deliveries carry reply_text.

authenticated_senders_onlyboolean required

True when message.received is delivered only for messages whose sender is authenticated (sender_authenticated: true): the sender passed DMARC, or Shipmail's own record shows a Shipmail mailbox sent the message.

allowed_sendersstring[] nullable required

Addresses and domains message.received is limited to, lowercased. Null when every sender is delivered.

created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.