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

# Pipedrive: Get Lead Conversion Status

> Check the status of a Pipedrive lead-to-deal conversion and get the new deal ID. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Check the status of a Pipedrive lead-to-deal conversion and get the new deal ID.

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

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

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute pipedrive_get_lead_conversion_status --input '{
  "id": "123e4567-e89b-42d3-a456-426614174000",
  "conversion_id": "123e4567-e89b-42d3-a456-426614174000"
}' --json
```

## 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": {
    "success": true,
    "data": {
      "conversion_id": "123e4567-e89b-42d3-a456-426614174000",
      "status": "not_started"
    }
  }
}
```

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

## Input reference

Returns data about the conversion. Status is always present and its value (not\_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `string` | Yes | — | The ID of a lead Format: `uuid`. |
| `payload.conversion_id` | `string` | Yes | — | The ID of the conversion Format: `uuid`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns data about the conversion. Status is always present and its value (not_started, running, completed, failed, rejected) represents the current state of the conversion. Deal ID is only present if the conversion was successfully finished. This data is only temporary and removed after a few days.",
    "properties": {
      "id": {
        "type": "string",
        "description": "The ID of a lead",
        "format": "uuid"
      },
      "conversion_id": {
        "type": "string",
        "description": "The ID of the conversion",
        "format": "uuid"
      }
    },
    "required": [
      "id",
      "conversion_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.success` | `boolean` | Yes | — | — |
| `result.data.data` | `object` | Yes | — | An object containing conversion status. After successful conversion the converted entity ID is also present. |
| `result.data.data.lead_id` | `string` | No | — | The ID of the new lead. Format: `uuid`. |
| `result.data.data.deal_id` | `integer` | No | — | The ID of the new deal. |
| `result.data.data.conversion_id` | `string` | Yes | — | The ID of the conversion job. The ID can be used to retrieve conversion status and details. The ID has UUID format. Format: `uuid`. |
| `result.data.data.status` | `"not_started" \| "running" \| "completed" \| "failed" \| "rejected"` | Yes | — | Status of the conversion job. Allowed: `not_started`, `running`, `completed`, `failed`, `rejected`. |
| `result.data.additional_data` | `object \| 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": "Provider response payload.",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "data": {
            "type": "object",
            "description": "An object containing conversion status. After successful conversion the converted entity ID is also present.",
            "properties": {
              "lead_id": {
                "type": "string",
                "description": "The ID of the new lead.",
                "format": "uuid"
              },
              "deal_id": {
                "type": "integer",
                "description": "The ID of the new deal."
              },
              "conversion_id": {
                "type": "string",
                "description": "The ID of the conversion job. The ID can be used to retrieve conversion status and details. The ID has UUID format.",
                "format": "uuid"
              },
              "status": {
                "type": "string",
                "description": "Status of the conversion job.",
                "enum": [
                  "not_started",
                  "running",
                  "completed",
                  "failed",
                  "rejected"
                ]
              }
            },
            "required": [
              "conversion_id",
              "status"
            ],
            "additionalProperties": false
          },
          "additional_data": {
            "type": [
              "object",
              "null"
            ]
          }
        },
        "required": [
          "success",
          "data"
        ],
        "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

* [Pipedrive provider guide](https://deepline.com/docs/providers/pipedrive/guide.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.