Skip to Content
Contacts

Edit a contact; an empty string clears an optional field

PATCH
/contacts/{contactId}

Changes the given fields only. An empty string clears an optional field; tags and group_ids, when given, replace the current lists.

Scope: contacts.update. Rate limit: 300 requests per minute per API key.

Authorization

apiKey contacts.update
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: contacts.update

Path Parameters

contactId*string
Formatuuid

Request Body

application/json
  1. body

At least one field.

Properties1 <= properties
attributes?
Propertiesproperties <= 50
contact_type?string

"" clears it.

Lengthlength <= 60
email?string
Lengthlength <= 254
group_ids?array<>
Itemsitems <= 100
name?string
Lengthlength <= 200
tags?array<>

Tag names, replacing the contact's tags. A name without a tag creates it; the id of an existing tag means that tag.

Itemsitems <= 50
var1?string
Lengthlength <= 500
var2?string
Lengthlength <= 500
var3?string
Lengthlength <= 500
var4?string
Lengthlength <= 500
var5?string
Lengthlength <= 500

Response Body

Updated

application/json
  1. response
data*
meta*
Example Request
curl -X PATCH 'https://app.messora.tech/api/v1/contacts/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "attributes": {    "city": "Ankara"  },  "email": "ayse.yilmaz@example.com"}'
Example Response
{  "data": {    "attributes": {      "city": "İstanbul",      "customer_no": "C-10293"    },    "consent": {      "marketing": {        "reason": null,        "source": "import",        "status": "opted_in",        "updated_at": "2026-10-01T10:00:00Z"      },      "meta_marketing_stopped_at": null,      "service": {        "reason": null,        "source": null,        "status": "unknown",        "updated_at": null      },      "undeliverable_at": null,      "undeliverable_code": null    },    "created_at": "2026-09-12T07:30:00Z",    "created_by_inbound_at": null,    "email": "ayse@example.com",    "group_ids": [      "019a8c2e-4f1b-7a0d-9c3d-5e7a1000000d"    ],    "id": "019a8c2e-4f1b-7a09-9c3d-5e7a10000009",    "last_inbound_at": "2026-11-25T08:41:00Z",    "name": "Ayşe Yılmaz",    "opted_out": false,    "opted_out_at": null,    "phone": "+905321234567",    "profile_name": "Ayşe",    "profile_status": null,    "source": "api",    "tags": [      {        "color": "#16a34a",        "id": "019a8c2e-4f1b-7a0c-9c3d-5e7a1000000c",        "name": "vip"      }    ],    "updated_at": "2026-11-25T08:41:00Z",    "var1": "Gold",    "var2": null,    "var3": null,    "var4": null,    "var5": null  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}