---
title: "Enrich a contact (name, email, metadata)"
method: PATCH
path: "/contacts/{id}"
tags: ["Contacts"]
---

# Enrich a contact (name, email, metadata)

`PATCH /contacts/{id}`

## Request

- Base URL: `https://muro.chat/api/v1`
- URL: `https://muro.chat/api/v1/contacts/{id}`
- Auth: HTTP bearer

## Request body

- object
  - `name` string, nullable
  - `email` string, nullable
  - `metadata` object: Shallow-merged; a null value drops a key.

## Response `200`

Updated contact.

- Contact
  - `object` 'contact'
  - `id` string
  - `name` string, nullable
  - `email` string, nullable
  - `fingerprint` string
  - `website_id` string
  - `conversation_count` integer
  - `metadata` object
  - `first_seen_at` string, date-time
  - `last_seen_at` string, date-time

## Other responses

- `400`: Invalid body.
- `404`: Not found.

---

[API](https://skmtc.dev/muro/apis/muro-rest-api.md) · [All operations](https://skmtc.dev/muro/apis/muro-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/muro/apis/muro-rest-api/revisions/94ccdc79d61a?raw)
