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

> Import a document into Sybill from exactly one of a url Sybill fetches or base64 content. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Import a document into Sybill from exactly one of a url Sybill fetches or base64 content.

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

## 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_document',
  {
    "id": "id_123",
    "sourceId": "123e4567-e89b-42d3-a456-426614174000"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run sybill_import_document --input '{
  "id": "id_123",
  "sourceId": "123e4567-e89b-42d3-a456-426614174000"
}'
```

## 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_document --json` for the latest machine-readable contract.

## Input reference

Import a document. Requires the **Import** permission (`ingest` scope). Provide exactly one of `url` or base64-encoded `content`. A `201 Created` response confirms acceptance for asynchronous conversion and indexing. search and AI features may not include the document 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 \| null` | No | — | — |
| `payload.updatedAt` | `string \| integer \| number \| null` | No | — | — |
| `payload.public` | `boolean` | No | `false` | — |
| `payload.ownerEmails` | `array` | No | — | — |
| `payload.displayName` | `string` | No | — | — |
| `payload.url` | `string` | No | — | — |
| `payload.content` | `string` | No | — | — |
| `payload.filename` | `string` | No | — | — |
| `payload.contentType` | `string` | No | `"text/plain"` | — |
| `payload.author` | `object` | No | — | — |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Import a document. Requires the **Import** permission (`ingest` scope). Provide exactly one of `url` or base64-encoded `content`. A `201 Created` response confirms acceptance for asynchronous conversion and indexing; search and AI features may not include the document immediately.",
    "properties": {
      "version": {
        "type": "integer",
        "default": 1
      },
      "id": {
        "type": "string"
      },
      "sourceId": {
        "type": "string",
        "format": "uuid"
      },
      "createdAt": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ]
      },
      "updatedAt": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "null"
          }
        ]
      },
      "public": {
        "type": "boolean",
        "default": false
      },
      "ownerEmails": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "displayName": {
        "type": [
          "string",
          "null"
        ]
      },
      "url": {
        "type": [
          "string",
          "null"
        ]
      },
      "content": {
        "type": [
          "string",
          "null"
        ]
      },
      "filename": {
        "type": [
          "string",
          "null"
        ]
      },
      "contentType": {
        "type": "string",
        "default": "text/plain"
      },
      "author": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "version": {
            "type": "integer",
            "default": 1
          },
          "id": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "id",
      "sourceId"
    ],
    "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.