Create Contact
Create a new Contact
curl --request POST \
--url https://api.evoai.app/api/v1/contacts \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "Maria Santos",
"identifier": "maria-external-123",
"email": "[email protected]",
"phone_number": "+5521987654321",
"type": "person",
"blocked": false,
"tax_id": "12345678901",
"website": "https://empresa.com.br",
"industry": "Technology",
"avatar_url": "https://example.com/avatar.jpg",
"additional_attributes": {
"company": "Tech Solutions Ltda",
"city": "São Paulo",
"country": "Brazil",
"country_code": "BR",
"description": "Lead from website campaign",
"social_profiles": {
"linkedin": "mariasantos",
"instagram": "maria.santos"
}
},
"custom_attributes": {
"lead_source": "website",
"interest": "premium_plan"
},
"labels": [
"lead",
"premium"
],
"company_ids": [
"550e8400-e29b-41d4-a716-446655440000"
],
"inbox_id": "550e8400-e29b-41d4-a716-446655440001",
"source_id": "+5521987654321"
}
'import requests
url = "https://api.evoai.app/api/v1/contacts"
payload = {
"name": "Maria Santos",
"identifier": "maria-external-123",
"email": "[email protected]",
"phone_number": "+5521987654321",
"type": "person",
"blocked": False,
"tax_id": "12345678901",
"website": "https://empresa.com.br",
"industry": "Technology",
"avatar_url": "https://example.com/avatar.jpg",
"additional_attributes": {
"company": "Tech Solutions Ltda",
"city": "São Paulo",
"country": "Brazil",
"country_code": "BR",
"description": "Lead from website campaign",
"social_profiles": {
"linkedin": "mariasantos",
"instagram": "maria.santos"
}
},
"custom_attributes": {
"lead_source": "website",
"interest": "premium_plan"
},
"labels": ["lead", "premium"],
"company_ids": ["550e8400-e29b-41d4-a716-446655440000"],
"inbox_id": "550e8400-e29b-41d4-a716-446655440001",
"source_id": "+5521987654321"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Maria Santos',
identifier: 'maria-external-123',
email: '[email protected]',
phone_number: '+5521987654321',
type: 'person',
blocked: false,
tax_id: '12345678901',
website: 'https://empresa.com.br',
industry: 'Technology',
avatar_url: 'https://example.com/avatar.jpg',
additional_attributes: {
company: 'Tech Solutions Ltda',
city: 'São Paulo',
country: 'Brazil',
country_code: 'BR',
description: 'Lead from website campaign',
social_profiles: {linkedin: 'mariasantos', instagram: 'maria.santos'}
},
custom_attributes: {lead_source: 'website', interest: 'premium_plan'},
labels: ['lead', 'premium'],
company_ids: ['550e8400-e29b-41d4-a716-446655440000'],
inbox_id: '550e8400-e29b-41d4-a716-446655440001',
source_id: '+5521987654321'
})
};
fetch('https://api.evoai.app/api/v1/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://api.evoai.app/api/v1/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([
'name' => 'Maria Santos',
'identifier' => 'maria-external-123',
'email' => '[email protected]',
'phone_number' => '+5521987654321',
'type' => 'person',
'blocked' => false,
'tax_id' => '12345678901',
'website' => 'https://empresa.com.br',
'industry' => 'Technology',
'avatar_url' => 'https://example.com/avatar.jpg',
'additional_attributes' => [
'company' => 'Tech Solutions Ltda',
'city' => 'São Paulo',
'country' => 'Brazil',
'country_code' => 'BR',
'description' => 'Lead from website campaign',
'social_profiles' => [
'linkedin' => 'mariasantos',
'instagram' => 'maria.santos'
]
],
'custom_attributes' => [
'lead_source' => 'website',
'interest' => 'premium_plan'
],
'labels' => [
'lead',
'premium'
],
'company_ids' => [
'550e8400-e29b-41d4-a716-446655440000'
],
'inbox_id' => '550e8400-e29b-41d4-a716-446655440001',
'source_id' => '+5521987654321'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <api-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://api.evoai.app/api/v1/contacts"
payload := strings.NewReader("{\n \"name\": \"Maria Santos\",\n \"identifier\": \"maria-external-123\",\n \"email\": \"[email protected]\",\n \"phone_number\": \"+5521987654321\",\n \"type\": \"person\",\n \"blocked\": false,\n \"tax_id\": \"12345678901\",\n \"website\": \"https://empresa.com.br\",\n \"industry\": \"Technology\",\n \"avatar_url\": \"https://example.com/avatar.jpg\",\n \"additional_attributes\": {\n \"company\": \"Tech Solutions Ltda\",\n \"city\": \"São Paulo\",\n \"country\": \"Brazil\",\n \"country_code\": \"BR\",\n \"description\": \"Lead from website campaign\",\n \"social_profiles\": {\n \"linkedin\": \"mariasantos\",\n \"instagram\": \"maria.santos\"\n }\n },\n \"custom_attributes\": {\n \"lead_source\": \"website\",\n \"interest\": \"premium_plan\"\n },\n \"labels\": [\n \"lead\",\n \"premium\"\n ],\n \"company_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"inbox_id\": \"550e8400-e29b-41d4-a716-446655440001\",\n \"source_id\": \"+5521987654321\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_access_token", "<api-key>")
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://api.evoai.app/api/v1/contacts")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Maria Santos\",\n \"identifier\": \"maria-external-123\",\n \"email\": \"[email protected]\",\n \"phone_number\": \"+5521987654321\",\n \"type\": \"person\",\n \"blocked\": false,\n \"tax_id\": \"12345678901\",\n \"website\": \"https://empresa.com.br\",\n \"industry\": \"Technology\",\n \"avatar_url\": \"https://example.com/avatar.jpg\",\n \"additional_attributes\": {\n \"company\": \"Tech Solutions Ltda\",\n \"city\": \"São Paulo\",\n \"country\": \"Brazil\",\n \"country_code\": \"BR\",\n \"description\": \"Lead from website campaign\",\n \"social_profiles\": {\n \"linkedin\": \"mariasantos\",\n \"instagram\": \"maria.santos\"\n }\n },\n \"custom_attributes\": {\n \"lead_source\": \"website\",\n \"interest\": \"premium_plan\"\n },\n \"labels\": [\n \"lead\",\n \"premium\"\n ],\n \"company_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"inbox_id\": \"550e8400-e29b-41d4-a716-446655440001\",\n \"source_id\": \"+5521987654321\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evoai.app/api/v1/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api_access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Maria Santos\",\n \"identifier\": \"maria-external-123\",\n \"email\": \"[email protected]\",\n \"phone_number\": \"+5521987654321\",\n \"type\": \"person\",\n \"blocked\": false,\n \"tax_id\": \"12345678901\",\n \"website\": \"https://empresa.com.br\",\n \"industry\": \"Technology\",\n \"avatar_url\": \"https://example.com/avatar.jpg\",\n \"additional_attributes\": {\n \"company\": \"Tech Solutions Ltda\",\n \"city\": \"São Paulo\",\n \"country\": \"Brazil\",\n \"country_code\": \"BR\",\n \"description\": \"Lead from website campaign\",\n \"social_profiles\": {\n \"linkedin\": \"mariasantos\",\n \"instagram\": \"maria.santos\"\n }\n },\n \"custom_attributes\": {\n \"lead_source\": \"website\",\n \"interest\": \"premium_plan\"\n },\n \"labels\": [\n \"lead\",\n \"premium\"\n ],\n \"company_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"inbox_id\": \"550e8400-e29b-41d4-a716-446655440001\",\n \"source_id\": \"+5521987654321\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"contact": {
"id": "3b49511b-c35c-429c-85c3-a83feb87cbef",
"name": "Maria Santos",
"email": "[email protected]",
"phone_number": "+5521987654321",
"identifier": "maria-external-123",
"blocked": false,
"type": "person",
"tax_id": "12345678901",
"website": "https://empresa.com.br",
"industry": "Technology",
"additional_attributes": {
"city": "São Paulo",
"company": "Tech Solutions Ltda",
"country": "Brazil",
"country_code": "BR",
"description": "Lead from website campaign",
"social_profiles": {
"github": "",
"twitter": "",
"facebook": "",
"linkedin": "mariasantos",
"instagram": "maria.santos"
}
},
"custom_attributes": {
"lead_source": "website",
"interest": "premium_plan"
},
"created_at": 1765200698,
"last_activity_at": null,
"labels": [
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"title": "lead",
"color": "#4CAF50"
},
{
"id": "550e8400-e29b-41d4-a716-446655440003",
"title": "premium",
"color": "#2196F3"
}
],
"contact_inboxes": [
{
"source_id": "+5521987654321",
"inbox": {
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "WhatsApp Business",
"channel_type": "whatsapp"
}
}
],
"companies": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Tech Solutions Ltda",
"type": "company"
}
]
},
"contact_inbox": {
"inbox": {
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "WhatsApp Business",
"channel_type": "whatsapp"
},
"source_id": "+5521987654321"
}
},
"message": "Contact created successfully"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "INVALID_TOKEN",
"message": "Invalid token"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to access this resource"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts",
"method": "POST"
}
}{
"success": false,
"error": "Bad Request",
"message": "Validation failed",
"details": {
"name": [
"can't be blank"
]
}
}Autorizaciones
Cuerpo
Name of the contact
"Maria Santos"
Unique identifier for the contact (e.g., external ID)
"maria-santos-123"
Email address of the contact
Phone number with country code
"+5521987654321"
Whether the contact is blocked
false
URL to download and set as contact's avatar
"https://example.com/avatar.jpg"
Type of contact
person, company "person"
Tax ID (CPF/CNPJ)
"12345678901"
Contact's website URL
"https://empresa.com.br"
Industry/sector of the contact or company
"Technology"
Additional attributes for the contact
{
"company": "Tech Solutions Ltda",
"city": "São Paulo",
"country": "Brazil",
"country_code": "BR",
"description": "Lead from website",
"social_profiles": {
"linkedin": "mariasantos",
"instagram": "maria.santos"
}
}
Custom attributes as key-value pairs
{
"lead_source": "website",
"interest": "premium_plan"
}
Labels to assign to the contact
["lead", "premium"]
Array of company IDs to associate with this contact (only for person type)
["550e8400-e29b-41d4-a716-446655440000"]
Inbox ID to create a contact_inbox association
"550e8400-e29b-41d4-a716-446655440001"
Source ID for the contact_inbox (e.g., WhatsApp number, email address)
"+5521987654321"
curl --request POST \
--url https://api.evoai.app/api/v1/contacts \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"name": "Maria Santos",
"identifier": "maria-external-123",
"email": "[email protected]",
"phone_number": "+5521987654321",
"type": "person",
"blocked": false,
"tax_id": "12345678901",
"website": "https://empresa.com.br",
"industry": "Technology",
"avatar_url": "https://example.com/avatar.jpg",
"additional_attributes": {
"company": "Tech Solutions Ltda",
"city": "São Paulo",
"country": "Brazil",
"country_code": "BR",
"description": "Lead from website campaign",
"social_profiles": {
"linkedin": "mariasantos",
"instagram": "maria.santos"
}
},
"custom_attributes": {
"lead_source": "website",
"interest": "premium_plan"
},
"labels": [
"lead",
"premium"
],
"company_ids": [
"550e8400-e29b-41d4-a716-446655440000"
],
"inbox_id": "550e8400-e29b-41d4-a716-446655440001",
"source_id": "+5521987654321"
}
'import requests
url = "https://api.evoai.app/api/v1/contacts"
payload = {
"name": "Maria Santos",
"identifier": "maria-external-123",
"email": "[email protected]",
"phone_number": "+5521987654321",
"type": "person",
"blocked": False,
"tax_id": "12345678901",
"website": "https://empresa.com.br",
"industry": "Technology",
"avatar_url": "https://example.com/avatar.jpg",
"additional_attributes": {
"company": "Tech Solutions Ltda",
"city": "São Paulo",
"country": "Brazil",
"country_code": "BR",
"description": "Lead from website campaign",
"social_profiles": {
"linkedin": "mariasantos",
"instagram": "maria.santos"
}
},
"custom_attributes": {
"lead_source": "website",
"interest": "premium_plan"
},
"labels": ["lead", "premium"],
"company_ids": ["550e8400-e29b-41d4-a716-446655440000"],
"inbox_id": "550e8400-e29b-41d4-a716-446655440001",
"source_id": "+5521987654321"
}
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Maria Santos',
identifier: 'maria-external-123',
email: '[email protected]',
phone_number: '+5521987654321',
type: 'person',
blocked: false,
tax_id: '12345678901',
website: 'https://empresa.com.br',
industry: 'Technology',
avatar_url: 'https://example.com/avatar.jpg',
additional_attributes: {
company: 'Tech Solutions Ltda',
city: 'São Paulo',
country: 'Brazil',
country_code: 'BR',
description: 'Lead from website campaign',
social_profiles: {linkedin: 'mariasantos', instagram: 'maria.santos'}
},
custom_attributes: {lead_source: 'website', interest: 'premium_plan'},
labels: ['lead', 'premium'],
company_ids: ['550e8400-e29b-41d4-a716-446655440000'],
inbox_id: '550e8400-e29b-41d4-a716-446655440001',
source_id: '+5521987654321'
})
};
fetch('https://api.evoai.app/api/v1/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://api.evoai.app/api/v1/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([
'name' => 'Maria Santos',
'identifier' => 'maria-external-123',
'email' => '[email protected]',
'phone_number' => '+5521987654321',
'type' => 'person',
'blocked' => false,
'tax_id' => '12345678901',
'website' => 'https://empresa.com.br',
'industry' => 'Technology',
'avatar_url' => 'https://example.com/avatar.jpg',
'additional_attributes' => [
'company' => 'Tech Solutions Ltda',
'city' => 'São Paulo',
'country' => 'Brazil',
'country_code' => 'BR',
'description' => 'Lead from website campaign',
'social_profiles' => [
'linkedin' => 'mariasantos',
'instagram' => 'maria.santos'
]
],
'custom_attributes' => [
'lead_source' => 'website',
'interest' => 'premium_plan'
],
'labels' => [
'lead',
'premium'
],
'company_ids' => [
'550e8400-e29b-41d4-a716-446655440000'
],
'inbox_id' => '550e8400-e29b-41d4-a716-446655440001',
'source_id' => '+5521987654321'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api_access_token: <api-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://api.evoai.app/api/v1/contacts"
payload := strings.NewReader("{\n \"name\": \"Maria Santos\",\n \"identifier\": \"maria-external-123\",\n \"email\": \"[email protected]\",\n \"phone_number\": \"+5521987654321\",\n \"type\": \"person\",\n \"blocked\": false,\n \"tax_id\": \"12345678901\",\n \"website\": \"https://empresa.com.br\",\n \"industry\": \"Technology\",\n \"avatar_url\": \"https://example.com/avatar.jpg\",\n \"additional_attributes\": {\n \"company\": \"Tech Solutions Ltda\",\n \"city\": \"São Paulo\",\n \"country\": \"Brazil\",\n \"country_code\": \"BR\",\n \"description\": \"Lead from website campaign\",\n \"social_profiles\": {\n \"linkedin\": \"mariasantos\",\n \"instagram\": \"maria.santos\"\n }\n },\n \"custom_attributes\": {\n \"lead_source\": \"website\",\n \"interest\": \"premium_plan\"\n },\n \"labels\": [\n \"lead\",\n \"premium\"\n ],\n \"company_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"inbox_id\": \"550e8400-e29b-41d4-a716-446655440001\",\n \"source_id\": \"+5521987654321\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_access_token", "<api-key>")
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://api.evoai.app/api/v1/contacts")
.header("api_access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Maria Santos\",\n \"identifier\": \"maria-external-123\",\n \"email\": \"[email protected]\",\n \"phone_number\": \"+5521987654321\",\n \"type\": \"person\",\n \"blocked\": false,\n \"tax_id\": \"12345678901\",\n \"website\": \"https://empresa.com.br\",\n \"industry\": \"Technology\",\n \"avatar_url\": \"https://example.com/avatar.jpg\",\n \"additional_attributes\": {\n \"company\": \"Tech Solutions Ltda\",\n \"city\": \"São Paulo\",\n \"country\": \"Brazil\",\n \"country_code\": \"BR\",\n \"description\": \"Lead from website campaign\",\n \"social_profiles\": {\n \"linkedin\": \"mariasantos\",\n \"instagram\": \"maria.santos\"\n }\n },\n \"custom_attributes\": {\n \"lead_source\": \"website\",\n \"interest\": \"premium_plan\"\n },\n \"labels\": [\n \"lead\",\n \"premium\"\n ],\n \"company_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"inbox_id\": \"550e8400-e29b-41d4-a716-446655440001\",\n \"source_id\": \"+5521987654321\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evoai.app/api/v1/contacts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api_access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Maria Santos\",\n \"identifier\": \"maria-external-123\",\n \"email\": \"[email protected]\",\n \"phone_number\": \"+5521987654321\",\n \"type\": \"person\",\n \"blocked\": false,\n \"tax_id\": \"12345678901\",\n \"website\": \"https://empresa.com.br\",\n \"industry\": \"Technology\",\n \"avatar_url\": \"https://example.com/avatar.jpg\",\n \"additional_attributes\": {\n \"company\": \"Tech Solutions Ltda\",\n \"city\": \"São Paulo\",\n \"country\": \"Brazil\",\n \"country_code\": \"BR\",\n \"description\": \"Lead from website campaign\",\n \"social_profiles\": {\n \"linkedin\": \"mariasantos\",\n \"instagram\": \"maria.santos\"\n }\n },\n \"custom_attributes\": {\n \"lead_source\": \"website\",\n \"interest\": \"premium_plan\"\n },\n \"labels\": [\n \"lead\",\n \"premium\"\n ],\n \"company_ids\": [\n \"550e8400-e29b-41d4-a716-446655440000\"\n ],\n \"inbox_id\": \"550e8400-e29b-41d4-a716-446655440001\",\n \"source_id\": \"+5521987654321\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"contact": {
"id": "3b49511b-c35c-429c-85c3-a83feb87cbef",
"name": "Maria Santos",
"email": "[email protected]",
"phone_number": "+5521987654321",
"identifier": "maria-external-123",
"blocked": false,
"type": "person",
"tax_id": "12345678901",
"website": "https://empresa.com.br",
"industry": "Technology",
"additional_attributes": {
"city": "São Paulo",
"company": "Tech Solutions Ltda",
"country": "Brazil",
"country_code": "BR",
"description": "Lead from website campaign",
"social_profiles": {
"github": "",
"twitter": "",
"facebook": "",
"linkedin": "mariasantos",
"instagram": "maria.santos"
}
},
"custom_attributes": {
"lead_source": "website",
"interest": "premium_plan"
},
"created_at": 1765200698,
"last_activity_at": null,
"labels": [
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"title": "lead",
"color": "#4CAF50"
},
{
"id": "550e8400-e29b-41d4-a716-446655440003",
"title": "premium",
"color": "#2196F3"
}
],
"contact_inboxes": [
{
"source_id": "+5521987654321",
"inbox": {
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "WhatsApp Business",
"channel_type": "whatsapp"
}
}
],
"companies": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Tech Solutions Ltda",
"type": "company"
}
]
},
"contact_inbox": {
"inbox": {
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "WhatsApp Business",
"channel_type": "whatsapp"
},
"source_id": "+5521987654321"
}
},
"message": "Contact created successfully"
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "INVALID_TOKEN",
"message": "Invalid token"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to access this resource"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/contacts",
"method": "POST"
}
}{
"success": false,
"error": "Bad Request",
"message": "Validation failed",
"details": {
"name": [
"can't be blank"
]
}
}