
# List Records

```
GET /api/v1/records
```

Returns an object's records, oldest first. Each carries every active field's value, `null` where it's blank.

CLI: [`fob-mdm records list`](/docs/cli/records#records-list)

## Query Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `object` | number | required | The object whose records to list |
| `values.<key>` | string |  | Exact match on a golden value, e.g. `values.gstin=29ABCDE1234F1Z5`. Repeat for several fields |
| `page` | number | `1` | Page number |
| `limit` | number | `100` | Items per page (max 500) |
| `fields` | string | `all` | Comma-separated fields to return |

## Example Request

```bash
curl -X GET "https://mdm.finopsbricks.com/api/v1/records?object=1&values.gstin=29ABCDE1234F1Z5" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET"
```

## Response

`200 OK`

```json
{
  "data": [
    {
      "id": 100,
      "object": 1,
      "values": {
        "name": "Acme Supplies Private Limited",
        "gstin": "29ABCDE1234F1Z5",
        "bank_ifsc": "HDFC0001234"
      },
      "created_at": "2026-11-26T07:20:08.000Z",
      "updated_at": "2026-11-26T07:20:08.000Z"
    }
  ],
  "page_context": {
    "count": 1,
    "page": 1,
    "per_page": 100,
    "total": 1,
    "has_more": false
  }
}
```

## Errors

| Status | Code | When |
|---|---|---|
| 400 | `VALIDATION_ERROR` | `object` is missing, or a `values.<key>` names an unknown field |
| 401 | `UNAUTHORIZED` | Missing, wrong or expired API credentials |
| 403 | `FORBIDDEN` | The key lacks `records:read` permission |
| 404 | `NOT_FOUND` | No such object in your organization |

See [Errors](/docs/api/errors) for the envelope.
