---
title: "List the AI uses"
method: GET
path: "/api/v2/account/ai"
tags: ["Account"]
---

# List the AI uses

`GET /api/v2/account/ai`

## Request

- Base URL: `https://www.onlyworlds.com`
- URL: `https://www.onlyworlds.com/api/v2/account/ai`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Session-Token`
  - HTTP bearer

The AI uses this server runs and what each costs and allows: a tool calls a
named use, never sends a prompt. Reading it spends nothing. An account
credential (Bearer `ow_a_`, a signed-in session, or a phone's
`X-Session-Token`), or an AI door token (it lists only the uses it names, as
its account reads them, and calls only those: a name that has left the table
lists nothing).

## Response `200`

`uses`: each use a tool may call at POST /api/v2/account/ai/{slug}, with its owner, provider, model and effort, `prompt_sha256` (the hash of its system prompt), `needs_world`, `input_caps` and `output_cap`, `structured`, `price_tokens`, `ceiling`, this account's `calls_left` today, `on` and `can_pay`. A use that is not listed answers 404 not_found (param use). A use with a ceiling refuses with 429 use_ceiling (the day's calls are made) or 429 use_in_flight (another call is running), both with param use. An AI door token lists only the uses it names. Granting `lens` to an AI door token lets its holder read the names and links of elements in this account's worlds through this use.

- object
  - `uses` object[], required
    - `slug` string, required: The use's name in its route: POST /api/v2/account/ai/{slug}.
    - `owner` string, required: The tool that answers for its prompt and caps.
    - `provider` 'anthropic' | 'jev', required: Who runs the model: `anthropic` (the platform's key, or the account's own saved key once its rating is spent) or `jev` (the Vercel AI Gateway's decisions route; an own key never runs it).
    - `model` string, required: The model a call on the platform's key runs.
    - `effort` string, required
    - `prompt_sha256` string, required: The sha256 of the use's system prompt, hex: two calls with the same hash ran the same prompt.
    - `needs_world` boolean, required: The body names a world this account owns or is a member of.
    - `input_caps` object, required: What the body may hold, by name.
    - `output_cap` integer, required: The most tokens one answer may take.
    - `rating_need` integer, required: The rating tokens a call needs left today to run (or a saved key, for a use it can run): the output cap, or the use's worst case when it is larger.
    - `structured` boolean, required: The answer is checked JSON, not text.
    - `price_tokens` integer, nullable, required: A fixed price per call in rating tokens, or null: the call's real cost is spent. One rating token is one Haiku 5.5 input token: a call on Haiku spends its actual tokens, a call on another model its cost in USD (the provider's own, when it reports one) divided by Haiku's input price per token, rounded up.
    - `ceiling` integer, nullable, required: Calls per account per UTC day, or null. Past it, 429 use_ceiling (param use) until midnight UTC; a use with a ceiling runs one call at a time, and a second call while one runs is 429 use_in_flight (param use) with a short Retry-After.
    - `calls_left` integer, nullable, required: This account's calls left today, or null when the use has no ceiling.
    - `on` boolean, required: False while the server's AI is off, the use's provider is not set up, the use is switched off (some uses ship off until the server switches them on), or it has spent its own budget for today (its calls answer 503 ask_unavailable; with param use for the use's provider, switch or budget).
    - `can_pay` boolean, required: True when a call by this account would be paid now, by the same check the call runs: `on`, the server's daily cap not reached, and today's token rating holding `rating_need` (or, with the rating spent, a saved AI key that runs this use). A page offers the use only when this is true.

## Other responses

- `401`: Missing or invalid account credential (Bearer ow_a_ token or session, or an AI door token). Another `ow_a_` token kind, a hosted MCP client's, is 401 wrong_audience; an expired AI door token is 401 key_revoked.
- `429`: Too many requests: over the request budget (code too_many_requests, type rate_limited): 300 requests a minute per key or account token, 60 a minute per address for a request with neither. Retry after the Retry-After header's seconds.
- `503`: The server is busy: every request slot stayed full for 10 s (code server_busy, type api_error). Retry after the Retry-After header's seconds.

## Changes

- **2026-11-28** `e45847b3f48f`: 3 info
  - added the optional property `error/limit` to the response with the `401` status
  - added the optional property `error/limit` to the response with the `429` status
  - added the optional property `error/limit` to the response with the `503` status
- **2026-11-26** `f921dd878e35`: 3 warning
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `401`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `429`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `503`
- **2026-11-26** `7ef7860703bb`: 3 warning
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `401`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `429`
  - added the new `narratives_only` enum value to the `error/code` response property for the response status `503`
- **2026-11-17** `271a1c3c6148`: 9 info
  - added the optional property `error/allowed_fields` to the response with the `401` status
  - added the optional property `error/allowed_fields` to the response with the `429` status
  - added the optional property `error/allowed_fields` to the response with the `503` status
  - added the optional property `error/types_with_field` to the response with the `401` status
  - …5 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/changes/api/v2/account/ai/get.md)

---

[API](https://skmtc.dev/onlyworlds/apis/onlyworlds-api.md) - [All operations](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/revisions/6c819f2e4bbd?raw)
