Skip to main content

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 cursor on the next call. That acknowledges every prompt before it, so you never get the same one twice.
  • Answer with messages.create, passing the prompt’s conversationId as conversation and its threadRootId as thread, so the reply lands in the same thread.
The CLI runs this loop for you and prints one JSON line per prompt, which suits an agent harness reading stdout:

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 the x-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:
  1. Call the tool, for example messages.create. It returns 409 with _tag: "AskFirst" and the action to approve.
  2. Call runs.ask with that action. When the person approves, the result is answered with the approved or edited input.
  3. Call the tool again with that input.

In MCP

Each operation on this page is an action of one MCP tool. The tool catalogue lists every tool with its fields.