Skip to main content
POST
cURL

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/or timeline event, and an optional command.

context
string

A standing fact or instruction about the lead that should always apply, regardless of when it was added. For something that happened at a point in time, use event instead.

event
string

Something that just happened, stated as a short factual sentence (what changed, and the next step if there is one). Apten records it in the conversation timeline with a timestamp: the AI knows when it occurred relative to the lead's messages, treats it as information the lead has not seen, and can bring it up naturally or act on it in the flow-chart conversation. Example: 'Application submitted. Next step: upload proof of residence.'

additionalInfo
object

An key-value object containing structured data to store with the lead. These will be stored as variables that can be accessed in the flow-chart conversation prompts.

command
string

An optional command for Apten regarding the lead. Currently allowed commands are scheduling a follow up and sending a message.

Response

Context has successfully been added to the lead.

message
string

Returns "Success" if the context was added successfully.