Skip to main content

Add a lead field

POST 

/v1/agents/:agentId/lead-fields

x-scope: "leads:write"

Adds a custom field to the agent's lead form, after its other custom fields, shown in the dashboard's table and form. The built-in status, assigned_to, notes and created_at come last on an agent whose fields were never reordered, so the new field goes before them. The AI's lead capture starts collecting it in the background, usually within a minute: the label tells the AI what to ask for, and required makes it treat the field as needed before it saves a lead. A reserved key is 422 invalid_request (see key); any other key the agent already has, built-in fields included, is 409 field_key_taken; an agent that already has 50 custom fields is 422 lead_field_limit_reached.

Request​

Responses​

The lead field.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.