Browse documentation

Objects & CRM records

Current release · Updated October 4, 2026

DryKraft Objects & CRM records reference: methods, permissions, request fields, response shapes, examples and current limits. Read authentication and error handling first.

GET/api/objects

List object definitions

Access: Workspace member · Success: 200

Built-in and custom definitions, including field schemas.

No request body is required.

Response

Object[]. Also tenant_id, built_in and timestamps

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/objects' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/objects

Create custom object

Access: Owner or admin · Success: 201

Unique key and field keys. Currency fields require a text currency-code field; one is added automatically if absent. Maximum 100 fields including currency.

JSON request

Use Object.

Response

Use Object.

Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/objects' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "projects",
  "name": "Projects",
  "singular_name": "Project",
  "fields": [
    {
      "key": "name",
      "name": "Project name",
      "type": "text",
      "required": true
    }
  ]
}'
POST/api/objects/{key}/fields

Add object field

Access: Owner or admin · Success: 200

Duplicate key is 409. Required fields cannot be added when records already exist. Invoice document_template is reserved. Definitions cannot be deleted.

JSON request

Use Field.

Response

Use Object.

Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/objects/people/fields' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "region",
  "name": "Region",
  "type": "text",
  "required": false
}'
PUT/api/objects/{key}

Edit object names

Access: Owner or admin · Success: 200

Object key stays fixed. Supply the previous plural/singular names from the latest read. A stale conflicting edit returns409; an identical saved retry is safe. Records and saved workflows are not rewritten.

JSON request

FieldTypeRequiredDetails
namestringYesPlural label Max 80 characters.
singular_namestringYesSingular label Max 80 characters.
previousobjectYes

Response

Use Object.

Request shape (illustrative)
curl --request PUT \
  --url 'https://app.drykraft.com/api/objects/people' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<Plural label>",
  "singular_name": "<Singular label>",
  "previous": {
    "name": "<Previous plural label>",
    "singular_name": "<Previous singular label>"
  }
}'
PUT/api/objects/{key}/fields/{field}

Edit field label and rules

Access: Owner or admin · Success: 200

Supply complete field and previous field from latest object read. Keys, types and relation targets stay fixed. Built-in fields permit label edits only; managed_field_keys in GET objects identifies them. Custom required/choice changes validate existing active records before commit. Invalid existing values and conflicting stale edits return409. No record values or financial snapshots are rewritten.

JSON request

FieldTypeRequiredDetails
fieldFieldYes
previousFieldYes

Response

Use Object.

Request shape (illustrative)
curl --request PUT \
  --url 'https://app.drykraft.com/api/objects/people/fields/{field}' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
  "field": {
    "key": "people",
    "name": "<Field label>",
    "type": "text"
  },
  "previous": {
    "key": "people",
    "name": "<Field label>",
    "type": "text"
  }
}'
GET/api/records/{key}

List records

Access: Workspace member · Success: 200

Latest created first. Saved list/filter intersects search/status. Financial records can be read here, but must be mutated through Finance.

Query parameters

ParameterTypeRequiredDetails
searchstringNoOptional search in name/email/company/customer/vendor/invoice number, max 200
limitintegerNoDefault 50 Min 1. Max 100.
cursorstringNoOpaque next_cursor, max 500
statusstringNoExact status, max 80
listuuidNoOptional saved smart-list ID
filterstringNoOptional JSON-encoded Filter; mutually exclusive with list, max 10,000

No request body is required.

Response

Use RecordPage.

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/records/people' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/records/{key}

Create record

Access: Owner, admin or member · Success: 201

Nonfinancial objects only. A new lead atomically creates/reuses its contact and company and creates a linked Open deal in the first alphabetically listed pipeline. New contacts have marketing consent=false. Company names match exactly ignoring case and outer spaces; ambiguous names require an explicit company_id. Optional sales_data supplies custom deal fields (required fields still validate). Deals without a pipeline use the first saved pipeline. Types, currencies, plan limits and related permissions are enforced.

JSON request

FieldTypeRequiredDetails
dataobjectYesObject field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated.
sales_dataobjectNoObject field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated.

Response

Use Record.

Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/records/people' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "name": "Example person"
  }
}'
GET/api/record-options

Search relationship choices

Access: Workspace member · Success: 200

Search and page records by saved name/email. An omitted object uses the selected record type or People. Selected aliases resolve to the remaining contact; an incompatible or foreign selected ID fails.

Query parameters

ParameterTypeRequiredDetails
objectstringNo Pattern: ^[a-z][a-z0-9_]{1,39}$.
selecteduuidNo
searchstringNoSearch Max 200 characters.
cursorstringNoOpaque cursor Max 500 characters.

No request body is required.

Response

FieldTypeRequiredDetails
objectstringNo Pattern: ^[a-z][a-z0-9_]{1,39}$.
itemsRecord[]No
selectedRecord or nullNo
totalintegerNoMatching records
next_cursorstring or nullNo
Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/record-options' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
GET/api/records/{key}/{id}/invoice-context

Prepare linked invoice details

Access: Workspace member · Success: 200

People, Companies, Leads or Deals only. Returns editable customer, contact/company/deal links and, for a linked deal, currency and a proposed line item. Reads existing records without creating/issuing an invoice. Saved financial customer and amount snapshots remain independent.

No request body is required.

Response

object. Object field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated.

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/records/people/00000000-0000-4000-8000-000000000001/invoice-context' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
GET/api/records/{key}/{id}

Get record

Access: Workspace member · Success: 200

404 for a missing record in the selected workspace. Merged People IDs resolve to the remaining canonical contact; returned id can differ from the requested id.

No request body is required.

Response

Use Record.

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/records/people/00000000-0000-4000-8000-000000000001' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
PUT/api/records/{key}/{id}

Replace record data

Access: Owner, admin or member · Success: 200

Supply the complete desired field data and latest version. This is not a partial patch. Nonfinancial objects only.

JSON request

FieldTypeRequiredDetails
dataobjectYesObject field values. User fields use a current workspace member UUID; unchanged departed assignments can remain on their original record. Only keys in the workspace object definition are allowed; required fields and field types are validated.
versionintegerYesPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.

Response

Use Record.

Request shape (illustrative)
curl --request PUT \
  --url 'https://app.drykraft.com/api/records/people/00000000-0000-4000-8000-000000000001' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": {
    "name": "Example person"
  },
  "version": 1
}'
DELETE/api/records/{key}/{id}

Delete record

Access: Owner, admin or member · Success: 200

Nonfinancial only. Related records can prevent deletion. Supply version to protect against concurrent edits.

Query parameters

ParameterTypeRequiredDetails
versionintegerNoPositive optimistic version returned by the latest read. Refresh on 409; do not overwrite stale changes. Min 1.

No request body is required.

Response

Use OK.

Request shape (illustrative)
curl --request DELETE \
  --url 'https://app.drykraft.com/api/records/people/00000000-0000-4000-8000-000000000001' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/leads/{id}/convert

Convert lead to person

Access: Owner, admin or member · Success: 200

Reuses the linked contact and Sales deal, fills missing legacy links, sets the lead Converted and adds converted_to. Existing contact details/consent and negotiated deal values remain unchanged. Already converted returns 409.

No request body is required.

Response

FieldTypeRequiredDetails
leadRecordNo
personRecordNo
dealRecordNo
Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/leads/00000000-0000-4000-8000-000000000001/convert' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
GET/api/activities

List recent activities

Access: Workspace member · Success: 200

Latest 50 with actor and record labels.

Query parameters

ParameterTypeRequiredDetails
record_iduuidNo

No request body is required.

Response

object[]. id, record_id, actor_id, actor_name, record_name, object_key, type, body, created_at

Request shape (illustrative)
curl --request GET \
  --url 'https://app.drykraft.com/api/activities' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>'
POST/api/activities

Add record activity

Access: Owner, admin or member · Success: 201

Notes/call/email/meeting entries record activity; they do not send a message or place a call.

JSON request

FieldTypeRequiredDetails
record_iduuidYes
bodystringYesNonblank note Max 10000 characters.
typenote | call | email | meetingNoDefaults note

Response

object. Saved activity row

Request shape (illustrative)
curl --request POST \
  --url 'https://app.drykraft.com/api/activities' \
  --cookie 'drykraft_session=<YOUR_SESSION_TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
  "record_id": "00000000-0000-4000-8000-000000000001",
  "body": "<Nonblank note>"
}'