Skip to main content
POST
cURL

Authorizations

x-api-key
string
header
required

Path Parameters

leadId
string
required

The ID of the lead to switch the customer profile for.

Body

application/json

The new customer profile to switch the lead to.

profile
string
required

The name of the new customer profile to switch the lead to.

sendMessage
boolean

Whether to send the new profile's first message to the lead after switching. Defaults to false. When false, the existing pending follow-up (if any) is canceled and no new follow-up is scheduled — the switch does not automatically initiate contact under the new profile. When true, the first message is scheduled after the delay in messageDelayHours / messageDelayMins below; if both are omitted (or 0), the message is sent immediately, subject only to outreach-hours/holiday adjustment.

messageDelayHours
integer

The number of hours to wait before sending the message. Takes precedence over messageDelayMins.

messageDelayMins
integer

The number of minutes to wait before sending the message. Used as an alternative to messageDelayHours.

clearMemory
boolean

Whether to clear the AI's memory of the existing conversation with the lead. Defaults to false.

Response

200 - application/json

Customer profile of lead switched successfully.

message
string
sendMessage
boolean
messageDelayHours
integer
messageDelayMins
integer