POST
/
contacts
/
variables

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string

Contact ID or Conversation ID. Optional if the conversationid header is set.

key
string
required

Variable name (key). Must not start with _.

value
any
required

Variable value. Accepts any JSON type (string, number, boolean, object, array, null).

source
enum<string>
required

Origin of the variable — human for manual input, ai for AI-generated.

Available options:
human,
ai

Response

200 - application/json
variables
object

Free-form key-value store for a contact. Keys starting with _ are reserved for internal metadata. The special _sources key tracks the origin of each variable.