Examples
CRM — Examples
Copy-paste, working requests. BASE=https://app.corteksa.info/api/v1 (a dedicated
workspace uses its own subdomain: https://<subdomain>.corteksa.info/api/v1).
Use either an API key (X-Api-Key: crtk_live_…) or an admin JWT
(Authorization: Bearer …) — examples show the API key.
The
databody is keyed by field slug (e.g.name-8fk2), never the display name. Find slugs atGET /object/:objectSlug/fields.
Read records (paginated)
cURL
JavaScript (fetch)
Read one record
Create a record
Body keyed by field slug. select/status values must match an allowed option.
cURL
JavaScript (fetch)
Response (201):
Every write door — create, update, inline create, duplicate — answers the
record alone. The field catalog comes from a read (GET /object/data/:slug
or .../:slug/:recordSlug) and is yours to cache: no record write can change
it, so resending it on each save would repeat kilobytes you already hold.
Update a record
Send only the fields that change (still keyed by slug):
Link a relation on create
relations is keyed by the relation field slug → the linked record slug:
Filter & paginate
filters is a JSON array of { fieldSlug, operator, value }:
Operators include equals, does_not_equal, includes, starts_with,
greater_than, less_than, between, is_empty, before, after,
this_month. Filter by assignee with adminSlug, or unassigned with
unassigned=true.