Skip to main content
For the exhaustive schema-derived catalog, see all examples.

What it is

Handle contact deletion events.

Before you begin

  • Create a public HTTPS endpoint in your application.
  • Configure a YCloud webhook endpoint for the event types you need.
  • Store the endpoint signing secret securely.
  • Make event processing idempotent.

How it works

YCloud sends an HTTP POST request when the event occurs. Verify the signature, durably record the event, return a 2xx response, and process slow work asynchronously.

Request

The scenarios below show requests delivered to your webhook URL. Treat the event id as the delivery identifier and use type to route the payload.

Response

Return a 2xx status after accepting the event.
For endpoint setup, signature validation, and retry behavior, see Configure webhooks.
Prerequisites
  • The webhook endpoint URL should be provided by your server instead of YCloud. Make sure to replace the URL with your actual webhook endpoint URL.
  • Make sure that your webhook endpoint is listening for the appropriate event types. See also Configure Webhooks, Retrieve a webhook endpoint API.
Occurs when a contact is deleted. The webhook payload contains minimal contact information that was deleted.

Basic Contact Deleted Example

Request

Response

Acknowledge the delivery after durably accepting the event.

Explanation

  • Minimal Information: The contactDeleted object contains only essential information: id, nickName, phoneNumber, and updateTime.
  • Null Values: The nickName field may be null if the contact didn’t have a nickname set.
  • Update Time: The updateTime reflects when the contact was last modified before deletion.
  • Contact ID: The id field contains the unique identifier of the deleted contact for reference.
  • Phone Number: The phoneNumber is always present and formatted in E.164 format.