create a variable
declare a {name} with its default value. variables are account-wide: every agent whose prompt or greeting spells {name} reads the same row. connect a before_call tool with toolId (and pick one of its outputs with toolOutput) to fill the value at the start of each call; the default is used when the tool fails.
Authorizations
your rumik api key, e.g. rk_live_.... create one in the rumik dashboard.
Body
POST /agents/variables: the same shape, nothing optional about it.
^[A-Za-z][A-Za-z0-9_]*$, up to 64 characters, unique on the account (case-insensitive). used as {name} in prompts.
64the value when no tool supplies one (up to 2000 characters). blank by default.
2000a before_call tool that fills this variable at the start of every call.
which of that tool's outputs to take (its bare name). omit for a tool with one output, or one named like the variable.
65Response
created.
an account-wide {name} prompt variable.
the variable's id.
the {name} prompts use.
the fallback value.
the before-call tool feeding it, or null.
the output taken from that tool, or null.