ValeronDocs

Contacts

Create a contact

POST/v1/contacts

Requires the scope contacts:write

Create a contact from fields. When one with the same email address or phone number already exists, the values are added onto it and it comes back with is_matched: true and a 200 instead of a 201. Send an Idempotency-Key header to make a retry safe. The values are recorded with source api.

#Header parameters

Idempotency-Keystring or null

#Request body

application/json
fieldsobject (values: string | integer | number | boolean | string[] | object)required

#Responses

201Successful Response
Show response fieldsHide response fields
archived_atstring (date-time) or nullrequired
fieldsobject (values: object)required
Show child attributesHide child attributes
has_historybooleanrequired
itemsobject[] or null
Show child attributesHide child attributes
is_primarybooleanrequired
sourcestringrequired
valuestringrequired
labelstringrequired
sourcestring or nullrequired
typestringrequired
Allowed values: "text" "long_text" "number" "currency" "date" "datetime" "checkbox" "picklist" "multi_picklist" "url" "phone" "email" "user" "record_link"
valuestring | integer | number | boolean | string[] | object[] | object or nullrequired
A value as stored or shown. Text, dates, times, picklist values, member and record IDs are strings; a multi-select, tags or the points of a contact are lists of strings; money is { amount, currency }; a linked member or record is { id, name } (a list of them for a column that holds several); a status shown with its label is { value, label }; the guests of a meeting are a list of { email, name, response }; a metric column holds { value, unit, sample_size, unknown_count, reason }.
idstringrequired
is_matchedbooleanrequired
objectstringrequired
Allowed values: "contacts" "companies"
processingobjectrequired
Show child attributesHide child attributes
errorstring or null
fields_pendingstring[]required
statusstringrequired
Allowed values: "pending" "running" "done" "failed"
updated_atstring (date-time)required

#Errors

Errors use the standard error shape.

StatusMeaning
400The request is not valid.
401Not signed in, or the credentials are not valid.
402The balance is too low.
403Not allowed to do this.
404Not found.
409Conflicts with the current state.
413The request body is too large.
415The content type is not supported.
422A value in the request is not valid.
429Too many requests. Wait for Retry-After seconds.
500Something went wrong on our side.
502A service Valeron depends on refused the request.
503A service Valeron depends on is unavailable.