POST
/
leads
/
{leadId}
/
switchCustomerProfile
curl --request POST \
  --url https://api.attent.app/v1/leads/{leadId}/switchCustomerProfile \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "profile": "<string>",
  "sendMessage": true,
  "messageDelayHours": 123,
  "clearMemory": true
}'
{
  "message": "<string>"
}

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 a message to the lead.

messageDelayHours
integer

The number of hours to wait before sending the message.

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