Skip to Content

Update contact

PATCH
/contacts/{id}

Update an existing contact's email, subscription state, or data fields.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API Key>

API Key authentication. The project is automatically derived from the key.

/v1/track requires a public key (pk_*) — it is the one endpoint intended for client-side use, and a secret key is rejected there with 401.

Every other endpoint requires a secret key (sk_*) and rejects public keys with 401.

So the two key types are not interchangeable in either direction: pick the key that matches the endpoint you are calling.

Path parameters

id*string

Request body

application/json
  1. body
email?string

Change the contact's email address. Returns 409 if another contact in the project already uses this email.

Formatemail
subscribed?boolean

Update subscription state. Flipping this fires contact.subscribed or contact.unsubscribed.

data?

Patch contact data. null deletes a key, empty strings are ignored, primitives are stored. Reserved keys are silently filtered out.

Response body

Contact updated

application/json
  1. response
id?string

Unique contact identifier

email?string

Contact email address

Formatemail
subscribed?boolean

Subscription status

snoozedUntil?string

When a snooze ends and the contact is resubscribed automatically. Null unless the contact is snoozed. A snoozed contact has subscribed: false for the whole window, so it receives no marketing email until it returns.

Formatdate-time
data?

Custom contact data fields

createdAt?string
Formatdate-time
updatedAt?string
Formatdate-time
Example request
curl -X PATCH 'https://api.send.47signals.com/contacts/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example response
{  "id": "string",  "email": "user@example.com",  "subscribed": true,  "snoozedUntil": "2019-08-24T14:15:22Z",  "data": {},  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}