Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

AgentOS — API reference

Ask once; the orchestrator routes the request to domain agents (mail, contacts, calendar, documents, knowledge, tasks, money and the partner platforms the person connected), runs one EmailTAG run per domain on the person's AI assistant and composes their answers. Domain agents only read and propose: every action waits in the person's Action Center. AI is paid credits (the cost comes first from `route`); routing and composing are free. Scopes `emailtag:read` / `emailtag:write`.

← All groups
GET /api/v1/agentos/domains

Domain agents and who can run them

Scope: emailtag:read · agentos.domains

Responses 200 · 401 · 403 · 429

200 Success

domains * [AgentOSDomain]
fields

AgentOSDomain

key * string mail, contacts, calendar, documents, knowledge, tasks, money, or partner:<platform>
kind * "own" | "partner"
name * string
platform string | null
proposes [string]
reason string | null
state * "available" | "connect" | "create_account" | "coming_soon"
summary string
tools [string]
runners * [object]
fields
id string (uuid)
kind "personal" | "business"
name string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/agentos/requests

Your requests, newest first

Scope: emailtag:read · agentos.index

ParameterInTypeDescription
limitqueryinteger1–100, default 20
Responses 200 · 401 · 403 · 429

200 Success

requests * [AgentOSRequest]
fields

AgentOSRequest

agent_id string | null
created_at string (date-time)
credits * string
domains * [string]
finished_at string | null
id * string (uuid)
parts * [object]
fields
answer string | null
credits string
domain string
error string | null
name string
proposals [string (uuid)]
run_id string | null
status string queued, running, succeeded, failed, refused, stopped
steps integer
proposals * [string (uuid)]
request string | null your words (not in lists)
routing object
status * "running" | "done" | "partly" | "failed"

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/agentos/requests

Ask AgentOS

Queues one EmailTAG run per domain (202). `domains` overrides the routing (available ones only). 402 without AI credits (nothing queued); 409 `no_runner` when the person has no AI assistant or agent they may use. Follow it with `GET /agentos/requests/:id`; proposed actions are in `proposals` and wait in the Action Center.

Scope: emailtag:write · uses AI credits · Idempotency-Key · agentos.create

Request body application/json
agent_id string (uuid) Who runs it (default: your personal assistant)
domains [string]
request * string At most 4000 characters
Responses 202 · 401 · 402 · 403 · 409 · 422 · 429

202 Success

request * AgentOSRequest
fields

AgentOSRequest

agent_id string | null
created_at string (date-time)
credits * string
domains * [string]
finished_at string | null
id * string (uuid)
parts * [object]
fields
answer string | null
credits string
domain string
error string | null
name string
proposals [string (uuid)]
run_id string | null
status string queued, running, succeeded, failed, refused, stopped
steps integer
proposals * [string (uuid)]
request string | null your words (not in lists)
routing object
status * "running" | "done" | "partly" | "failed"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 No runner, no usable domain, or the agent is stopped

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/agentos/requests/{id}

One of your requests

Scope: emailtag:read · agentos.show

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

request * AgentOSRequest
fields

AgentOSRequest

agent_id string | null
created_at string (date-time)
credits * string
domains * [string]
finished_at string | null
id * string (uuid)
parts * [object]
fields
answer string | null
credits string
domain string
error string | null
name string
proposals [string (uuid)]
run_id string | null
status string queued, running, succeeded, failed, refused, stopped
steps integer
proposals * [string (uuid)]
request string | null your words (not in lists)
routing object
status * "running" | "done" | "partly" | "failed"

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/agentos/route

Route a request (free) and its cost

Which domain agents a request would go to (free word rules, at most 3) and the most it can cost. Nothing runs.

Scope: emailtag:read · Idempotency-Key · agentos.route

Request body application/json
request * string
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

cost * object
fields
available number credits available now
configured boolean
domains integer
label string
max_credits integer | null the most it can cost
max_steps integer AI steps per domain at most
out boolean
per_step integer | null credits per AI step (estimate)
read_only boolean
route * object
fields
chosen [string]
fallback boolean
matched [object]
fields
key string
score integer
words [string]
skipped [object]
fields
key string
reason string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)