Skip to main content
PATCH
/
contacts
/
{id}
Update Contact
curl --request PATCH \
  --url https://api.unosend.co/contacts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "unsubscribed": true
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.unosend.co/llms.txt

Use this file to discover all available pages before exploring further.

id
string
required
The ID of the contact.
first_name
string
The contact’s first name.
last_name
string
The contact’s last name.
unsubscribed
boolean
Whether the contact is unsubscribed.

Request

cURL
curl -X PATCH https://api.unosend.co/contacts/con_123 \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Jonathan",
    "unsubscribed": false
  }'

Response

200
{
  "success": true,
  "data": {
    "id": "con_123",
    "email": "john@example.com",
    "first_name": "Jonathan",
    "last_name": "Doe",
    "subscribed": true
  }
}