Create a contact

Creates a contact, in one transaction: fields, rows, tags, star, privacy and owner together, so a private contact is never visible to others for an instant. Saving numbers folds in the untouched auto-created contacts that hold them with no dial_after: their calls, texts and voicemails move to the new contact, and meta.folded_contact_ids lists them. Retry a create whose answer was lost with the same Idempotency-Key: the first answer comes back, and no second contact is made. A 500 names the contact it was making: wait Retry-After, then GET it to see whether it was created.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

A new contact: a name, a company or a phone at least. Defaults: not starred, shared, on desk phones, owned by the person creating it.

string
length ≤ 201

A full name as a person types it, split into first_name and last_name the way the web app splits it. Not with first_name, last_name or display_name; company may come beside it.

string | null

The first name; null for none.

string | null

The last name; null for none.

string | null

Replaces the name people see; null for none.

string | null

The company; null for none.

string | null

The job title; null for none.

phones
array of objects
length ≤ 50

The whole list: it replaces the contact's numbers. Each row is complete as sent: an omitted dial_after or label is none, an omitted primary is false.

phones
emails
array of objects
length ≤ 50

The whole list: it replaces the contact's e-mail addresses.

emails
addresses
array of objects
length ≤ 50

The whole list: it replaces the contact's addresses.

addresses
tags
array of strings
length ≤ 100

The whole set of tags, by name (1 to 50 characters each). A tag the account doesn't have yet is created.

tags
boolean

Starred for the whole account.

boolean

true: only its owner, the people it is shared with and the account's owners see it; an API key never does, even one that made it private.

uuid

The person who owns it, a user of the account. It can't be null.

boolean

Show it on desk phones.

Headers
uuid

The account this request acts in, by its id (id in GET /me's accounts). Needed only by credentials that reach several accounts: without it an API key acts in its own account, and a person reads their home account but must name the account a write acts in (400 account_required). Naming an account the credentials may not act in: 403 forbidden. Empty, not an account id, or sent twice: 400 parameter_invalid. Each names Account-Id in param.

string
length between 1 and 255

A unique value for this request (a UUID is usual), 1 to 255 printable ASCII characters. Send it again, unchanged, on every retry, whatever went wrong: an error, a 503 that isn't JSON, a timeout. A retry with the same key never repeats the work: for 24 hours it answers the first answer again. The same key with a different request is 400 idempotency_key_reused; while the first request still runs, 409 idempotency_key_in_use. Use a new key only for a new request, or once a GET showed that a create didn't happen. Keys are kept per credentials, per account and per endpoint.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json