Contendar Help

Create customer

Create a customer. Use this to push contacts from your CRM or sign up flow into Contendar.

POST /customers

If a customer with the same email already exists in the project, the request returns 400. Use Update a customer to change an existing record.

Authentication

Send your API key as a bearer token. See Authentication .

Request body

FieldTypeRequiredNotes
projectIdUUIDyesThe project to add the customer to.
namestringyesThe customer name.
emailstringnoThe customer email. Must be unique in the project.
companystringnoThe customer company.
jobTitlestringnoThe customer job title.
industrystringnoThe customer industry.
avatarUrlstringnoA public URL for the customer avatar.
socialHandlestringnoThe customer social handle.
companyLogoUrlstringnoA public URL for the company logo.
sourcestringnoOne of import, nps, testimonial, manual, generic. Defaults to manual.
{
  "projectId": "8a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d",
  "name": "Dana Lang",
  "email": "dana@acme.com",
  "company": "Acme",
  "jobTitle": "Head of Growth"
}

Response

Returns the created customer. See List customers for the meaning of each field.

Example

curl -X POST "https://app.contendar.com/api/v1/customers" \
  -H "Authorization: Bearer ck_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "projectId": "YOUR_PROJECT_ID",
    "name": "Dana Lang",
    "email": "dana@acme.com",
    "company": "Acme"
  }'

Related pages

Was this helpful?