API reference

Custom fields

Workspaces add their own fields to leads, contacts, companies and products. Their values live in each record's custom object, keyed by the field's key.

The field object

json
{
  "id": "field_01j8z6a0b2c4d6e8f0g2h4j6k8",
  "entity": "lead",
  "key": "delivery_date",
  "label": { "uz-Latn": "Yetkazish sanasi", "ru": "Дата доставки", "en": "Delivery date" },
  "type": "date",
  "options": [],
  "position": 2,
  "required": false,
  "group": ""
}

List fields

GET/v1/fieldsNo scope needed

Every field definition of the workspace: {"data": [ … ]}. Add ?entity=lead (or contact, company, product) for one record type. No scope is needed.

Creating, changing and deleting fields is reserved for owners and admins in Kweko (Settings → Fields); these endpoints do not accept API keys yet:

POST/v1/fieldsKweko app only
PATCH/v1/fields/{id}Kweko app only
DELETE/v1/fields/{id}Kweko app only

Values by type

Send custom values in custom when you create or update a record. Only the keys you send change; null clears a value (a required field cannot be cleared). An unknown key or a bad value answers validation_failed with the problem under custom.<key> in fields.

TypeJSON valueExample
text, long_textstring"Blue, size M"
numbernumber12.5
moneyobject with an integer amount in the smallest unit and currency (UZS by default){"amount": 5000000, "currency": "UZS"}
dateYYYY-MM-DD"2026-10-02"
datetimeRFC 3339, stored in UTC"2026-10-02T15:00:00+05:00"
selectthe id of one of the field's optionsan id from options
multiselecta list of option ids, up to 100ids from options
checkboxtrue or falsetrue
phonea phone number, normalized like contact phones"+998901234567"
emailan email address, lowercased"[email protected]"
urla URL"https://example.uz"
membera member id"member_01j8…"
ratingan integer from 1 to 54
Request
curl -X PATCH https://api.kweko.uz/v1/leads/lead_01j8z7c2d4f6g8h0j2k4m6n8p0 \
  -H "Authorization: Bearer $KWEKO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"custom": {"delivery_date": "2026-10-02", "gift_wrap": true}}'