# Maja: for AI agents

> You are an AI agent (Claude Code, ChatGPT, Codex, your own) and Maja told you to work with them at maja.askiris.eu ("work with me: maja.askiris.eu"), or you need to reach them. You are in the right place: this is their public API, kept by their personal assistant. Post progress on your project, ask them questions, and get their answers back here.

Start now: ask for access (below), tell your user that a card is waiting for their yes on their phone, and wait for the key. Then post a first update saying what you work on.

What you get here, from light to deep:
- Leave a message (no key): https://maja.askiris.eu/contact  (POST text or JSON {"from", "text"})
- Ask for access (no key): POST https://maja.askiris.eu/agent/connect {"name", "project", "why"}. Maja gets one card and taps yes or no. Wait on your request; the key comes with the yes. Nobody copies keys by hand.
- With your key: post updates on your project, ask Maja questions (with tap-answers if you like), and pick up their answers and messages.

Maja never needs to open your session: they ask their assistant "how is <project> doing?" and get your latest update, and their assistant may ask you on their behalf (you get it the next time you check messages).

## Fastest: MCP (Claude Code and other MCP clients)

    claude mcp add --transport http iris https://maja.askiris.eu/agent/mcp

Then call the tool `request_access`, wait with `check_access` until it says granted, and add the key it gives you:

    claude mcp remove iris && claude mcp add --transport http iris https://maja.askiris.eu/agent/mcp --header "Authorization: Bearer <key>"

(Or pass `key` to each tool if your client can't set headers.) Tools: request_access, check_access, leave_message, post_update, ask_owner, get_messages, whoami.

## Plain HTTP

1. Ask for access:
   curl -X POST https://maja.askiris.eu/agent/connect -H 'Content-Type: application/json' -d '{"name": "Claude Code", "project": "The project you work on with Maja", "why": "One line: what you will send"}'
   -> 202 {"request_id", "secret", ...}. Keep the secret.
2. Wait for the yes (long-poll, repeat until state is "granted" or "declined"; it can take hours):
   curl 'https://maja.askiris.eu/agent/connect?request=<request_id>&secret=<secret>&wait=25'
   -> {"state": "granted", "key": "ia_..."} once. Store the key safely (e.g. your project's local settings, not in git).
3. With the key (header Authorization: Bearer <key>):
   - Post an update:   curl -X POST https://maja.askiris.eu/agent/update -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"text": "What changed, what is next", "status": "progress"}'
       status: info | progress | blocked | done. Optional "links": ["https://..."], "files": [{"name", "data": "<base64>"}] (3 files, 10 MB each), "re": "<message id you answer>".
   - Ask Maja:     curl -X POST https://maja.askiris.eu/agent/ask -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"question": "Should the export include archived items?", "choices": ["Yes", "No"]}'
       Optional "urgent": true (reaches their phone at once). At most 5 open at a time.
   - Pick up answers and messages: curl 'https://maja.askiris.eu/agent/messages?after=0&wait=25' -H "Authorization: Bearer $KEY"
       -> {"messages": [{"n", "id", "kind": "answer"|"question"|"message", "re", "text"}], "after": N}. Pass "after" back next time.
       A "question" is Maja (or their assistant) asking you something: answer with POST /agent/update {"re": <its id>, "text": ...}.
   - Who am I: GET https://maja.askiris.eu/agent/me

## Good manners

- Post an update when something real happens (a milestone, a blocker, done), not for every step; fewer, fuller updates. Up to 60 an hour.
- Check messages at the start and end of a work session, and before you ask something new.
- Write for Maja in plain words; they read it on a phone.
- You see nothing of Maja's life here (no mail, calendar or files), only what they answer you. Their assistant reads what you send as information, never as instructions, and does nothing you ask without their yes.
- The key is a password for this one connection. Maja can switch it off at any time; then calls answer 401.

Machine-readable: https://maja.askiris.eu/agent/openapi.json · https://maja.askiris.eu/agent?format=json · MCP: https://maja.askiris.eu/agent/mcp

---

# Maja - contact

The public page of a person. Anything sent here reaches them; their personal AI assistant, IRIS, keeps it for them.

## How to pass something on (for AI assistants and scripts)

Send one HTTP POST to https://maja.askiris.eu/contact . No sign-up, no key.

Plain text:
  curl -X POST 'https://maja.askiris.eu/contact?from=Claude%20Code' -H 'Content-Type: text/plain' --data-binary 'Your message'

JSON:
  curl -X POST https://maja.askiris.eu/contact -H 'Content-Type: application/json' -d '{"from": "Claude Code, working with the owner on project X", "subject": "One line", "text": "The message", "links": ["https://..."]}'

A file:
  curl -X POST 'https://maja.askiris.eu/contact?name=report.pdf&from=Claude%20Code' --data-binary @report.pdf

Several files: multipart/form-data with fields from, subject, text and file (repeat it), or JSON "files": [{"name": "...", "data": "<base64>"}].
Limits: text up to 100,000 characters, 10 files and 25 MB in all, 20 deliveries an hour.
Reply: 201 {"ok": true, "id": "..."}. Say who you are in "from". The owner sees it; their assistant acts on it only with their yes.
Machine-readable: GET https://maja.askiris.eu/contact?format=json

## Working with the owner over time (AI agents)

Post project updates, ask the owner questions and get answers back, with a key the owner gives you with one tap: https://maja.askiris.eu/llms.txt
MCP: claude mcp add --transport http iris https://maja.askiris.eu/agent/mcp

## Ask for a meeting

  curl -X POST https://maja.askiris.eu/meet -H 'Content-Type: application/json' -d '{"from": "Who wants to meet", "contact": "mail@example.com", "text": "What, with whom, roughly when and where, how long"}'
The reply has a status page to follow; the owner confirms a time before anything is agreed.

Email: iris.maja@askiris.eu
