curl -X POST 'https://docurise.io/api/preview/contacts' \
-H 'Authorization: Bearer dr_live_<keyId>_<secret>' \
-H 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \
-H 'Content-Type: application/json' \
-d '{
"email": "person@example.com",
"name": "Ada Lee",
"firstSeenAt": "2025-12-24T01:02:03Z",
"tags": ["signed-up"],
"consent": {
"marketing": true,
"collectedAt": "2026-11-09T01:02:03Z",
"source": "signup-form-v3"
}
}'import requests
url = "https://docurise.io/api/preview/contacts"
payload = {
"email": "person@example.com",
"name": "Ada Lee",
"company": "Example Inc",
"phone": "+82 10 2938 4756",
"firstSeenAt": "2025-12-24T01:02:03Z",
"tags": ["signed-up"]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'person@example.com',
name: 'Ada Lee',
company: 'Example Inc',
phone: '+82 10 2938 4756',
firstSeenAt: '2025-12-24T01:02:03Z',
tags: ['signed-up']
})
};
fetch('https://docurise.io/api/preview/contacts', 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://docurise.io/api/preview/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'person@example.com',
'name' => 'Ada Lee',
'company' => 'Example Inc',
'phone' => '+82 10 2938 4756',
'firstSeenAt' => '2025-12-24T01:02:03Z',
'tags' => [
'signed-up'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://docurise.io/api/preview/contacts"
payload := strings.NewReader("{\n \"email\": \"person@example.com\",\n \"name\": \"Ada Lee\",\n \"company\": \"Example Inc\",\n \"phone\": \"+82 10 2938 4756\",\n \"firstSeenAt\": \"2025-12-24T01:02:03Z\",\n \"tags\": [\n \"signed-up\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.post("https://docurise.io/api/preview/contacts")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"person@example.com\",\n \"name\": \"Ada Lee\",\n \"company\": \"Example Inc\",\n \"phone\": \"+82 10 2938 4756\",\n \"firstSeenAt\": \"2025-12-24T01:02:03Z\",\n \"tags\": [\n \"signed-up\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://docurise.io/api/preview/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"person@example.com\",\n \"name\": \"Ada Lee\",\n \"company\": \"Example Inc\",\n \"phone\": \"+82 10 2938 4756\",\n \"firstSeenAt\": \"2025-12-24T01:02:03Z\",\n \"tags\": [\n \"signed-up\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3b9f6c52-0f0e-4f3a-9a52-1c1d7e0a8f10",
"email": "person@example.com",
"created": false,
"marketingConsent": true,
"tags": [
"signed-up"
]
}Create or update a contact
Create a contact by email, or update it, apply existing tags and record a consent you collected
curl -X POST 'https://docurise.io/api/preview/contacts' \
-H 'Authorization: Bearer dr_live_<keyId>_<secret>' \
-H 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \
-H 'Content-Type: application/json' \
-d '{
"email": "person@example.com",
"name": "Ada Lee",
"firstSeenAt": "2025-12-24T01:02:03Z",
"tags": ["signed-up"],
"consent": {
"marketing": true,
"collectedAt": "2026-11-09T01:02:03Z",
"source": "signup-form-v3"
}
}'import requests
url = "https://docurise.io/api/preview/contacts"
payload = {
"email": "person@example.com",
"name": "Ada Lee",
"company": "Example Inc",
"phone": "+82 10 2938 4756",
"firstSeenAt": "2025-12-24T01:02:03Z",
"tags": ["signed-up"]
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'person@example.com',
name: 'Ada Lee',
company: 'Example Inc',
phone: '+82 10 2938 4756',
firstSeenAt: '2025-12-24T01:02:03Z',
tags: ['signed-up']
})
};
fetch('https://docurise.io/api/preview/contacts', 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://docurise.io/api/preview/contacts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'person@example.com',
'name' => 'Ada Lee',
'company' => 'Example Inc',
'phone' => '+82 10 2938 4756',
'firstSeenAt' => '2025-12-24T01:02:03Z',
'tags' => [
'signed-up'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$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://docurise.io/api/preview/contacts"
payload := strings.NewReader("{\n \"email\": \"person@example.com\",\n \"name\": \"Ada Lee\",\n \"company\": \"Example Inc\",\n \"phone\": \"+82 10 2938 4756\",\n \"firstSeenAt\": \"2025-12-24T01:02:03Z\",\n \"tags\": [\n \"signed-up\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
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.post("https://docurise.io/api/preview/contacts")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"person@example.com\",\n \"name\": \"Ada Lee\",\n \"company\": \"Example Inc\",\n \"phone\": \"+82 10 2938 4756\",\n \"firstSeenAt\": \"2025-12-24T01:02:03Z\",\n \"tags\": [\n \"signed-up\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://docurise.io/api/preview/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"person@example.com\",\n \"name\": \"Ada Lee\",\n \"company\": \"Example Inc\",\n \"phone\": \"+82 10 2938 4756\",\n \"firstSeenAt\": \"2025-12-24T01:02:03Z\",\n \"tags\": [\n \"signed-up\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "3b9f6c52-0f0e-4f3a-9a52-1c1d7e0a8f10",
"email": "person@example.com",
"created": false,
"marketingConsent": true,
"tags": [
"signed-up"
]
}+ and a country code keeps that country. A Korean mobile number without a country code, such as 010-2938-4756, is saved as a Korean (+82) number. There is no country field, so write numbers from other countries with their + country code.
First seen date. Send firstSeenAt (RFC 3339, not in the future, 2000-01-01 or later) to set the date the contact is shown as first seen, for example the day the person joined your service. It applies to a new contact and to an existing one, and it replaces the stored date every time you send it. Leave it out to keep the date as it is.Authorizations
A key generated from Settings → Developers, sent as
Authorization: Bearer dr_live_<12 hex chars>_<64 hex chars>. Keys
carry explicit scopes — each endpoint states the one it requires.
The full key is shown exactly once at generation time and cannot be
retrieved again; only the keyId prefix is shown afterward. A
revoked key fails auth on its very next request.
Headers
Body
Replaces the stored phone when non-empty. A number that starts with + and a country code keeps that country. A Korean mobile number without a country code, such as 010-2938-4756, is saved as a Korean (+82) number; there is no country field, so write any other country's number with its + country code. A number that cannot be parsed is kept as you sent it. Omitted, null or empty leaves it alone.
32"+82 10 2938 4756"
The date the contact is shown as first seen, for example the day the person joined your service: RFC 3339 with an offset or Z, not in the future, 2000-01-01 or later. Replaces the stored date for a new and for an existing contact. Omitted leaves it alone (a new contact then gets the time of this call).
"2025-12-24T01:02:03Z"
Response
The contact already existed and was updated with what you sent (created: false).
