> ## 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: List Deals

> Find CRM deals and opportunities in Sybill by name, stage, owner, open or closed status, close date, amount or last activity. Returns one cursor page.

Find CRM deals and opportunities in Sybill by name, stage, owner, open or closed status, close date, amount or last activity.

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

## 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_list_deals',
  {
    "name": "Example",
    "stage": "example",
    "closed": false
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run sybill_list_deals --input '{
  "name": "Example",
  "stage": "example",
  "closed": false
}'
```

## 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": {
    "deals": [
      {
        "dealId": "deal_123"
      }
    ],
    "pagination": {
      "nextCursor": "cursor_123",
      "hasMore": false
    }
  }
}
```

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

## Input reference

List CRM deals available to the API key's organization. Requires the **Export** permission (`read` scope). Results use cursor-based pagination.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.name` | `string` | No | — | Filter deals by name (case-insensitive partial match) |
| `payload.stage` | `string` | No | — | Filter by pipeline stage name (case-insensitive partial match) |
| `payload.closed` | `boolean` | No | — | Filter by closed status: true for won/lost deals, false for open |
| `payload.owner` | `string` | No | — | Filter by deal owner name (case-insensitive partial match) |
| `payload.closeDateBefore` | `string` | No | — | Upper bound for close date (ISO 8601, e.g. 2025-06-30T00:00:00Z) |
| `payload.closeDateAfter` | `string` | No | — | Lower bound for close date (ISO 8601) |
| `payload.amountMin` | `number` | No | — | Minimum deal amount |
| `payload.amountMax` | `number` | No | — | Maximum deal amount |
| `payload.lastActivityBefore` | `string` | No | — | Upper bound for last activity date (ISO 8601) |
| `payload.lastActivityAfter` | `string` | No | — | Lower bound for last activity date (ISO 8601) |
| `payload.limit` | `integer` | No | `20` | Maximum number of results per page (1-50) Minimum: 1. Maximum: 50. |
| `payload.cursor` | `string` | No | — | Opaque pagination cursor from a previous response |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "List CRM deals available to the API key's organization. Requires the **Export** permission (`read` scope). Results use cursor-based pagination.",
    "properties": {
      "name": {
        "type": [
          "string",
          "null"
        ],
        "description": "Filter deals by name (case-insensitive partial match)"
      },
      "stage": {
        "type": [
          "string",
          "null"
        ],
        "description": "Filter by pipeline stage name (case-insensitive partial match)"
      },
      "closed": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "Filter by closed status: true for won/lost deals, false for open"
      },
      "owner": {
        "type": [
          "string",
          "null"
        ],
        "description": "Filter by deal owner name (case-insensitive partial match)"
      },
      "closeDateBefore": {
        "type": [
          "string",
          "null"
        ],
        "description": "Upper bound for close date (ISO 8601, e.g. 2025-06-30T00:00:00Z)"
      },
      "closeDateAfter": {
        "type": [
          "string",
          "null"
        ],
        "description": "Lower bound for close date (ISO 8601)"
      },
      "amountMin": {
        "type": [
          "number",
          "null"
        ],
        "description": "Minimum deal amount"
      },
      "amountMax": {
        "type": [
          "number",
          "null"
        ],
        "description": "Maximum deal amount"
      },
      "lastActivityBefore": {
        "type": [
          "string",
          "null"
        ],
        "description": "Upper bound for last activity date (ISO 8601)"
      },
      "lastActivityAfter": {
        "type": [
          "string",
          "null"
        ],
        "description": "Lower bound for last activity date (ISO 8601)"
      },
      "limit": {
        "type": "integer",
        "description": "Maximum number of results per page (1-50)",
        "default": 20,
        "minimum": 1,
        "maximum": 50
      },
      "cursor": {
        "type": [
          "string",
          "null"
        ],
        "description": "Opaque pagination cursor from a previous response"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.deals` | `array` | Yes | — | — |
| `result.data.deals[].dealId` | `string` | Yes | — | — |
| `result.data.deals[].name` | `string \| null` | No | — | — |
| `result.data.deals[].accountName` | `string \| null` | No | — | — |
| `result.data.deals[].stage` | `string \| null` | No | — | — |
| `result.data.deals[].pipeline` | `string \| null` | No | — | — |
| `result.data.deals[].amount` | `number \| null` | No | — | — |
| `result.data.deals[].closeDate` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.deals[].closed` | `boolean \| null` | No | — | — |
| `result.data.deals[].createdDate` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.deals[].lastActivityDate` | `string \| null` | No | — | Format: `date-time`. |
| `result.data.deals[].owner` | `object \| null` | No | — | — |
| `result.data.deals[].owner.name` | `string \| null` | No | — | — |
| `result.data.deals[].owner.email` | `string \| null` | No | — | — |
| `result.data.pagination` | `object` | Yes | — | Cursor-based pagination metadata returned alongside list responses. All public-API list endpoints emit the same shape: pass `next_cursor` back as the `cursor` query parameter to fetch the next page. check `has_more` to know whether more pages exist. |
| `result.data.pagination.nextCursor` | `string \| null` | No | — | — |
| `result.data.pagination.hasMore` | `boolean` | No | `false` | — |
| `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": {
          "deals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "dealId": {
                  "type": "string"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "accountName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "stage": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pipeline": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "amount": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "closeDate": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "closed": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "createdDate": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "lastActivityDate": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "owner": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "dealId"
              ],
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "description": "Cursor-based pagination metadata returned alongside list responses. All public-API list endpoints emit the same shape: pass ``next_cursor`` back as the ``cursor`` query parameter to fetch the next page; check ``has_more`` to know whether more pages exist.",
            "properties": {
              "nextCursor": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "hasMore": {
                "type": "boolean",
                "default": false
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "deals",
          "pagination"
        ],
        "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.