Create or update a contact by email
contacts:writeRate limit writesIdempotent with Idempotency-KeyAn upsert: the address decides. New to this project → 201, already a contact here → 200 (meta.created says which). Either way custom fields (fields: { key: value }), tag_ids and list_ids are applied. On an existing contact, first_name / last_name fill in only what this project has not stored yet, the phone fills in only when empty and only on a lead this project added first, and name is never changed. Refused with 422: a malformed address, a reserved address (postmaster@, abuse@, noc@…), a domain that cannot receive mail, an unknown field key, or a tag or list of another project. When the address is someone's ESTAGE account or a lead another project collected, the first response shows the names and phone you sent; later ones show the names this project keeps and no phone.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Body
application/jsonemailstringrequiredemail≤ 256 charsTrimmed and lower-cased before use.
first_namestringnullable≤ 255 charslast_namestringnullable≤ 255 charsnamestringnullable≤ 255 charsUsed for a brand-new contact when first_name and last_name are empty.
phonestringnullable≤ 32 charsSend it with its country code ("+1 404 555 0142") to keep the country; it is stored as the national number plus phone_code.
fieldsobject{ key: value } by the field key from GET /v1/fields; scalar values only. An unknown key is a 422. A value that does not fit the field type is a 422 too — but by then the contact is added and its tags and lists are not: send the request again with valid values.
Show example keys
{
"company": "ACME"
}tag_idsarray of integer≤ 100 itemslist_idsarray of integer≤ 100 itemsHeaders
Idempotency-Keystring≤ 255 charsAny unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.
curl --request POST \ --url 'https://api.estage.com/v1/contacts' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "email": "ana@example.com", "first_name": "Ana", "last_name": "Lopez", "phone": "+1 404 555 0142", "fields": { "company": "ACME" }, "tag_ids": [ 12 ], "list_ids": [ 7 ] }'
{
"data": {
"id": 4821,
"email": "ana@example.com",
"first_name": "Ana",
"last_name": "Lopez",
"name": "Ana Lopez",
"phone": "4045550142",
"phone_code": "+1",
"status": "lead",
"tags": [
{
"id": 12,
"name": "Customer"
},
{
"id": 15,
"name": "Webinar 2026"
}
],
"created_at": "2026-11-02T14:05:11Z",
"updated_at": "2026-11-12T08:40:27Z",
"lists": [
{
"id": 7,
"name": "Newsletter",
"subscribed_at": "2026-11-02T14:05:12Z"
}
],
"fields": {
"company": "ACME",
"plan_size": 25,
"renewal_date": "2027-01-31",
"vip": true
},
"suppressed": false
},
"meta": {
"created": false
}
}