> This page is optimized for agents. Use the linked Markdown pages and llms.txt indexes for related API content.

# Get CAT pincodes

> Fetches CAT pincodes by reservation id & token.

- Product: Cat
- Section: Integration - CAT
- Snapshot: Current
- Method: `GET`
- Path: `/api/cat/reservations/`

## Query parameters

### `reservation`

Type: `number`  
Required: yes  

### `token`

Type: `string`  
Required: yes  

## Execute with TypeScript

Package: `@recranet/sdk`  

```ts
import { RecranetApiClient } from "@recranet/sdk";

const client = new RecranetApiClient({ apiKey: process.env.RECRANET_API_KEY! });

const result = await client.cat.reservations.list({
  reservation: 0,
  token: "<token>",
});
```

## Execute with curl

```bash
curl "https://app.recranet.com/api/cat/reservations/" \
    -H "X-Api-Key: $RECRANET_API_KEY" \
    --url-query "reservation=$RESERVATION" \
    --url-query "token=$TOKEN"
```

## Responses

### Response `200`

Category: success  

Successful response

#### `application/json`

##### Generated example

```json
{
  "id": 0,
  "reservation": {
    "id": 1000
  },
  "pincode": "12345678"
}
```

##### Schema

###### CATReservation

Type: `CATReservation`  

###### `id`

Type: `number`  
Required: yes  

###### `pincode`

Type: `string`  
Required: no  

###### `reservation`

Type: `object`  
Required: yes  

###### `id`

Type: `number`  
Required: no  

### Response `400`

Category: client-error  

Bad request

#### `application/json`

##### Example

```json
{
  "statusCode": 400,
  "description": "Bad request",
  "errors": [
    "Bad request"
  ]
}
```

##### Schema

###### object

Type: `object`  

## Related representations

- [Human documentation](/cat/reservations/methods/list/)
- [TypeScript Markdown](/cat/reservations/methods/list.md?lang=typescript)
- [curl Markdown](/cat/reservations/methods/list.md?lang=curl)
- [site llms.txt](/llms.txt)
- [product llms.txt](/cat/llms.txt)
- [snapshot llms.txt](/cat/llms.txt)
