GET
/
v1
/
models
/
{modelId}
/
fields
const options = {
  method: 'GET',
  headers: {
    'x-api-key': '<api-key>',
    'x-api-secret': '<api-key>',
    'x-connector-id': '<api-key>',
    'x-owner-id': '<api-key>',
    'x-session-token': '<api-key>'
  }
};

fetch('https://api.runmorph.dev/v1/models/{modelId}/fields', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
{
  "data": [
    {
      "key": "<string>",
      "name": "<string>",
      "description": "<string>",
      "type": "text",
      "format": "<string>",
      "unit": "<string>",
      "optionSource": "<string>",
      "options": [
        {
          "value": "<string>",
          "name": "<string>"
        }
      ],
      "isRequired": true,
      "isFieldReadOnly": true,
      "isValueReadOnly": true,
      "isCustom": true,
      "remote": {
        "key": "<string>",
        "metadata": {}
      }
    }
  ],
  "next": "<string>"
}

Authorizations

x-api-key
string
header
required
x-api-secret
string
header
required
x-connector-id
string
header
required
x-owner-id
string
header
required
x-session-token
string
header
required

Path Parameters

modelId
enum<string>
required
Available options:
genericCompany,
genericContact,
genericUser,
genericWorkspace,
crmOpportunity,
crmStage,
crmPipeline,
crmEngagement,
telephonyCall,
telephonyCallTranscript,
schedulingEventType,
schedulingSlot,
schedulingEvent,
widgetCardView

Query Parameters

limit
string
cursor
string
filters
object

Response

200
application/json

OK

The response is of type object.