Skip to main content
POST
/
api
/
contacts
Create Contact
curl --request POST \
  --url https://qwoty.app/api/contacts \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "role": [
    {}
  ],
  "id_crm": "<string>",
  "id_erp": "<string>",
  "id_accounting": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "660e8400-e29b-41d4-a716-446655440001",
    "workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
    "customer_id": "550e8400-e29b-41d4-a716-446655440000",
    "first_name": "Jean",
    "last_name": "Dupont",
    "email": "jean.dupont@acme.com",
    "phone": "+33 6 12 34 56 78",
    "role": ["buyer", "signer"],
    "id_crm": null,
    "id_erp": null,
    "id_accounting": null,
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-01-15T10:30:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.qwoty.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorization

Authorization
string
required
Bearer token. Format: Bearer qwoty_your_token

Request Body

customer_id
string
required
UUID of the customer this contact belongs to
first_name
string
required
Contact’s first name
last_name
string
required
Contact’s last name
email
string
required
Contact’s email address
phone
string
Phone number
role
array
default:"[]"
Assigned roles. Allowed values: "buyer", "signer", "billing", "shipping", "legal", "admin"
id_crm
string
External CRM ID
id_erp
string
External ERP ID
id_accounting
string
External accounting ID

Examples

curl -X POST https://qwoty.app/api/contacts \
  -H "Authorization: Bearer qwoty_your_token" \
  -H "Content-Type: application/json" \
  -d '{
    "customer_id": "550e8400-e29b-41d4-a716-446655440000",
    "first_name": "Jean",
    "last_name": "Dupont",
    "email": "jean.dupont@acme.com",
    "phone": "+33 6 12 34 56 78",
    "role": ["buyer", "signer"]
  }'

Response

success
boolean
true if the contact was created
data
object
The created contact object (same shape as Get Contact)
{
  "success": true,
  "data": {
    "id": "660e8400-e29b-41d4-a716-446655440001",
    "workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
    "customer_id": "550e8400-e29b-41d4-a716-446655440000",
    "first_name": "Jean",
    "last_name": "Dupont",
    "email": "jean.dupont@acme.com",
    "phone": "+33 6 12 34 56 78",
    "role": ["buyer", "signer"],
    "id_crm": null,
    "id_erp": null,
    "id_accounting": null,
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-01-15T10:30:00Z"
  }
}