---
title: "Update a contact"
method: PATCH
path: "/api/contacts/{id}"
tags: ["Contacts"]
---

# Update a contact

`PATCH /api/contacts/{id}`

## Request

- Base URL: `https://api.sendly.now`
- URL: `https://api.sendly.now/api/contacts/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`
  - OAuth 2 (authorization code, authorization URL `https://app.sendly.now/api/auth/oauth2/authorize`, token URL `https://app.sendly.now/api/auth/oauth2/token`, scopes: `contacts:write`)

Update `data` and/or `subscribed`. `email` is immutable here — use `/api/contacts/upsert` to change addresses.

Requires the `contacts:write` scope — Create, update, and delete your contacts.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateContactBody: Body for PATCH /api/contacts/{id}. `email` is immutable here — use upsert to change addresses.
  - `customFields` object
  - `subscribed` boolean

## Response `200`

Updated contact

- object
  - `data` Contact, required: A subscriber/contact within a project.
    - `createdAt` string, date-time, required: ISO 8601 datetime string
    - `customFields` object, nullable
    - `email` string, email, required
    - `id` string, uuid, required
    - `projectId` string, uuid, required
    - `subscribed` boolean, required
    - `updatedAt` string, date-time, required: ISO 8601 datetime string
  - `success` true, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized — missing or invalid auth
- `403`: Forbidden — insufficient permissions or project disabled
- `404`: Resource not found
- `422`: Validation failed — request body or query parameters did not match the schema
- `429`: Rate limit or billing limit exceeded
- `500`: Internal server error

---

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