Skip to main content

What it is

Contacts store customer identity and profile data such as phone number, email, tags, custom attributes, and ownership. Other YCloud features can use contacts for segmentation, events, campaigns, and service workflows.

Before you begin

  • Normalize phone numbers to E.164 format.
  • Decide which system owns each profile field.
  • Define custom attributes before writing values that depend on them.
  • Establish consent and retention rules for customer data.

How it works

  1. Create a contact with a unique phone number.
  2. Store the returned contact ID.
  3. Retrieve or list contacts by identifiers and filters.
  4. Update profile, tags, custom attributes, or ownership.
  5. Delete the contact when your retention policy requires it.
Use webhook events to synchronize contact creation, deletion, and attribute changes with downstream systems.

Request

POST /contact/contacts
Only phoneNumber is required for creation. Email and phone number uniqueness rules still apply when those fields are present.

Response

Store id as the stable YCloud contact identifier. Use it when sending custom events or reconciling webhook changes.

Search and pagination

List contacts with filters such as tag, country code, phone number, or email. Use explicit pagination and preserve filters between pages.

Data consistency

  • Select one system of record for each field.
  • Treat webhook updates as events, not as guaranteed full replacement records.
  • Make imports and webhook consumers idempotent.
  • Avoid overwriting newer customer data with delayed events.

Limits and troubleshooting

  • Phone numbers must use E.164 format.
  • Email addresses, when provided, must be unique and valid.
  • A contact supports up to 50 tags, with field-specific length limits.
  • Use the contact attributes endpoint to discover available custom attributes.
  • Redact personal data from general logs and support evidence.

Create a contact API

Inspect field formats, limits, and the complete response.

Contact webhooks

Handle creation, deletion, attribute, and unsubscribe changes.