Endpoints

List objects, fields, and relationships from your Salesforce metadata dictionary.

The Read API exposes four GET endpoints over your dictionary. All responses are wrapped in a data envelope and contain metadata only — never record data.

Authentication required

Every request requires a bearer token, and the Read API requires a Business plan. See Authentication.

The field object

Several endpoints return field objects. A field has the following shape:

json
{
  "api_name": "Industry__c",
  "label": "Industry",
  "data_type": "picklist",
  "length": 255,
  "is_required": false,
  "is_unique": false,
  "is_external_id": false,
  "is_custom": true,
  "is_calculated": false,
  "description": "Primary industry segment.",
  "help_text": "Pick the closest match.",
  "picklist_values": ["Technology", "Finance", "Healthcare"],
  "value_set_name": "Industry_Global",
  "relationship": null,
  "last_changed_at": "2026-06-12T09:31:00Z"
}

relationship is an object for lookup and reference fields, and null otherwise.

List objects

http
GET /api/v1/objects

Returns every object in your dictionary.

bash
curl https://api.schemaforce.com/v1/objects \
  -H "Authorization: Bearer sk_live_…"

Retrieve an object

http
GET /api/v1/objects/{apiName}

Returns a single object along with its fields array.

bash
curl https://api.schemaforce.com/v1/objects/Account \
  -H "Authorization: Bearer sk_live_…"

An unknown object returns 404.

List fields

http
GET /api/v1/fields?object={apiName}

Returns the fields for one object. The object query param is required; omitting it returns 400.

bash
curl "https://api.schemaforce.com/v1/fields?object=Account" \
  -H "Authorization: Bearer sk_live_…"

An unknown object returns 404.

List relationships

http
GET /api/v1/relationships?object={apiName}

Returns the relationships for one object, split into the objects it looks_up_to and the objects that reference it (referenced_by). The object query param is required; omitting it returns 400.

bash
curl "https://api.schemaforce.com/v1/relationships?object=Contact" \
  -H "Authorization: Bearer sk_live_…"

An unknown object returns 404.

Errors

StatusMeaning
401Missing, invalid, or revoked API key.
403Account is not on the Business plan.
404Unknown object.
400Bad query param (e.g. missing required object).
Was this page helpful?