> ## 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: Import Message

> Import an email or message into Sybill under a custom sourceId with your own id, sender, recipients and body. Includes SDK V2 examples, schemas, and cost.

Import an email or message into Sybill under a custom sourceId with your own id, sender, recipients and body.

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

## 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_import_message',
  {
    "id": "id_123",
    "sourceId": "123e4567-e89b-42d3-a456-426614174000",
    "createdAt": "2026-01-15T12:00:00Z",
    "body": "Example message",
    "sender": {
      "version": 1,
      "id": "id_123",
      "name": "Example"
    },
    "recipients": [
      {
        "version": 1,
        "id": "id_123",
        "name": "Example"
      }
    ]
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run sybill_import_message --input '{
  "id": "id_123",
  "sourceId": "123e4567-e89b-42d3-a456-426614174000",
  "createdAt": "2026-01-15T12:00:00Z",
  "body": "Example message",
  "sender": {
    "version": 1,
    "id": "id_123",
    "name": "Example"
  },
  "recipients": [
    {
      "version": 1,
      "id": "id_123",
      "name": "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": {
    "status": "created",
    "recordId": "record_123",
    "id": "id_123",
    "sourceId": "source_123"
  }
}
```

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

## Input reference

Import a message into Sybill. Requires the **Import** permission (`ingest` scope). A `201 Created` response confirms acceptance for asynchronous processing. derived fields may not be available immediately.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.version` | `integer` | No | `1` | — |
| `payload.id` | `string` | Yes | — | — |
| `payload.sourceId` | `string` | Yes | — | Format: `uuid`. |
| `payload.createdAt` | `string \| integer \| number` | Yes | — | — |
| `payload.updatedAt` | `string \| integer \| number \| null` | No | — | — |
| `payload.public` | `boolean` | No | `false` | — |
| `payload.ownerEmails` | `array` | No | — | — |
| `payload.displayName` | `string` | No | `""` | — |
| `payload.body` | `string` | Yes | — | Maximum length: 100000. |
| `payload.sender` | `object` | Yes | — | — |
| `payload.recipients` | `array` | Yes | — | Minimum items: 1. Maximum items: 1000. |
| `payload.attachments` | `array` | No | — | — |
| `payload.threadId` | `string` | No | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Import a message into Sybill. Requires the **Import** permission (`ingest` scope). A `201 Created` response confirms acceptance for asynchronous processing; derived fields may not be available immediately.",
    "properties": {
      "version": {
        "type": "integer",
        "default": 1
      },
      "id": {
        "type": "string"
      },
      "sourceId": {
        "type": "string",
        "format": "uuid"
      },
      "createdAt": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          }
        ]
      },
      "updatedAt": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ]
      },
      "public": {
        "type": "boolean",
        "default": false
      },
      "ownerEmails": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "displayName": {
        "type": "string",
        "default": ""
      },
      "body": {
        "type": "string",
        "maxLength": 100000
      },
      "sender": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "default": 1
          },
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "recipients": {
        "type": "array",
        "minItems": 1,
        "maxItems": 1000,
        "items": {
          "type": "object",
          "properties": {
            "version": {
              "type": "integer",
              "default": 1
            },
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "attachments": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "version": {
              "type": "integer",
              "default": 1
            },
            "name": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "mimeType": {
              "type": [
                "string",
                "null"
              ]
            },
            "sizeBytes": {
              "type": [
                "integer",
                "null"
              ]
            }
          },
          "required": [
            "name",
            "url"
          ],
          "additionalProperties": false
        }
      },
      "threadId": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "required": [
      "id",
      "sourceId",
      "createdAt",
      "body",
      "sender",
      "recipients"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.status` | `"created" \| "updated"` | Yes | — | Allowed: `created`, `updated`. |
| `result.data.recordId` | `string` | Yes | — | — |
| `result.data.id` | `string` | Yes | — | — |
| `result.data.sourceId` | `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": {
          "status": {
            "type": "string",
            "enum": [
              "created",
              "updated"
            ]
          },
          "recordId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "recordId",
          "id",
          "sourceId"
        ],
        "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.