PUT
/
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).

value
any
required

New variable value. Accepts any JSON type.

source
enum<string>
required

Origin of the value.

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.