curl --request POST \
--url https://api.dialtu.com/api/v2/public/clients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.dialtu.com/api/v2/public/clients"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.dialtu.com/api/v2/public/clients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"client_id": 123,
"message": "<string>"
}Create a client
Create a contact in your account.
At least one of phone_number or email is required. A contact that
already exists with the same phone number is rejected with
DUPLICATE_CLIENT. Tags are created on the fly when they do not exist yet.
curl --request POST \
--url https://api.dialtu.com/api/v2/public/clients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.dialtu.com/api/v2/public/clients"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.dialtu.com/api/v2/public/clients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"client_id": 123,
"message": "<string>"
}Authorizations
API key created in the dashboard under Settings → API Keys. Send it as Authorization: Bearer pk_....
Body
Public API request schema for creating a client.
Given name.
Family name.
Country calling code (for example 52) stored alongside the phone number. Optional when phone_number is already in E.164 format.
Phone number, preferably E.164 (+525512345678). Required unless email is provided.
Email address. Required unless phone_number is provided.
Company or organization name.
IANA timezone of the contact (for example America/Bogota).
Free-form custom fields stored on the contact and available to agents as prompt variables.
Tags to attach. Tags that do not exist yet are created.
Show child attributes
Show child attributes