> ## 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.

# Sybill: Create Object Type

> Create a Sybill object type that defines the typed fields of custom rows under a source. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Create a Sybill object type that defines the typed fields of custom rows under a source.

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

## 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(
  'sybill_create_object_type',
  {
    "sourceId": "123e4567-e89b-42d3-a456-426614174000",
    "name": "Example",
    "displayName": "Example",
    "fieldDefinitions": [
      {
        "name": "Example",
        "fieldType": "textarea"
      }
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run sybill_create_object_type --input '{
  "sourceId": "123e4567-e89b-42d3-a456-426614174000",
  "name": "Example",
  "displayName": "Example",
  "fieldDefinitions": [
    {
      "name": "Example",
      "fieldType": "textarea"
    }
  ]
}'
```

## 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": {
    "id": "id_123",
    "sourceId": "source_123",
    "name": "Example",
    "displayName": "Example",
    "fieldDefinitions": [
      {
        "name": "Example",
        "fieldType": "example",
        "required": true
      }
    ],
    "createdAt": "2026-01-15T12:00:00Z",
    "updatedAt": "2026-01-15T12:00:00Z"
  }
}
```

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

## Input reference

Create a typed schema for custom rows within a source. Requires the **Import** permission (`ingest` scope). Field names must be unique, and each field definition declares the accepted value type.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.version` | `integer` | No | `1` | — |
| `payload.sourceId` | `string` | Yes | — | Format: `uuid`. |
| `payload.name` | `string` | Yes | — | Minimum length: 1. Maximum length: 255. |
| `payload.displayName` | `string` | Yes | — | Minimum length: 1. Maximum length: 255. |
| `payload.fieldDefinitions` | `array` | Yes | — | Minimum items: 1. Maximum items: 50. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Create a typed schema for custom rows within a source. Requires the **Import** permission (`ingest` scope). Field names must be unique, and each field definition declares the accepted value type.",
    "properties": {
      "version": {
        "type": "integer",
        "default": 1
      },
      "sourceId": {
        "type": "string",
        "format": "uuid"
      },
      "name": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "displayName": {
        "type": "string",
        "minLength": 1,
        "maxLength": 255
      },
      "fieldDefinitions": {
        "type": "array",
        "minItems": 1,
        "maxItems": 50,
        "items": {
          "type": "object",
          "properties": {
            "version": {
              "type": "integer",
              "default": 1
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "fieldType": {
              "type": "string",
              "description": "Field value types accepted by row ingestion requests.",
              "enum": [
                "textarea",
                "string",
                "boolean",
                "int",
                "double",
                "datetime",
                "date",
                "list"
              ]
            },
            "label": {
              "type": [
                "string",
                "null"
              ]
            },
            "required": {
              "type": "boolean",
              "default": false
            }
          },
          "required": [
            "name",
            "fieldType"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "sourceId",
      "name",
      "displayName",
      "fieldDefinitions"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `string` | Yes | — | — |
| `result.data.sourceId` | `string` | Yes | — | — |
| `result.data.name` | `string` | Yes | — | — |
| `result.data.displayName` | `string` | Yes | — | — |
| `result.data.fieldDefinitions` | `array` | Yes | — | — |
| `result.data.fieldDefinitions[].name` | `string` | Yes | — | — |
| `result.data.fieldDefinitions[].fieldType` | `string` | Yes | — | — |
| `result.data.fieldDefinitions[].label` | `string \| null` | No | — | — |
| `result.data.fieldDefinitions[].required` | `boolean` | Yes | — | — |
| `result.data.createdAt` | `string` | Yes | — | — |
| `result.data.updatedAt` | `string` | Yes | — | — |
| `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": {
          "id": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "fieldDefinitions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "fieldType": {
                  "type": "string"
                },
                "label": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "required": {
                  "type": "boolean"
                }
              },
              "required": [
                "name",
                "fieldType",
                "required"
              ],
              "additionalProperties": false
            }
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "sourceId",
          "name",
          "displayName",
          "fieldDefinitions",
          "createdAt",
          "updatedAt"
        ],
        "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.