Skip to main content
POST
Add a contact

Authorizations

Authorization
string
header
required

Authorization: Bearer

Headers

Idempotency-Key
string

A unique value for this creation (for example a UUID). A request repeated with the same value within 10 minutes returns what the first one created, without creating anything else: the listing for POST /listings, the contact for POST /leads, the message for POST /leads/{lead}/messages. For listings and messages, only the first 64 characters count.

Query Parameters

locale
enum<string>
default:en

The response language, ro or en. It changes error messages (title, detail), labels and, when the listing has an approved translation in that language, its title and description. Codes are the same in every language. It takes precedence over Accept-Language and over the account's language.

Available options:
ro,
en

Body

application/json
name
string
required

Name.

Maximum string length: 60
phone
string | null

Phone.

Maximum string length: 40
email
string<email> | null

The client's email, if you have it.

Maximum string length: 120
source
enum<string> | null

How the request came in: message, phone (call request), viewing_request, referral or other. If you leave it out, the source stays empty, as in the portal.

Available options:
phone,
message,
viewing_request,
referral,
other
status
enum<string> | null

Status.

Available options:
new,
contacted,
viewing,
offer,
closed
note
string | null

Note.

Maximum string length: 500
price
integer | null

Price.

Required range: 0 <= x <= 100000000
board
enum<string> | null

Where the contact goes: firm (the firm's requests, only for the owner, admins and managers) or personal (your own requests). Without it, the contact goes to the firm's requests for whoever runs them and to their own requests for everyone else.

Available options:
firm,
personal,
null

Response

The contact had already been added with the same Idempotency-Key. The response holds it.

data
LeadApiResource · object
required

The result of the request.

meta
object
required

Data about the response, outside the result, for example a list's pagination.