ClarifyAPI
Schemas

Create a custom object

Creates a new custom object type in the workspace and returns its generated JSON Schema. The name is normalized to a c_-prefixed identifier (for example "Sales Order" becomes c_sales_order). The new object is also added to the end of the workspace sidebar navigation.

POST
/workspaces/{workspace}/schemas/objects
Authorization<token>

API key authentication. Send your key in the Authorization header as: api-key <your-api-key>.

In: header

Path Parameters

workspace*string

The workspace slug — the {slug} segment of your Clarify workspace URL.

Query Parameters

silent?boolean

When true, suppresses in-app and Slack notifications for this mutation and batches its live updates, so open views can lag by up to 20 seconds.

Header Parameters

clarify-version?string

The API version for this request. Send 2026-10 to get the behavior documented here. Omit it to use your API key's version, which this header can raise but not lower.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/workspaces/string/schemas/objects" \  -H "clarify-version: 2026-10" \  -H "Content-Type: application/json" \  -d '{    "name": "Project",    "plural": "Projects",    "description": "A customer project tracked alongside deals and companies.",    "icon": "Briefcase",    "backgroundColor": "blue"  }'
{  "data": {    "type": "schema",    "id": "https://getclarify.ai/schemas/entities/c_project",    "attributes": {      "$schema": "https://json-schema.org/draft/2020-12/clarify",      "$id": "https://getclarify.ai/schemas/entities/c_project",      "title": "Project",      "type": "object",      "xClarifyNamespace": "objects",      "xClarifyLabel": {        "singular": "Project",        "plural": "Projects"      },      "xClarifyAIDescription": "A customer project tracked alongside deals and companies.",      "properties": {        "name": {          "type": "string",          "title": "Name",          "xClarifyPrimary": true        },        "status": {          "type": [            "string",            "null"          ],          "title": "Status",          "enum": [            "Planning",            "In progress",            "Complete"          ]        },        "company_id": {          "type": [            "string",            "null"          ],          "title": "Company",          "xClarifyRelationship": {            "kind": "many-to-one",            "entity": "company",            "field": "projects"          }        }      }    }  }}

List resources

Returns a paginated JSON:API collection of an object’s resources. Use `include` to embed related resources and `filter` to narrow results by field: a bare value is an exact match, including on collection fields (`filter[email_addresses]=jane@acme.com`); shorthand operators are parsed from the value (`filter[status]=active,pending`, `filter[amount]=>100`, `filter[name]=*Smith*`, `filter[assigned]=null`), or name them explicitly (`filter[start][Is on or after]=2025-01-01`, `filter[domains][Contains]=acme`). To filter on a relationship field, include that relationship: `filter[author.name]=John&include=author`. After the first page, `meta.total_records` and `meta.total_pages` can be up to a minute old, so follow `links.next` to page.

Add fields to an object

Adds one or more fields to an object type in one change. The body maps each new field slug to its JSON Schema property document. A select option without an `id` gets one, and a field with `xClarifyEnumMetadata` and no `enum` gets `enum` derived from the option keys. A relationship field declares `xClarifyRelationship` with `kind`, `entity`, and `field`, and names its counterpart with `counterpart.title`: the counterpart is created on the related object at the slug `field` names. A slug that already exists, archived or not, on this object or as a counterpart, returns 409, and this endpoint never overwrites. The response holds the created fields of this object as `GET /workspaces/{workspace}/schemas/objects/{object}` returns them, keyed by slug.