ParasendDocs
Sign in Start free

Update a webhook endpoint

PATCH/v1/webhook_endpoints/{id}

Changes a webhook endpoint: its URL, the event types it gets, its authentication or its senders.

Path parameters

  • idstringrequired

    The webhook endpoint's ID, starting whk_.

Body

Optional

  • urlstring

    HTTPS on port 443, public host (A).

  • event_typesarray of string

    Empty = every type, including types added later.

    One of delivery.created delivery.rejected delivery.notified delivery.opened delivery.email_opened delivery.auth_failed delivery.confirmed delivery.downloaded delivery.delivered delivery.reminded delivery.bounced delivery.expired delivery.revoked delivery.consignment_failed delivery.evidence_sealed delivery.evidence_timestamp_deferred delivery.evidence_timestamp_recovered delivery.paper_pending_approval delivery.paper_dispatched delivery.paper_failed document.previewed batch.finalized batch.completed lookup.completed consent.granted consent.withdrawn invitation.sent link.opened otp.sent otp.verified otp.locked secret.attached secret.available secret.revealed secret.copied secret.expired secret.exhausted secret.revoked request.sent request.opened request.fulfilled request.expired request.closed request.reopened deletion.scheduled recipient_domain.verified recipient_domain.degraded recipient_domain.failed member.suspended member.restored member.removed batch.cancelled batch.policy_changed delivery.policy_changed email_sender.verified email_sender.degraded email_sender.failed email_sender.restored
  • descriptionstring · nullable

    Your own note about the endpoint, up to 500 characters; null clears it.

    at most 500 characters
  • authobject

    How Parasend authenticates to your endpoint, in addition to the HMAC signature, which is always sent. Secrets are write-only: accepted on create and update, never returned. The endpoint shows mode, the settings that are not secret, and whether a secret is set.

    3 fields of auth
    • auth.modestringrequired

      none = HMAC only. static_bearer = an Authorization header carrying Bearer <token> with a customer-supplied token. oauth2_client_credentials = a token obtained from the customer's IdP by the client-credentials grant, cached until expiry, sent as the bearer.

      One of none static_bearer oauth2_client_credentials
      Default "none"
    • auth.static_bearerobject · nullable

      With mode: static_bearer: the token Parasend sends as Authorization: Bearer <token>, at most 4,096 characters (write-only; responses show token_set). null for any other mode.

      1 field of static_bearer
    • auth.oauth2object · nullable

      With mode: oauth2_client_credentials: your token endpoint (token_url, HTTPS), client_id, client_secret (write-only; responses show client_secret_set), optional scope and audience, and auth_style. null for any other mode.

      6 fields of oauth2
  • statusstring

    disabled pauses the endpoint: new events are not queued for it and pending retries are cancelled when they come due.

    One of enabled disabled
  • delivery_sourcesobject · nullable

    null: every delivery's events. A change applies to events queued from then on; retries already queued go ahead.

Returns

200 application/json. Updated. See the WebhookEndpoint object.

Errors have one shape; see Errors for every code.