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

> Get one Sybill document’s details by document id, including its name, source, URL and content type. Includes SDK V2 examples, schemas, and cost.

Get one Sybill document’s details by document id, including its name, source, URL and content type.

> [!NOTE]
>
> Tool ID: `sybill_get_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_get_document',
  {
    "documentId": "123e4567-e89b-42d3-a456-426614174000"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run sybill_get_document --input '{
  "documentId": "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": {
    "id": "id_123",
    "displayName": "Example",
    "sourceId": "source_123",
    "remoteId": "remote_123",
    "contentType": "example"
  }
}
```

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

## Input reference

Return the available details for one organization-visible document. Requires the **Export** permission (`read` scope). Private documents owned by individual users are excluded.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.documentId` | `string` | Yes | — | Format: `uuid`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Return the available details for one organization-visible document. Requires the **Export** permission (`read` scope). Private documents owned by individual users are excluded.",
    "properties": {
      "documentId": {
        "type": "string",
        "format": "uuid"
      }
    },
    "required": [
      "documentId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Document view returned by `GET /v1/documents/&#123;documentId&#125;`. |
| `result.data.id` | `string` | Yes | — | — |
| `result.data.displayName` | `string` | Yes | — | — |
| `result.data.sourceId` | `string` | Yes | — | — |
| `result.data.remoteId` | `string` | Yes | — | — |
| `result.data.url` | `string \| null` | No | — | — |
| `result.data.contentType` | `string` | Yes | — | — |
| `result.data.createdAt` | `string \| null` | No | — | — |
| `result.data.updatedAt` | `string \| null` | No | — | — |
| `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": "Document view returned by ``GET /v1/documents/{documentId}``.",
        "properties": {
          "id": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          },
          "remoteId": {
            "type": "string"
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          },
          "contentType": {
            "type": "string"
          },
          "createdAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "displayName",
          "sourceId",
          "remoteId",
          "contentType"
        ],
        "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.