
# Create Record

```
POST /api/v1/records
```

Creates a record. Values sent here are recorded in its history with cause `initial_load`. If any key is unknown or retired, nothing is created.

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

## Request Body

| Field | Type | Required | Description |
|---|---|---|---|
| `object` | number | Yes | The object the record belongs to |
| `values` | object | No | Golden values keyed by field key |

## Example Request

```bash
curl -X POST "https://mdm.finopsbricks.com/api/v1/records" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "object": 1,
    "values": {
      "name": "Acme Supplies Private Limited",
      "gstin": "29ABCDE1234F1Z5",
      "bank_ifsc": "HDFC0001234"
    }
  }'
```

## Response

`201 Created`

```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"
  }
}
```

## Errors

| Status | Code | When |
|---|---|---|
| 400 | `VALIDATION_ERROR` | `object` is missing, or `values` names an unknown field (`details.fields` lists the valid keys) |
| 401 | `UNAUTHORIZED` | Missing, wrong or expired API credentials |
| 403 | `FORBIDDEN` | The key lacks `records:create` permission |
| 404 | `NOT_FOUND` | No such object in your organization |
| 422 | `FIELD_RETIRED` | `values` includes a retired field |

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