Skip to content
You're reading the reference for API version 2026-10-01. See what changed.

Contacts

Contacts record who you message and whether they agreed to it. A contact that replies STOP is marked opted_out and can’t be messaged until they opt in again.

POST/v1/contacts
Name Type Required Description
phone string Yes E.164 phone number
name string No Display name
consent object Yes How and when the person agreed: { "source": "checkout", "at": "..." }
tags string[] No Labels for grouping, such as vip
curl https://api.tidewire.example/v1/contacts \
-H "Authorization: Bearer $TIDEWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"phone": "+15550100", "name": "Jordan Reyes", "consent": {"source": "checkout", "at": "2026-11-01T18:22:00Z"}}'
Response: 201 Created
{
"id": "ctc_51Bf0Kp",
"phone": "+15550100",
"name": "Jordan Reyes",
"status": "subscribed",
"tags": [],
"created_at": "2026-11-01T18:22:04Z"
}
DELETE/v1/contacts/{id}

Permanently removes the contact and their history. Use this when someone asks you to erase their data.