Skip to main content
POST
Resume the AI for a lead

Authorizations

Authorization
string
header
required

The API key, created in Settings › API, in the header Authorization: Bearer . The default.

Path Parameters

lead_id
string<uuid>
required

The lead id.

Response

The lead, with ai_paused false.

object
string
required
Allowed value: "lead"
id
string<uuid>
required
text_agent_id
string<uuid> | null
required

null if the lead belongs to a voice agent with no text agent.

voice_agent_id
string<uuid> | null
required

The voice agent, if the lead belongs to a voice agent with no text agent.

contact_id
string<uuid>
required

The person: several leads (one per channel) can be the same person.

name
string | null
required
phone
string | null
required

In E.164.

Pattern: ^\+[1-9]\d{6,14}$
email
string | null
required

The email address, if it is in the lead's variables (email, correo...), resolved the same way as in webhooks.

username
string | null
required

The Instagram username.

channel
enum<string>
required
Available options:
whatsapp,
instagram,
webchat,
email,
meta_ads,
voice
status
enum<string>
required
Available options:
active,
inactive,
pending,
closed
source
object
required

Where the lead came from; the same block as in webhooks.

summary
string | null
required
variables
object
required

The customer variables. Platform variables are not returned.

qualification
object
required
do_not_contact
boolean
required

The lead asked not to be contacted.

has_replied
boolean
required
ai_paused
boolean
required
ai_paused_until
string<date-time> | null
required

When the AI resumes; null if the pause has no end or there is no pause.

messaging_window_expires_at
string<date-time> | null
required

End of the 24-hour window for free-form text. On WhatsApp and Instagram, a past value means the window is closed. On other channels it does not apply and is null.

created_at
string<date-time>
required
last_activity_at
string<date-time>
required

The last message or call; the creation time if there is none.