---
title: "Get Inventory IDs from Business Keys"
method: POST
path: "/api/inventory/v2/inventories/{schemaName}/business-keys"
tags: ["inventory-management-controller"]
---

# Get Inventory IDs from Business Keys

`POST /api/inventory/v2/inventories/{schemaName}/business-keys`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/inventory/v2/inventories/{schemaName}/business-keys`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `INVENTORY`, `INVENTORY_READ`, `INVENTORY_WRITE`

Use this API to retrieve inventory IDs for the given business keys and schema type.

### Example Request

`POST https://{hostname}/api/inventory/v2/inventories/processing-activities/business-keys`

`POST https://trial.onetrust.com/api/inventory/v2/inventories/processing-activities/business-keys`

## Path parameters

- `schemaName` 'processing-activities' | 'vendors' | 'assets' | 'entities', required

## Query parameters

- `orgGroupId` string, uuid

## Request body

- string[]

## Response `200`

OK - Successfully retrieved inventory IDs for the given business keys.

- KeyIdDto[]
  - `businessKey` string, required
  - `inventoryId` string, uuid

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation.md) - [All operations](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/privacy-automation-data-mapping-automation/revisions/daead5d9fad6?raw)
