Skip to main content
POST
/
crm
/
objects
Create object
curl --request POST \
  --url https://www.dench.com/api/v1/crm/objects \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "lead",
  "description": "Sales leads",
  "defaultView": "kanban",
  "icon": "target"
}
'
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Body

application/json
name
string
required

Object name (lowercased, singular).

description
string
defaultView
enum<string>

Default view rendered for the object.

Available options:
table,
kanban,
calendar,
timeline,
gallery,
list
icon
string

Lucide icon name, e.g. users, target.

Response

Successful response

id
string
required