Matchai Docs

Update a contactComing soon

Changes the details you keep about a contact. What you type here never changes the person’s own Matchai profile.

Coming soon. This is documented ahead of launch so you can plan your integration; it is not available yet.
PATCH
/contacts/{contact_id}

Coming soon. Changes the details you keep about a contact. What you type here never changes the person’s own Matchai profile.

Scopes: contacts:write

Pricing: Included with the connection.

Authorization

headerAuthorizationBearer <matchai_<base62>>

A personal API key, sent as Authorization: Bearer matchai_…. Create keys in Matchai under Settings → Connectors → Advanced (for developers). A key starts with matchai_ followed by letters and digits, carries the scopes chosen when it was created, and can be revoked at any time. Keys reach only the account that created them: to serve other professionals, use Connect with Matchai.

Scope: contacts:write

Path Parameters

contact_id*string

Contact id.

Length1 <= length <= 64

Request Body

application/json
  1. body
Properties1 <= properties
first_name?string

First name.

Length1 <= length <= 100
last_name?|

Last name.

Lengthlength <= 100
email?|

Email.

Formatemail
Lengthlength <= 254
phone?|

Phone.

Lengthlength <= 40
company?|

Company.

Lengthlength <= 200
profession?|

Profession.

Lengthlength <= 120
notes?|

Notes.

Lengthlength <= 2000

Response Body

The contact.

application/json
  1. response

A person in your contacts. Only you (and your team, for team contacts) can see this record; the person cannot.

id*string

Contact id.

Length1 <= length <= 64
type*ContactType

lead: a potential customer. client: a customer you have worked with. professional: a peer, such as another broker, a notary or a lender.

Value in"lead""client""professional"
first_name?|

First name, as you entered it.

last_name?|

Last name.

display_name*string

Name as Matchai shows it.

email?|

Email.

Formatemail
phone?|

Phone, E.164.

company?|

Company.

profession?|

Profession, in words.

notes?|

Your notes.

source*ContactSource

How the contact reached you: from a listing, your Matchai Site, your Matchai Page, added by hand (direct), a referral, an import, an invitation, a scanned business card, or your own website through the API (website). New values may be added.

Value in"listing""site""page""direct""referral""import""invitation""business_card""website"
source_listing_id?|

The listing they came through.

Length1 <= length <= 64
matchai_user?|

Their Matchai account, when they have one.

conversation_id?|

Your direct conversation with them, when there is one.

Length1 <= length <= 64
erased*boolean

True when the person deleted their Matchai account: their identity is gone, your history with them is kept.

lead?|null
client?|null
professional?|null
created_at*string

Added.

Formatdate-time
updated_at*string

Last changed.

Formatdate-time
Example Request
curl -X PATCH 'https://api.matchai.co/v1/contacts/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "type": "lead",  "first_name": "string",  "last_name": "string",  "display_name": "string",  "email": "user@example.com",  "phone": "string",  "company": "string",  "profession": "string",  "notes": "string",  "source": "listing",  "source_listing_id": "string",  "matchai_user": {    "user_id": "string",    "username": "string",    "avatar_url": "http://example.com"  },  "conversation_id": "string",  "erased": true,  "lead": {    "stage": "welcome",    "temperature": "cold",    "readiness": "exploring",    "lifecycle_stage": "new",    "score": 0,    "budget": {      "min": 0,      "max": 0,      "currency": "string"    },    "timeline": "string",    "preferences": {      "bedrooms": 0,      "bathrooms": 0,      "min_sqft": 0,      "max_sqft": 0,      "property_types": [        "string"      ],      "areas": [        "string"      ],      "features": [        "string"      ]    },    "updated_at": "2019-08-24T14:15:22Z"  },  "client": {    "converted_from_lead_at": "2019-08-24T14:15:22Z",    "property_interests": [      "string"    ],    "transactions": [      {        "type": "purchase",        "date": "2019-08-24",        "value": 0,        "listing_id": "string",        "notes": "string"      }    ],    "preferred_channel": "email"  },  "professional": {    "relationship": "peer",    "specializations": [      "string"    ],    "referral_count": 0,    "notes": "string"  },  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}