Live Myra status: All systems operational

Viktor

Connect Viktor to Myra with an API token only. No login or password needed.

Viktor is an AI reporting and analysis tool for your Myra data. It connects with one API token from your business settings. It never needs a Myra login or password.

Already using Viktor with a login? Myra's sign-in page has a bot check, so scripts can no longer sign in with an email and password. Follow the steps below to move Viktor to its API token, then remove the login from Viktor. Nothing else changes for your team.

What Viktor can do

Read: contacts, pipelines and stages, bookings (by date or for one contact), calls with transcripts and AI summaries, conversations and messages (including recent inbound texts across an account), tags added recently, tasks, automation runs, and the live transfer queue, rules and recent attempts.

Write: add a note to a contact's timeline and update a task.

Viktor sees exactly the client accounts in your business, and nothing from any other business. Private or sender-restricted mailboxes are never readable.

Connect Viktor

Only a business owner or admin can do this.

  1. In your business view (not inside a single client account), go to Business → API.
  2. Click Create token, name it Viktor, and tick both Read and Write.
  3. Copy the token. It starts with pak_ and is only shown once.
  4. Give the token to whoever runs Viktor through a private channel (a password manager share, not email or chat). Never paste the token into a conversation with an AI.
  5. If Viktor previously used a Myra login, remove that from Viktor's settings once it is working on the token.

One token covers every client account in your business.

For whoever runs Viktor

Viktor uses two Myra endpoints with the same header:

Authorization: Bearer pak_xxxxxxxxxxxxxxxxxxxx

Reading data: the MCP server

POST https://myra-app.ai/api/public/v1/mcp

It is a stateless MCP server (JSON-RPC 2.0 over HTTP). An MCP client connects to it directly. A script can call a tool with one POST, and the answer is in result.structuredContent:

import httpx

MYRA = "https://myra-app.ai/api/public/v1"
HEADERS = {"Authorization": "Bearer pak_xxx", "Content-Type": "application/json"}

def tool(name, **args):
    r = httpx.post(f"{MYRA}/mcp", headers=HEADERS, json={
        "jsonrpc": "2.0", "id": 1, "method": "tools/call",
        "params": {"name": name, "arguments": args},
    }, timeout=60)
    r.raise_for_status()
    body = r.json()
    if "error" in body:
        raise RuntimeError(body["error"])
    return body["result"]["structuredContent"]

clients = tool("list_clients")

Start with list_clients to get each client_id. The tools Viktor uses most:

Need Tool
Client accounts list_clients
Pipelines and stage ids list_pipelines
Contacts by search, filter, or a list of ids search_contacts (ids takes up to 200)
One contact with tags, notes and activity get_contact
Bookings in a date range, or for one contact list_bookings (from/to, or lead_id)
Calls with summary and outcome; one call's transcript list_calls, get_call
Recent messages across an account (e.g. inbound texts since a time) list_recent_messages
One conversation's messages list_conversations, list_messages
Tags added since a time list_tag_changes
Tasks list_tasks
Live transfer queue, rules, recent attempts list_live_transfer_queue, list_live_transfer_rules, list_live_transfer_attempts
Automation runs list_workflow_runs

The full list of tools and their inputs is in the MCP docs. Over the MCP server an API token can only read.

Writing: the REST API

# Add a note to a contact's timeline
curl -X POST https://myra-app.ai/api/public/v1/leads/{lead_id}/notes \
  -H "Authorization: Bearer pak_xxx" -H "Content-Type: application/json" \
  -d '{"content":"Called back, wants a quote on Friday"}'

# Update a task (for example, mark it done)
curl -X PATCH https://myra-app.ai/api/public/v1/tasks/{task_id} \
  -H "Authorization: Bearer pak_xxx" -H "Content-Type: application/json" \
  -d '{"status":"done"}'

A note added this way shows on the contact's timeline like any other note and triggers nothing else. See the REST API docs for every endpoint.

Limits

  • Reads over MCP: 300 calls a minute per token. Batch up to 20 calls in one POST.
  • REST writes: 60 a minute per token.
  • Lists return 50 rows by default and 200 at most; use offset for the next page.

Turning Viktor off

Revoke the Viktor token on Business → API. Viktor loses access straight away. To reconnect, create a new token.