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

# PitchBook: Get Company Last Recent Debt Financing

> Company Most Recent Debt Financing. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Company Most Recent Debt Financing.

<Info>
  Tool ID: `pitchbook_get_company_last_recent_debt_financing`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'pitchbook_get_company_last_recent_debt_financing',
  {
    "pbId": "pb_123"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute pitchbook_get_company_last_recent_debt_financing --input '{
  "pbId": "pb_123"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "companyId": "company_123",
    "lastDebtFinancingDealId": "last_debt_financing_deal_123",
    "lastDebtFinancingDate": "2026-01-15"
  }
}
```

Use `deepline tools get pitchbook_get_company_last_recent_debt_financing --json` for the latest machine-readable contract.

## Input reference

Retrieves debt and lender data within the specific deal

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.pbId` | `string` | Yes | — | Company pbId |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Retrieves debt and lender data within the specific deal",
    "properties": {
      "pbId": {
        "type": "string",
        "description": "Company pbId"
      }
    },
    "required": [
      "pbId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.companyId` | `string` | No | — | — |
| `result.data.lastDebtFinancingDealId` | `string` | No | — | — |
| `result.data.lastDebtFinancingDate` | `string` | No | — | Format: `date`. |
| `result.data.lastDebtFinancing` | `array` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingType` | `object \| null` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingType.code` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingType.description` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingAmount` | `object \| null` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingAmount.amount` | `number` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingAmount.currency` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingAmount.nativeAmount` | `number` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingAmount.nativeCurrency` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].lastDebtFinancingAmount.estimated` | `boolean` | No | — | — |
| `result.data.lastDebtFinancing[].seniority` | `object \| null` | No | — | — |
| `result.data.lastDebtFinancing[].seniority.code` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].seniority.description` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].security` | `object \| null` | No | — | — |
| `result.data.lastDebtFinancing[].security.code` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].security.description` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].subordination` | `object \| null` | No | — | — |
| `result.data.lastDebtFinancing[].subordination.code` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].subordination.description` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].term` | `object \| null` | No | — | — |
| `result.data.lastDebtFinancing[].term.code` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].term.description` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics` | `object` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.unitranche` | `boolean \| null` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.syndicated` | `boolean \| null` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.mezzanine` | `boolean \| null` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.covLite` | `boolean \| null` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.warrants` | `boolean \| null` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.convertible` | `boolean` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.rate` | `object \| null` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.rate.code` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].additionalDebtCharacteristics.rate.description` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].lenders` | `array` | No | — | — |
| `result.data.lastDebtFinancing[].lenders[].id` | `string` | No | — | — |
| `result.data.lastDebtFinancing[].lenders[].name` | `string` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "companyId": {
            "type": "string"
          },
          "lastDebtFinancingDealId": {
            "type": "string"
          },
          "lastDebtFinancingDate": {
            "type": "string",
            "format": "date"
          },
          "lastDebtFinancing": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "lastDebtFinancingType": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "lastDebtFinancingAmount": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "amount": {
                      "type": "number"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "nativeAmount": {
                      "type": "number"
                    },
                    "nativeCurrency": {
                      "type": "string"
                    },
                    "estimated": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                },
                "seniority": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "security": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "subordination": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "term": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "additionalDebtCharacteristics": {
                  "type": "object",
                  "properties": {
                    "unitranche": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "syndicated": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "mezzanine": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "covLite": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "warrants": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "convertible": {
                      "type": "boolean"
                    },
                    "rate": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "lenders": {
                  "type": "array",
                  "items": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              "additionalProperties": false
            }
          }
        },
        "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

* [PitchBook provider guide](/docs/providers/pitchbook/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.