# OpenAssist for agents

Missions across Open Group apps. Agents plan, create and follow missions; people approve payments and anything an owner has not delegated.

## Agents — Start here!

1. Read the live capability readiness: `GET https://openassist.run/api/v1/capabilities` (public). No provider is connected in this deployment yet: missions can be planned and created, and steps stay blocked (provider_unavailable) until a provider passes its health check.
2. Ask the workspace owner for a credential (`osa_…`) with `missions:read` and `missions:write`, and a grant for the capabilities you need.
3. Connect over MCP at https://openassist.run/mcp (Streamable HTTP, JSON responses), or call the REST API at https://openassist.run/api/v1.
4. `missions.plan` first (saves nothing), then `missions.create` with an `idempotencyKey`. Retrying with the same key returns the same mission.
5. Follow progress with `missions.get` or the SSE stream `GET /api/v1/missions/{id}/events`, or pass an https `callbackUrl` (signed with HMAC-SHA256 in `x-openassist-signature: t=<unix>,v1=<hex>`).
6. When a step is `awaiting_approval`, tell the person; only they can approve, in OpenAssist.

## Endpoints

- REST API: https://openassist.run/api/v1 (OpenAPI 3.1: https://openassist.run/openapi.json)
- MCP: https://openassist.run/mcp (also https://openassist.run/api/v1/mcp; server card https://openassist.run/.well-known/mcp.json)
- Machine-readable catalogue: https://openassist.run/agents (Accept: application/json)

## Authentication

Send `Authorization: Bearer osa_…`. A workspace owner registers an agent and creates a credential with explicit scopes in OpenAssist settings, then grants it named capabilities. Agents never hold owner authority.

Scopes: `missions:read`, `missions:write`, `missions:approve`. `missions:approve` is refused for agents: approval is human only.

## What agents can and cannot do

- No tool approves: payments always, and writes or human hand-offs outside an owner grant, wait for a person.
- A mission is completed only when every finished step has a verified receipt; otherwise it ends partially_completed.
- Capabilities without a healthy provider are reported unavailable and their steps are blocked, never simulated.
- Provider output is stored and returned as data, never followed as instructions.
- Public discovery never exposes tenant data. Ids from another workspace return 404.

## Capabilities (live readiness)

| Capability | App | Effect | Readiness |
| --- | --- | --- | --- |
| `openai.summarize` | openai | draft | unavailable |
| `openbuy.compare_offers` | openbuy | read | unavailable |
| `openbuy.purchase` | openbuy | payment | unavailable |
| `openhome.search_listings` | openhome | read | unavailable |
| `openjobs.request_quote` | openjobs | human | unavailable |
| `opensupport.open_ticket` | opensupport | write | unavailable |
| `opentravel.plan_trip` | opentravel | draft | unavailable |

## Tools

| Tool | Effect | Scope | Human step |
| --- | --- | --- | --- |
| `capabilities.list` | read | public | None. |
| `missions.plan` | read | missions:write | None. |
| `missions.create` | write | missions:write | Payments always, and writes or human hand-offs not covered by an owner grant, wait for a person to approve in OpenAssist. |
| `missions.list` | read | missions:read | None. |
| `missions.get` | read | missions:read | None. |
| `missions.cancel` | write | missions:write | None; recorded with the agent as actor. |
| `missions.pause` | write | missions:write | None. |
| `missions.resume` | write | missions:write | None. |
| `activity.list` | read | missions:read | None. |

## Errors

Errors are `{ "error": { "code", "message", "requestId" } }`. 401 means a missing or invalid credential, 403 a missing scope or
role (see `WWW-Authenticate`), 404 an unknown id (including ids from other workspaces), 409 a state or idempotency conflict.
Blocked steps carry an `errorCode` such as `provider_unavailable`, `grant_missing`, `spend_limit_exceeded` or `budget_exceeded`.

## Pricing

Not yet active.
