# Returns pet inventories by status.

Returns a map of status codes to quantities.

[Returns pet inventories by status.](https://clay-doc.github.io/clay-example-repo/api/petstore/store/get-inventory.md)

```sh
curl 'https://petstore3.swagger.io/api/v3/store/inventory' \
  -H 'api_key: <api_key>'
```
## Authentication

::: fields
- `api_key`

  [API key in the header `api_key`](https://clay-doc.github.io/clay-example-repo/api/petstore.md#authentication)
:::

## Responses

::: tabs status
== 200

successful operation

:badge[application/json]{note} · Type: map of integer (int32)

```json [Example]
{
  "key": 0
}
```

== default

Unexpected error
:::

---

All pages of these docs, as Markdown for language models: https://clay-doc.github.io/clay-example-repo/llms.txt
