Create Contact
POST
/public/v1/contacts
const url = 'https://api.nuntius.chat/public/v1/contacts';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"fullName":"example","phone":"example","email":"example","country":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.nuntius.chat/public/v1/contacts \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "fullName": "example", "phone": "example", "email": "example", "country": "example" }'Create a contact, origin='api' always (SPEC_API_PUBLICA.md §2.2).
phone is the only required field, normalized to E.164. A phone/email already used
by a live (or soft-deleted) contact of this tenant -> 409 ALREADY_EXISTS.
Idempotency-Key (API-3, D-API-4) is optional: a repeat with the SAME header and SAME body
replays the original response without creating a second contact; the SAME header with a
DIFFERENT body -> 422 IDEMPOTENCY_KEY_REUSE_MISMATCH.
Permiso necesario: tenant:contacts.manage
