Skip to main content
POST
/
v1
/
customers
Create customer
curl --request POST \
  --url https://api.quentli.com/v1/customers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "name": "Juan Perez",
    "username": "juan_perez_01",
    "email": "juan@example.com",
    "phoneNumber": "+525512345678",
    "secondaryPhoneNumber": "+525598765432",
    "acceptedServiceAgreement": true,
    "skipTaxInvoice": false,
    "assigneeId": "cmab12cd3000x1a2b3c4d5e6f",
    "optedOutWhatsappAt": "2025-01-15T10:30:00.000Z",
    "metadata": [
      {
        "key": "studentId",
        "value": "A-1029"
      }
    ],
    "tags": [
      "VIP",
      "Colegiatura"
    ]
  }
}
'
{
  "customer": {
    "id": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "name": "<string>",
    "username": "<string>",
    "organizationId": "<string>",
    "acceptedServiceAgreement": true,
    "skipTaxInvoice": true,
    "emailVerified": true,
    "phoneNumberVerified": true,
    "hasChangedPassword": true,
    "email": "<string>",
    "phoneNumber": "<string>",
    "secondaryPhoneNumber": "<string>",
    "archivedAt": "<string>",
    "archivedById": "<string>",
    "signatureAcceptedAt": "<string>",
    "optedOutWhatsappAt": "<string>",
    "optedInWhatsappAt": "<string>",
    "startedWhatsappAt": "<string>",
    "replyWithAssistant": true,
    "metadata": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "meta": {}
  }
}

Authorizations

Authorization
string
header
required

Organization API key using Authorization: Bearer sk_....

Body

application/json

Request body for creating a customer.

input
object
required

Customer creation payload.

Response

Customer created

Successful customer creation response.

customer
object
required

Customer record including identity, contact details, and messaging preferences.