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

# Legacy numeric IDs

> Keep reading Dealroom data by legacy numeric IDs while you migrate to UUIDs.

Since API version `2026-11-19`, the Dealroom API identifies every record by UUID: companies,
investors, people, funding rounds, valuations, funds, jobs, tags and locations. Before that, records
had numeric IDs.

If your systems still store legacy numeric IDs, we can enable **legacy ID access** for your team. You
can then keep reading data by those numeric IDs, and every response also returns the legacy ID next
to the UUID, so you can map your data at your own pace.

> [!NOTE]
>
> Legacy ID access is enabled per team, on request. Contact your Dealroom account manager to turn it
> on. It applies to every API key and user of the team.

## Reading by a legacy ID

With legacy ID access, these requests accept a legacy numeric ID wherever they take a UUID:

| Request | Example |
| - | - |
| An entity by ID: companies, investors, people, universities | `/data/companies/123456` |
| An entity's sub-resources | `/data/companies/123456/funding-rounds` |
| A batch of entities | `/data/companies?filter=id[in_any]:123456\|234567` |
| A funding round, valuation, fund or job by ID | `/data/transactions/987654` |

```bash cURL theme={null}
curl "https://api.dealroom.app/data/companies/123456" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "X-Client-Id: YOUR_CLIENT_ID"
```

Everything else takes UUIDs only. Numeric IDs are refused with `400` in other filters (for example
`id[eq]`, `investor.id`, tag or location filters) and in exports, apart from the `id[in_any]` batch
above. To find the UUID of a tag or location, use
[`GET /reference/filters/{key}/values`](https://developers.dealroom.co/concepts/filtering).

## Convert a file of legacy IDs

To move stored legacy IDs to UUIDs in bulk, send up to 100 IDs at a time to
`GET /reference/legacy-ids`. It returns the UUID of each ID in the order sent, or `null` when no
record has that ID or it was deleted, and costs no credits. `type` is `entity`, `funding_round`,
`fund`, `valuation` or `job`.

```bash cURL theme={null}
curl "https://api.dealroom.app/reference/legacy-ids?type=entity&ids=123456,234567" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "X-Client-Id: YOUR_CLIENT_ID"
```

```json theme={null}
{
  "data": [
    { "legacy_id": 123456, "id": "345d1ab6-33df-4759-9e17-0d0c0ec9ab1c" },
    { "legacy_id": 234567, "id": null }
  ]
}
```

For a CSV file, the `dealroom` command-line client does the batching. It adds an `ID UUID` column
next to the `ID` column and writes the result to `export.uuids.csv`:

```bash theme={null}
dealroom legacy-ids resolve export.csv --column ID --column-type entity
```

With `--repeatable`, a cell can hold several IDs separated by `;`, or by the character you pass to
`--repeatable-separator`. To pick the column by position instead of by header, pass `--column-number` (from 1) instead of
`--column`. For a file whose fields are separated by something other than a comma, pass
`--delimiter`, for example `--delimiter ";"`; the output keeps the same delimiter.

## Legacy IDs in responses

Each record in a response carries its legacy numeric ID next to its UUID:

| Field | Holds |
| - | - |
| `legacy_id` | The record's own legacy ID, next to `id` or `uuid` |
| `<name>_legacy_id` | The legacy ID of a referenced record, e.g. `dimension_legacy_id` |
| `<name>_legacy` | The legacy IDs of a list of referenced records |

```json theme={null}
{
  "uuid": "345d1ab6-33df-4759-9e17-0d0c0ec9ab1c",
  "legacy_id": 123456,
  "name": "Example Company"
}
```

| Record | Legacy ID |
| - | - |
| Companies, investors, people, universities | The legacy entity ID |
| Funding rounds, funds, degrees, majors | The legacy ID |
| Tags (industries, sectors, technologies…) | The legacy tag ID. Client focus and investor type tags have none (`null`) |
| Locations | The legacy location ID; for regions, the legacy region ID |

Without legacy ID access, `legacy_id` on companies and other entities is always `null`, and the other
legacy fields are not returned.

## Records without a match

A few legacy IDs have no record in the current API, so reading them returns `404`:

* Some valuations, which the current API stores under a different ID.
* Companies and funding rounds deleted long ago.

## End date

Legacy ID access is meant for migration. Your team's access can have an end date, after which
numeric IDs are refused with `400`, `legacy_id` on companies and other entities returns `null`, and
the other legacy fields are no longer returned, the same as without legacy ID access.

While you use legacy IDs, responses carry a `Deprecation` header, and a `Sunset` header with the end
date once one is set. Watch for them to plan your migration:

```http theme={null}
Deprecation: 2026-11-19
Sunset: 2027-06-01
```

See [API versioning](https://developers.dealroom.co/concepts/versioning.md) for how the API handles breaking changes.


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