POST
/
leads
/
{leadId}
/
addContext
curl --request POST \
  --url https://api.attent.app/v1/leads/{leadId}/addContext \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "context": "The lead has scheduled a meeting with me on Monday at 2pm.",
  "additionalInfo": {
    "favoriteColor": "blue",
    "favoriteFood": "pizza"
  },
  "command": "Schedule a follow up for next week."
}'
{
  "message": "Success"
}

Authorizations

x-api-key
string
header
required

Path Parameters

leadId
string
required

The ID of the lead to add context to.

Body

application/json

The lead's context and an optional command.

The body is of type object.

Response

200
application/json

Context has successfully been added to the lead.

The response is of type object.