> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talkover.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get contract

> Returns one portfolio contract with its installments, payments and returns

# Get contract

Returns one contract of your portfolio by its id in your system: whether it is still in collection, the open amount, the installments, and every payment and return recorded. Available only to debt-collection workspaces in Brazil (see [Debt collection portfolio](https://docs.talkover.ai/en/api-reference/portfolio/overview.md)).

## Endpoint

```
GET /api/v1/portfolio/debts/{external_debt_id}
```

## Path parameters

**external\_debt\_id** `string` *required*

The contract id you sent in [Send portfolio](https://docs.talkover.ai/en/api-reference/portfolio/send-debts.md). URL-encode special characters: `C 10` → `C%2010`, `CT/2026/0001` → `CT%2F2026%2F0001`.

## Request headers

**Authorization** `string` *required*

Bearer token. Format: `Bearer talq_your_environment_token_here`

## Examples

```bash theme={null}
curl "https://app.talkover.ai/api/v1/portfolio/debts/C-10" \
  -H "Authorization: Bearer talq_your_environment_token_here"
```

## Response

```json theme={null}
{
  "success": true,
  "message": "Debt found.",
  "data": {
    "external_debt_id": "C-10",
    "status": "open",
    "effective_due_date": "2026-10-10",
    "open_amount": "175.00",
    "due_date": "2026-09-10",
    "amount_due": "350.00",
    "delinquent_since": "2026-08-10",
    "creditor": "Loja Centro",
    "person": { "name": "Maria Souza", "document": "52998224725" },
    "installments": [
      { "number": 1, "due_date": "2026-08-10", "amount": "175.00", "outstanding_amount": "0.00", "status": "no_balance" },
      { "number": 2, "due_date": "2026-09-10", "amount": "175.00", "outstanding_amount": "175.00", "status": "settled" },
      { "number": 3, "due_date": "2026-10-10", "amount": "175.00", "outstanding_amount": "175.00", "status": "open" }
    ],
    "payments": [
      { "id": "019a…", "installment_number": 2, "kind": "payment", "paid_at": "2026-11-09", "amount": "175.00", "method": "pix", "partial": false, "remaining_amount": null, "source": "api", "actor_name": null, "recorded_at": "2026-11-09T14:02:11+00:00" }
    ],
    "returns": [],
    "first_seen_at": "2026-11-03T09:00:00+00:00",
    "last_seen_at": "2026-11-09T09:00:00+00:00"
  }
}
```

**status** `string`

Contract status: `open` (in collection), `settled` (paid, reported by the creditor) or `returned` (returned by the creditor).

**effective\_due\_date** `string`

Date delinquency is counted from: with paid installments, the oldest open installment's. `null` once the contract left collection.

**open\_amount** `string`

Amount to collect. After a partial payment, the reported `remaining_amount`. `null` once the contract left collection.

**due\_date** `string`

Contract due date as sent in the portfolio.

**amount\_due** `string`

Overdue amount as sent in the portfolio. A payment does not change it.

**person** `object`

The person's name and document, as you sent them. `null` if the contract has no person yet.

**installments** `array`

The installments, each with a `status`: `open`, `settled`, `returned` or `no_balance` (you sent it with no balance).

**payments** `array`

Every payment recorded, in arrival order. See [Record payment](https://docs.talkover.ai/en/api-reference/portfolio/record-payment.md).

**returns** `array`

Every return recorded. See [Record return](https://docs.talkover.ai/en/api-reference/portfolio/record-return.md).

**first\_seen\_at** `string`

When the contract first arrived.

**last\_seen\_at** `string`

When the contract last came in a portfolio send.

## Error responses

| Status | When |
| - | - |
| `401` | missing or invalid token |
| `403` | the API is not enabled for the workspace |
| `404` | no contract with this id in your workspace (`"No debt with this contract id in this workspace."`) |


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