Skip to main content
PATCH
/
v3
/
contacts
/
{id}
Update a contact
curl --request PATCH \
  --url https://api.reply.io/v3/contacts/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "firstName": "Jane",
  "company": "New Company Inc",
  "ownerUserId": 55,
  "customFields": [
    {
      "id": 1,
      "value": "Updated Value"
    },
    {
      "name": "leadSource",
      "value": "Referral"
    }
  ]
}
'
import requests

url = "https://api.reply.io/v3/contacts/{id}"

payload = {
"firstName": "Jane",
"company": "New Company Inc",
"ownerUserId": 55,
"customFields": [
{
"id": 1,
"value": "Updated Value"
},
{
"name": "leadSource",
"value": "Referral"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

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

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
firstName: 'Jane',
company: 'New Company Inc',
ownerUserId: 55,
customFields: [{id: 1, value: 'Updated Value'}, {name: 'leadSource', value: 'Referral'}]
})
};

fetch('https://api.reply.io/v3/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.reply.io/v3/contacts/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => 'Jane',
'company' => 'New Company Inc',
'ownerUserId' => 55,
'customFields' => [
[
'id' => 1,
'value' => 'Updated Value'
],
[
'name' => 'leadSource',
'value' => 'Referral'
]
]
]),
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.reply.io/v3/contacts/{id}"

payload := strings.NewReader("{\n \"firstName\": \"Jane\",\n \"company\": \"New Company Inc\",\n \"ownerUserId\": 55,\n \"customFields\": [\n {\n \"id\": 1,\n \"value\": \"Updated Value\"\n },\n {\n \"name\": \"leadSource\",\n \"value\": \"Referral\"\n }\n ]\n}")

req, _ := http.NewRequest("PATCH", 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.patch("https://api.reply.io/v3/contacts/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"Jane\",\n \"company\": \"New Company Inc\",\n \"ownerUserId\": 55,\n \"customFields\": [\n {\n \"id\": 1,\n \"value\": \"Updated Value\"\n },\n {\n \"name\": \"leadSource\",\n \"value\": \"Referral\"\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.reply.io/v3/contacts/{id}")

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

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"Jane\",\n \"company\": \"New Company Inc\",\n \"ownerUserId\": 55,\n \"customFields\": [\n {\n \"id\": 1,\n \"value\": \"Updated Value\"\n },\n {\n \"name\": \"leadSource\",\n \"value\": \"Referral\"\n }\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "id": 12345,
  "email": "john.doe@company.com",
  "firstName": "John",
  "lastName": "Doe",
  "title": "Senior Product Manager",
  "company": "Tech Solutions Inc",
  "domain": "company.com",
  "companySize": "oneThousand",
  "city": "San Francisco",
  "state": "CA",
  "country": "United States",
  "timeZoneId": "America/Los_Angeles",
  "phone": "+1-415-555-0123",
  "phoneStatus": "valid",
  "linkedInUrl": "https://www.linkedin.com/in/johndoe",
  "linkedInSalesNavigatorUrl": "https://www.linkedin.com/sales/profile/123456",
  "linkedInRecruiterUrl": "https://www.linkedin.com/recruiter/profile/789012",
  "industry": "Software & Technology",
  "notes": "Met at SaaS Conference 2024",
  "ownerUserId": 42,
  "accountId": 100,
  "isOptedOut": false,
  "callStatus": "toCall",
  "meetingStatus": "none",
  "addingDate": "2024-03-08T10:00:00+00:00",
  "createdAt": "2024-03-08T10:00:00",
  "lastModifiedAt": "2024-03-10T15:30:00",
  "customFields": [
    {
      "key": "leadSource",
      "value": "Conference"
    },
    {
      "key": "budget",
      "value": "100k-250k"
    }
  ]
}

Authorizations

Authorization
string
header
required

Authenticate every request with a Bearer token. Pass your Reply API key in the Authorization header:

Authorization: Bearer <your-api-key>

Get your API key from the Reply dashboard: Settings → API Key.

Path Parameters

id
integer
required

Contact ID

Body

application/json

Request model for updating an existing contact. All fields are optional — only include the fields you want to change (PATCH semantics).

email
string<email>

Primary email address

firstName
string

First name

lastName
string

Last name

phone
string

Phone number

phone2
string

Secondary phone number

title
string

Job title

company
string

Organization name

companySize
enum<string>

Organization employee count range

Available options:
Empty,
SelfEmployed,
Ten,
Fifty,
TwoHundred,
FiveHundred,
OneThousand,
FiveThousand,
TenThousand,
OverTenThousand
industry
string

Business sector

city
string

City of residence

state
string

State/province

country
string

Country

timeZoneId
string

Timezone identifier

linkedInUrl
string<uri>

LinkedIn profile URL

linkedInSalesNavigatorUrl
string<uri>

Sales Navigator URL

linkedInRecruiterUrl
string<uri>

Recruiter URL

notes
string

Additional information

isOptedOut
boolean | null

Set or clear the contact's opted-out flag (suppresses all communications when true).

callStatus
enum<string> | null

Contact-level call status. Pass none to clear.

Available options:
none,
toCall,
called
meetingStatus
enum<string> | null

Contact-level meeting status. Pass none to clear.

Available options:
none,
meetingBooked
ownerUserId
integer | null

Change the owner of this contact. The new owner must be a member of the caller's team; otherwise the request fails with 404.

accountId
integer | null

ID of the contact account to link this contact to

customFields
object[]

Custom fields to update. Fields can be identified by id or name. Unlike the response model which uses key/value, the patch model accepts id, name, and value.

Response

Contact updated successfully

Contact response model

id
integer
read-only

Unique ID

email
string<email>

Primary email address

domain
string
read-only

Email domain (derived from email)

firstName
string

First name

lastName
string

Last name

phone
string

Phone number

title
string

Job title

company
string

Organization name

companySize
enum<string>

Organization employee count range

Available options:
empty,
selfEmployed,
ten,
fifty,
twoHundred,
fiveHundred,
oneThousand,
fiveThousand,
tenThousand,
overTenThousand
industry
string

Business sector

city
string

City of residence

state
string

State/province

country
string

Country

timeZoneId
string

Timezone identifier

linkedInUrl
string<uri>

LinkedIn profile URL

linkedInSalesNavigatorUrl
string<uri>

Sales Navigator URL

linkedInRecruiterUrl
string<uri>

Recruiter URL

phoneStatus
enum<string>

Phone validation status

Available options:
pending,
invalid,
valid,
validationFailed,
notValidated
notes
string

Additional information

ownerUserId
integer

ID of the user who owns this contact

accountId
integer | null

ID of the contact account this contact belongs to

isOptedOut
boolean
read-only

Whether the contact has opted out of communications

callStatus
enum<string>

Contact-level call status

Available options:
none,
toCall,
called
meetingStatus
enum<string>

Contact-level meeting status

Available options:
none,
meetingBooked
addingDate
string<date-time> | null
read-only

Date the contact was added

createdAt
string<date-time> | null
read-only

Creation timestamp

lastModifiedAt
string<date-time> | null
read-only

Last modification timestamp

customFields
object[]

User-defined fields