Create or update a contact
curl --request PUT \
--url https://api.usefrictionless.com/api/v1/contacts/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Ada Obi",
"email": "ada@example.com",
"phone": "+2348012345678",
"attributes": {
"plan": "Business",
"kycVerified": true,
"walletBalance": 45000
}
}
'import requests
url = "https://api.usefrictionless.com/api/v1/contacts/{userId}"
payload = {
"name": "Ada Obi",
"email": "ada@example.com",
"phone": "+2348012345678",
"attributes": {
"plan": "Business",
"kycVerified": True,
"walletBalance": 45000
}
}
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({
name: 'Ada Obi',
email: 'ada@example.com',
phone: '+2348012345678',
attributes: {plan: 'Business', kycVerified: true, walletBalance: 45000}
})
};
fetch('https://api.usefrictionless.com/api/v1/contacts/{userId}', 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.usefrictionless.com/api/v1/contacts/{userId}",
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([
'name' => 'Ada Obi',
'email' => 'ada@example.com',
'phone' => '+2348012345678',
'attributes' => [
'plan' => 'Business',
'kycVerified' => true,
'walletBalance' => 45000
]
]),
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.usefrictionless.com/api/v1/contacts/{userId}"
payload := strings.NewReader("{\n \"name\": \"Ada Obi\",\n \"email\": \"ada@example.com\",\n \"phone\": \"+2348012345678\",\n \"attributes\": {\n \"plan\": \"Business\",\n \"kycVerified\": true,\n \"walletBalance\": 45000\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.usefrictionless.com/api/v1/contacts/{userId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Ada Obi\",\n \"email\": \"ada@example.com\",\n \"phone\": \"+2348012345678\",\n \"attributes\": {\n \"plan\": \"Business\",\n \"kycVerified\": true,\n \"walletBalance\": 45000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usefrictionless.com/api/v1/contacts/{userId}")
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 \"name\": \"Ada Obi\",\n \"email\": \"ada@example.com\",\n \"phone\": \"+2348012345678\",\n \"attributes\": {\n \"plan\": \"Business\",\n \"kycVerified\": true,\n \"walletBalance\": 45000\n }\n}"
response = http.request(request)
puts response.read_body{
"contact": {
"userId": "user_42",
"name": "Ada Obi",
"email": "ada@example.com",
"phone": "+2348012345678",
"attributes": {},
"createdAt": "2026-10-15T09:30:00Z",
"updatedAt": "2026-10-15T09:30:00Z"
},
"linkedChats": 1
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Contacts
Create or update a contact
Only the fields you send change. Set an attribute to null to remove it. A phone number links the contact to their WhatsApp chats, even ones that start later.
PUT
/
contacts
/
{userId}
Create or update a contact
curl --request PUT \
--url https://api.usefrictionless.com/api/v1/contacts/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Ada Obi",
"email": "ada@example.com",
"phone": "+2348012345678",
"attributes": {
"plan": "Business",
"kycVerified": true,
"walletBalance": 45000
}
}
'import requests
url = "https://api.usefrictionless.com/api/v1/contacts/{userId}"
payload = {
"name": "Ada Obi",
"email": "ada@example.com",
"phone": "+2348012345678",
"attributes": {
"plan": "Business",
"kycVerified": True,
"walletBalance": 45000
}
}
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({
name: 'Ada Obi',
email: 'ada@example.com',
phone: '+2348012345678',
attributes: {plan: 'Business', kycVerified: true, walletBalance: 45000}
})
};
fetch('https://api.usefrictionless.com/api/v1/contacts/{userId}', 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.usefrictionless.com/api/v1/contacts/{userId}",
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([
'name' => 'Ada Obi',
'email' => 'ada@example.com',
'phone' => '+2348012345678',
'attributes' => [
'plan' => 'Business',
'kycVerified' => true,
'walletBalance' => 45000
]
]),
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.usefrictionless.com/api/v1/contacts/{userId}"
payload := strings.NewReader("{\n \"name\": \"Ada Obi\",\n \"email\": \"ada@example.com\",\n \"phone\": \"+2348012345678\",\n \"attributes\": {\n \"plan\": \"Business\",\n \"kycVerified\": true,\n \"walletBalance\": 45000\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.usefrictionless.com/api/v1/contacts/{userId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Ada Obi\",\n \"email\": \"ada@example.com\",\n \"phone\": \"+2348012345678\",\n \"attributes\": {\n \"plan\": \"Business\",\n \"kycVerified\": true,\n \"walletBalance\": 45000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usefrictionless.com/api/v1/contacts/{userId}")
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 \"name\": \"Ada Obi\",\n \"email\": \"ada@example.com\",\n \"phone\": \"+2348012345678\",\n \"attributes\": {\n \"plan\": \"Business\",\n \"kycVerified\": true,\n \"walletBalance\": 45000\n }\n}"
response = http.request(request)
puts response.read_body{
"contact": {
"userId": "user_42",
"name": "Ada Obi",
"email": "ada@example.com",
"phone": "+2348012345678",
"attributes": {},
"createdAt": "2026-10-15T09:30:00Z",
"updatedAt": "2026-10-15T09:30:00Z"
},
"linkedChats": 1
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Your API key (fk_live_…) from Settings → Developers.
Path Parameters
Your own ID for this user. 1 to 128 letters, numbers or _ . : @ + -.
Example:
"user_42"
Body
application/json
Example:
"Ada Obi"
Example:
"ada@example.com"
7 to 15 digits with the country code.
Example:
"+2348012345678"
Up to 50 per request and 100 in total. Values are text up to 500 characters, numbers or true/false. null removes one.
Show child attributes
Show child attributes
Example:
{ "plan": "Business", "kycVerified": true, "walletBalance": 45000 }

