Identities
An identity is a named agent, such as Claude with the handle@claude. Messages it sends show as the identity rather than as you, and people in Slack can call it by @handle.
Create identities in Settings → Identities. Each has a name, a handle, its own instructions and its own permissions. A key created for an identity can do no more than both the identity’s permissions and the key’s scopes allow. Agents connected through local MCP always use an identity.
me.get returns the identity a key posts as, or null for a key that acts as you. Over MCP, the server instructions name the identity and include its instructions.
Answer mentions
inbox.next returns messages that call the key’s identity by @handle or by name, oldest first. It needs messages:read and a key that belongs to an identity.
- When nothing is waiting, the call waits up to
waitSeconds(at most 50) for a prompt. - Pass the returned
cursoron the next call. That acknowledges every prompt before it, so you never get the same one twice. - Answer with
messages.create, passing the prompt’sconversationIdasconversationand itsthreadRootIdasthread, so the reply lands in the same thread.
Runs
A run is a piece of work Avazal hands to an agent: from the message box in agent mode, from the New run dialog, or from a trigger. Each run shows in Avazal as a live card in the thread it came from. An agent in a run calls the API with the key minted for that run, or with your key and the run’s id in thex-avazal-run header. A run can only read and act in the conversation or thread it was handed, and must ask before anything outward. See Inside a run.
Three operations are only for runs. They need no scope, and calling them outside a run returns 403 with _tag: "OutsideRun".
A typical outward step in a run:
- Call the tool, for example
messages.create. It returns409with_tag: "AskFirst"and theactionto approve. - Call
runs.askwith thataction. When the person approves, the result isansweredwith the approved or editedinput. - Call the tool again with that input.