---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [schemas](../index.md) / getPathKeys

# Function: getPathKeys()

> **getPathKeys**(`schema`): `string`[]

Defined in: [packages/b2c-tooling-sdk/src/schemas/collapse.ts:282](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/schemas/collapse.ts#L282)

Gets the list of available path keys from a schema.

## Parameters

### schema

The OpenAPI schema

[`OpenApiSchemaInput`](../interfaces/OpenApiSchemaInput.md) | [`CollapsedOpenApiSchema`](../interfaces/CollapsedOpenApiSchema.md)

## Returns

`string`[]

Array of path keys (e.g., ["/products", "/orders"])
