> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clarify: Create Custom Object

> Create a custom object. Clarify Create Custom Object reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Create a custom object.

> [!NOTE]
>
> Tool ID: `clarify_create_custom_object`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_create_custom_object',
  {
    "workspace": "example",
    "name": "Example",
    "plural": "example"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_create_custom_object --input '{
  "workspace": "example",
  "name": "Example",
  "plural": "example"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "data": {
      "type": "schema",
      "id": "id_123",
      "attributes": {}
    }
  }
}
```

Use `deepline describe clarify_create_custom_object --json` for the latest machine-readable contract.

## Input reference

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`).

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.silent` | `boolean` | No | — | When true, suppresses in-app and Slack notifications for this mutation. |
| `payload.name` | `string` | Yes | — | The name will be normalized to a c\_ prefixed identifier (e.g., "Sales Order" becomes "c\_sales\_order") Minimum length: 1. Maximum length: 32. |
| `payload.plural` | `string` | Yes | — | The plural name will be used to display the object type in the UI Minimum length: 1. Maximum length: 32. |
| `payload.description` | `string` | No | — | The description is stored as AI context for this object type Maximum length: 256. |
| `payload.icon` | `"Box" \| "Package" \| "FileText" \| "Folder" \| "Ticket" \| "Briefcase" \| "Store" \| "Component" \| "Layers" \| "MapPin" \| "Globe" \| "BankNote" \| "CreditCard" \| "Receipt" \| "ShoppingCart" \| "Car" \| "Truck" \| "Book" \| "GraduationCap" \| "Shield" \| "Key" \| "Megaphone" \| "Flag" \| "Target" \| "Trophy" \| "Rocket" \| "Zap" \| "Phone" \| "Image" \| "Tag" \| "Wrench" \| "Heart" \| "Users" \| "Handshake" \| "Database" \| "FlaskConical"` | No | — | Icon name for the object avatar. Must be one of the curated avatar icon names (xClarifyPresentation.icon). Allowed: `Box`, `Package`, `FileText`, `Folder`, `Ticket`, `Briefcase`, `Store`, `Component`, `Layers`, `MapPin`, `Globe`, `BankNote`, `CreditCard`, `Receipt`, `ShoppingCart`, `Car`, `Truck`, `Book`, `GraduationCap`, `Shield`, `Key`, `Megaphone`, `Flag`, `Target`, `Trophy`, `Rocket`, `Zap`, `Phone`, `Image`, `Tag`, `Wrench`, `Heart`, `Users`, `Handshake`, `Database`, `FlaskConical`. |
| `payload.backgroundColor` | `"red" \| "orange" \| "amber" \| "yellow" \| "lime" \| "green" \| "emerald" \| "teal" \| "cyan" \| "sky" \| "blue" \| "indigo" \| "violet" \| "purple" \| "fuchsia" \| "pink" \| "rose" \| "neutral"` | No | — | Background color for the object avatar. A Tailwind color name rendered at the 500 shade (xClarifyPresentation.backgroundColor). Allowed: `red`, `orange`, `amber`, `yellow`, `lime`, `green`, `emerald`, `teal`, `cyan`, `sky`, `blue`, `indigo`, `violet`, `purple`, `fuchsia`, `pink`, `rose`, `neutral`. |
| `payload.properties` | `record` | No | — | Initial fields for the object, keyed by field name and valued by JSON Schema. Built-in system fields are always added and cannot be overridden. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "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`).",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "silent": {
        "type": "boolean",
        "description": "When true, suppresses in-app and Slack notifications for this mutation."
      },
      "name": {
        "type": "string",
        "description": "The name will be normalized to a c_ prefixed identifier (e.g., \"Sales Order\" becomes \"c_sales_order\")",
        "minLength": 1,
        "maxLength": 32
      },
      "plural": {
        "type": "string",
        "description": "The plural name will be used to display the object type in the UI",
        "minLength": 1,
        "maxLength": 32
      },
      "description": {
        "type": "string",
        "description": "The description is stored as AI context for this object type",
        "maxLength": 256
      },
      "icon": {
        "type": "string",
        "description": "Icon name for the object avatar. Must be one of the curated avatar icon names (xClarifyPresentation.icon).",
        "enum": [
          "Box",
          "Package",
          "FileText",
          "Folder",
          "Ticket",
          "Briefcase",
          "Store",
          "Component",
          "Layers",
          "MapPin",
          "Globe",
          "BankNote",
          "CreditCard",
          "Receipt",
          "ShoppingCart",
          "Car",
          "Truck",
          "Book",
          "GraduationCap",
          "Shield",
          "Key",
          "Megaphone",
          "Flag",
          "Target",
          "Trophy",
          "Rocket",
          "Zap",
          "Phone",
          "Image",
          "Tag",
          "Wrench",
          "Heart",
          "Users",
          "Handshake",
          "Database",
          "FlaskConical"
        ]
      },
      "backgroundColor": {
        "type": "string",
        "description": "Background color for the object avatar. A Tailwind color name rendered at the 500 shade (xClarifyPresentation.backgroundColor).",
        "enum": [
          "red",
          "orange",
          "amber",
          "yellow",
          "lime",
          "green",
          "emerald",
          "teal",
          "cyan",
          "sky",
          "blue",
          "indigo",
          "violet",
          "purple",
          "fuchsia",
          "pink",
          "rose",
          "neutral"
        ]
      },
      "properties": {
        "type": "object",
        "description": "Initial fields for the object, keyed by field name and valued by JSON Schema. Built-in system fields are always added and cannot be overridden.",
        "additionalProperties": {
          "type": "object",
          "description": "A JSON Schema field definition for the object.",
          "properties": {},
          "additionalProperties": true
        }
      }
    },
    "required": [
      "workspace",
      "name",
      "plural"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | Yes | — | The resource. |
| `result.data.data.type` | `"schema"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `schema`. |
| `result.data.data.id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data.attributes` | `record` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data.relationships` | `object` | No | — | Related resources keyed by relationship name, present when requested via `include`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "object",
            "description": "The resource.",
            "properties": {
              "type": {
                "type": "string",
                "description": "The resource type; matches the `object` path parameter.",
                "enum": [
                  "schema"
                ]
              },
              "id": {
                "type": "string",
                "description": "The unique ID of the resource."
              },
              "attributes": {
                "type": "object",
                "description": "Field values keyed by field name; available fields depend on the object’s schema.",
                "additionalProperties": {}
              },
              "relationships": {
                "type": "object",
                "description": "Related resources keyed by relationship name, present when requested via `include`.",
                "properties": {},
                "additionalProperties": false
              }
            },
            "required": [
              "type",
              "id",
              "attributes"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.