curl
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"
]
}연락처
연락처 생성 또는 갱신
이메일로 연락처를 만들거나 갱신하고, 기존 태그를 붙이고, 직접 받은 수신 동의를 기록합니다
POST
/
api
/
preview
/
contacts
curl
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"
]
}전화번호.
+와 국가번호로 시작하는 번호는 그 국가로 저장됩니다. 010-2938-4756처럼 국가번호가 없는 한국 휴대전화 번호는 한국(+82) 번호로 저장됩니다. 국가 필드는 없으므로 다른 나라 번호는 +와 국가번호를 붙여 보내세요.
처음 본 날. firstSeenAt(RFC 3339, 미래가 아니어야 하며 2000-01-01 이후)을 보내면 연락처가 처음 본 날로 표시되는 날짜(예: 그 사람이 서비스에 가입한 날)를 정할 수 있습니다. 새 연락처와 이미 있는 연락처 모두에 적용되며, 보낼 때마다 저장된 날짜를 바꿉니다. 보내지 않으면 그대로 둡니다.인증
헤더
본문
application/json
응답
연락처가 이미 있었고, 보낸 내용으로 갱신되었습니다(created: false).
