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

> Get one Sybill email or CRM message by messageId with its full body, sender, recipients and attachment details. Includes SDK V2 examples, schemas, and cost.

Get one Sybill email or CRM message by messageId with its full body, sender, recipients and attachment details.

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

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run sybill_get_message --input '{
  "messageId": "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": {
    "messageId": "123e4567-e89b-42d3-a456-426614174000",
    "sourceId": "source_123",
    "remoteId": "remote_123",
    "threadId": "thread_123",
    "sender": {
      "name": "Example",
      "email": "jane.doe@example.com"
    },
    "recipients": [
      {
        "name": "Example",
        "email": "jane.doe@example.com"
      }
    ],
    "bodyPreview": "example",
    "createdAt": "2026-01-15T12:00:00Z",
    "body": "Example message"
  }
}
```

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

## Input reference

Return the available details for one organization-visible message. Includes its body and attachment metadata. Requires the **Export** permission (`read` scope). Private messages owned by individual users are excluded.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.messageId` | `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 message. Includes its body and attachment metadata. Requires the **Export** permission (`read` scope). Private messages owned by individual users are excluded.",
    "properties": {
      "messageId": {
        "type": "string",
        "format": "uuid"
      }
    },
    "required": [
      "messageId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Full message returned by the per-id getter. |
| `result.data.messageId` | `string` | Yes | — | Format: `uuid`. |
| `result.data.sourceId` | `string` | Yes | — | — |
| `result.data.remoteId` | `string \| null` | Yes | — | — |
| `result.data.threadId` | `string \| null` | Yes | — | — |
| `result.data.subject` | `string \| null` | No | — | — |
| `result.data.sender` | `object \| null` | Yes | — | A message participant — sender or one of the recipients. |
| `result.data.sender.name` | `string \| null` | No | — | — |
| `result.data.sender.email` | `string \| null` | No | — | — |
| `result.data.recipients` | `array` | Yes | — | — |
| `result.data.recipients[].name` | `string \| null` | No | — | — |
| `result.data.recipients[].email` | `string \| null` | No | — | — |
| `result.data.bodyPreview` | `string` | Yes | — | — |
| `result.data.createdAt` | `string` | Yes | — | Format: `date-time`. |
| `result.data.body` | `string` | Yes | — | — |
| `result.data.attachments` | `array` | No | — | — |
| `result.data.attachments[].id` | `string` | Yes | — | Format: `uuid`. |
| `result.data.attachments[].filename` | `string \| null` | No | — | — |
| `result.data.attachments[].contentType` | `string \| null` | No | — | — |
| `result.data.attachments[].size` | `integer \| 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": "Full message returned by the per-id getter.",
        "properties": {
          "messageId": {
            "type": "string",
            "format": "uuid"
          },
          "sourceId": {
            "type": "string"
          },
          "remoteId": {
            "type": [
              "string",
              "null"
            ]
          },
          "threadId": {
            "type": [
              "string",
              "null"
            ]
          },
          "subject": {
            "type": [
              "string",
              "null"
            ]
          },
          "sender": {
            "type": [
              "object",
              "null"
            ],
            "description": "A message participant — sender or one of the recipients.",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          },
          "recipients": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "A message participant — sender or one of the recipients.",
              "properties": {
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "bodyPreview": {
            "type": "string"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "body": {
            "type": "string"
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Trimmed attachment info exposed on the message detail endpoint.",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "filename": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "contentType": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "size": {
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "id"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "messageId",
          "sourceId",
          "remoteId",
          "threadId",
          "sender",
          "recipients",
          "bodyPreview",
          "createdAt",
          "body"
        ],
        "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.