List Fields

GET /api/v1/objects/:id/fields

Returns an object's fields in the order they show on a record. Retired fields are left out unless you ask for them.

CLI: fob-mdm fields list

Path Parameters

ParameterTypeDescription
idnumberObject id

Query Parameters

ParameterTypeDefaultDescription
include_retiredbooleanfalsetrue to include retired fields
pagenumber1Page number
limitnumber100Items per page (max 500)
fieldsstringallComma-separated fields to return

Example Request

curl -X GET "https://mdm.finopsbricks.com/api/v1/objects/1/fields" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET"

Response

200 OK

{
  "data": [
    {
      "id": 11,
      "object": 1,
      "key": "gstin",
      "label": "GSTIN",
      "type": "text",
      "required": false,
      "is_identity": true,
      "position": 2,
      "retired_at": null,
      "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

StatusCodeWhen
401UNAUTHORIZEDMissing, wrong or expired API credentials
403FORBIDDENThe key lacks fields:read permission
404NOT_FOUNDNo such object in your organization

See Errors for the envelope.

Using an AI agent? Give it the raw Markdown of this page, or the docs index.