Skip to main content
PUT
/
contacts
/
{id}
Update a contact
curl --request PUT \
  --url https://api.sendkit.dev/contacts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "john@example.com",
  "first_name": "John",
  "last_name": "Doe",
  "user_id": "ext_123",
  "unsubscribed": false,
  "list_ids": [
    "550e8400-e29b-41d4-a716-446655440000"
  ],
  "properties": {
    "company": "Acme"
  }
}
'
import requests

url = "https://api.sendkit.dev/contacts/{id}"

payload = {
"email": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"user_id": "ext_123",
"unsubscribed": False,
"list_ids": ["550e8400-e29b-41d4-a716-446655440000"],
"properties": { "company": "Acme" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: 'john@example.com',
first_name: 'John',
last_name: 'Doe',
user_id: 'ext_123',
unsubscribed: false,
list_ids: ['550e8400-e29b-41d4-a716-446655440000'],
properties: {company: 'Acme'}
})
};

fetch('https://api.sendkit.dev/contacts/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sendkit.dev/contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'john@example.com',
'first_name' => 'John',
'last_name' => 'Doe',
'user_id' => 'ext_123',
'unsubscribed' => false,
'list_ids' => [
'550e8400-e29b-41d4-a716-446655440000'
],
'properties' => [
'company' => 'Acme'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.sendkit.dev/contacts/{id}"

payload := strings.NewReader("{\n \"email\": \"john@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"user_id\": \"ext_123\",\n \"unsubscribed\": false,\n \"list_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"properties\": {\n \"company\": \"Acme\"\n }\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://api.sendkit.dev/contacts/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"john@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"user_id\": \"ext_123\",\n \"unsubscribed\": false,\n \"list_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"properties\": {\n \"company\": \"Acme\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.sendkit.dev/contacts/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"john@example.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"user_id\": \"ext_123\",\n \"unsubscribed\": false,\n \"list_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"properties\": {\n \"company\": \"Acme\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "email": "john@example.com",
  "first_name": "John",
  "last_name": "Doe",
  "user_id": "ext_123",
  "unsubscribed": false,
  "properties": {
    "COMPANY": "Acme",
    "PLAN": "pro"
  },
  "lists": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Newsletter",
      "created_at": "2026-03-03 10:00:00",
      "updated_at": "2026-03-03 10:00:00"
    }
  ],
  "created_at": "2026-03-03 10:00:00",
  "updated_at": "2026-03-03 10:00:00"
}
{
"message": "Invalid API key."
}
{
"message": "Not found."
}
{
"message": "The email field is required."
}

Authorizations

Authorization
string
header
required

API key from your SendKit dashboard. Pass it as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

The contact ID.

Body

application/json
email
string<email>

The contact's email address.

Maximum string length: 255
Example:

"john@example.com"

first_name
string | null

The contact's first name.

Maximum string length: 255
Example:

"John"

last_name
string | null

The contact's last name.

Maximum string length: 255
Example:

"Doe"

user_id
string | null

An external user identifier from your application.

Maximum string length: 255
Example:

"ext_123"

unsubscribed
boolean

Whether the contact should be marked as unsubscribed.

Example:

false

list_ids
string<uuid>[]

List IDs to attach the contact to. Replaces existing list memberships.

Example:
["550e8400-e29b-41d4-a716-446655440000"]
properties
object

Property values to set on the contact. Keys must match existing property keys.

Example:
{ "company": "Acme" }

Response

Contact updated successfully

id
string<uuid>

Unique identifier.

Example:

"550e8400-e29b-41d4-a716-446655440000"

email
string<email>

The contact's email address.

Example:

"john@example.com"

first_name
string | null

The contact's first name.

Example:

"John"

last_name
string | null

The contact's last name.

Example:

"Doe"

user_id
string | null

An external user identifier from your application.

Example:

"ext_123"

unsubscribed
boolean

Whether the contact has unsubscribed.

Example:

false

properties
object

Custom property values. Keys are uppercased property names.

Example:
{ "COMPANY": "Acme", "PLAN": "pro" }
lists
object[]

Lists this contact belongs to.

created_at
string<date-time>

When the contact was created.

Example:

"2026-03-03 10:00:00"

updated_at
string<date-time>

When the contact was last updated.

Example:

"2026-03-03 10:00:00"