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.
Create a contact
Section titled “Create a contact”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"}}'const contact = await tw.contacts.create({ phone: "+15550100", name: "Jordan Reyes", consent: { source: "checkout", at: "2026-11-01T18:22:00Z" },});contact = tw.contacts.create( phone="+15550100", name="Jordan Reyes", consent={"source": "checkout", "at": "2026-11-01T18:22:00Z"},)contact, err := client.Contacts.Create(ctx, &tidewire.ContactParams{ Phone: "+15550100", Name: "Jordan Reyes", Consent: tidewire.Consent{Source: "checkout", At: "2026-11-01T18:22:00Z"},}){ "id": "ctc_51Bf0Kp", "phone": "+15550100", "name": "Jordan Reyes", "status": "subscribed", "tags": [], "created_at": "2026-11-01T18:22:04Z"}Delete a contact
Section titled “Delete a contact”DELETE/v1/contacts/{id}
Permanently removes the contact and their history. Use this when someone asks you to erase their data.