Create or update contact
Create a new contact or update existing (upsert by email)
ApiKeyAuthAuthorizationBearer <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.
application/json- body
email*stringemailsubscribed?booleantruedata?Contact updated
application/json- response
id?stringUnique contact identifier
email?stringContact email address
emailsubscribed?booleanSubscription status
snoozedUntil?stringWhen 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.
date-timedata?Custom contact data fields
createdAt?stringdate-timeupdatedAt?stringdate-time_meta?curl -X POST 'https://api.send.47signals.com/contacts' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com", "subscribed": true, "data": { "firstName": "John", "lastName": "Doe", "plan": "premium" }}'{ "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", "_meta": { "isNew": true, "isUpdate": true }}