انتقل إلى المحتوى الرئيسي

List the agent's lead fields

GET 

/v1/agents/:agentId/lead-fields

x-scope: "leads:read"

The agent's lead form in display order. The field keyed status lists the agent's lead statuses as its options. If the list has no status field, or that field has no options, the agent uses the statuses new, processing and completed, and a new lead starts in new. Fields with built_in: false are the ones your team added; their keys are what custom_fields is for, and createLeadField, updateLeadField and deleteLeadField change them. Of the built-in fields, which the API can't change, name, phone, summary and status are the lead's writable properties, assigned_to is set with assignLead, created_at is read-only, and notes is the contact's timeline (listContactNotes). A value written to a number, currency, boolean, date, datetime or timestamp field must fit that type (422 invalid_request); keys, options and required are not checked, so validate those before you write.

Request​

Responses​

Every lead field.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.