# OpenAPI description

One machine-readable file that describes every documented operation an API key can call, for API clients, code generators and reviews.

The REST reference is also published as one [OpenAPI 3.1](https://spec.openapis.org/oas/v3.1.0) file. It is generated from the same data as the reference pages, so an operation reads the same in both. The file carries each operation's own text; the introductions of the reference pages and of their sections are only on the pages, and every operation links to its page. Import it into an API client, generate request types from it, or compare two copies to see what changed in the reference.

## Get the file

The file is at [/docs/openapi.json](https://centerofagentic.com/docs/openapi.json). It is public: downloading it needs no key.

```bash
curl -fsS https://centerofagentic.com/docs/openapi.json -o coa-openapi.json
```

## What it covers

The file lists the 110 documented operations an API key can call, in the 12 areas of the [REST reference](https://centerofagentic.com/docs/api): 59 need the `read` scope, 9 need `run`, 41 need `admin` and 1 needs no credential. Of these, 6 are gated and 4 belong to a pilot; the file marks them as their pages do.

- **Not in the file:** operations that only a person signed in to the web workspace can use. They are on the reference pages.

- **Not in the file:** the MCP server. Its tools are described under [MCP tools](https://centerofagentic.com/docs/mcp/tools).

## What an operation carries

| Field | What it holds |
| --- | --- |
| `operationId` | A name built from the method and the path, such as `getAgentsById`. |
| `summary`, `description`, `tags` | The texts of the reference page. The description ends with an Access line; read it for conditions a scope cannot express. |
| `security`, `x-coa-scope` | The key scope the operation needs: `read`, `run` or `admin`. An operation that needs no credential has an empty `security` and no scope. |
| `x-coa-status` | `gated` or `pilot` when the operation is not open to every workspace. Absent otherwise. |
| `parameters` | Path and query parameters, and the request headers the operation reads. A header is marked `required` only when every request needs it. Where only some requests need one, its description says when. |
| `requestBody` | The body fields as a JSON Schema, with the example from the reference page where it has one. |
| `responses` | Each success status with the response in words. The example from the reference page, where it has one, is under the first success status. Each documented error status with its codes. `401` and `403` on every operation that needs a credential, and `default` for any other error. |
| `externalDocs` | The address of the operation on its reference page. |

## Limits

- **No response schemas.** A successful response is described in words and by example, not by a schema. A generated client gets typed requests. What it returns for a response without a schema depends on the generator: an untyped value, or nothing, in which case read the raw response body. The streaming operations are described as text; read them as a stream from the raw response.

- **Types are as loose as the pages.** A field the reference calls an `object` is an object here, without its inner fields.

- **No version.** The API as a whole has no version number; only the external agent paths carry `v1`. The file has no version of its own: `info.version` is the word `unversioned`, and the file changes whenever the reference does. Keep your own copy if you need a fixed one, and give a code generator your own package version if it takes one from `info.version`.

- **Described from code.** Like the pages, the file is checked against the service's code when the docs are built. The operations are not yet exercised against the live service one by one.

## Use it

A tool that reads OpenAPI 3.1 can import the file from its address or from your copy. Every operation that needs a credential uses the same bearer scheme. The pilot operations for external agents are the exception in what they accept: only that agent's runtime key, as their descriptions say.

A docs viewer that runs in a browser can show the file, but its request console cannot reach the API, which sends no cross-origin (CORS) headers. Send requests from an API client, a script or a server; see [REST API](https://centerofagentic.com/docs/api#basics).

With `jq` you can also query the file directly.

```bash
# Operations that need the read scope
jq -r '.paths | to_entries[] | .key as $p | .value | to_entries[]
       | select(.value["x-coa-scope"] == "read")
       | "\(.key | ascii_upcase) \($p)"' coa-openapi.json

# Operations that are gated or belong to a pilot
jq -r '.paths | to_entries[] | .key as $p | .value | to_entries[]
       | select(.value["x-coa-status"])
       | "\(.value["x-coa-status"])\t\(.key | ascii_upcase) \($p)"' coa-openapi.json

# The request headers one operation reads, and when each is needed
jq '.paths["/api/run"].post.parameters[] | select(.in == "header") | {name, required, description}' coa-openapi.json
```

### Compare two copies

A diff of two copies shows what changed in the reference: operations added or removed, parameters, request fields, documented errors and wording. It is not a changelog: a reworded sentence shows up although the API behaves as before, and a change that is not yet in the reference does not. Keep the copy you built against and compare it with a new download:

```bash
curl -fsS https://centerofagentic.com/docs/openapi.json -o coa-openapi.new.json
diff <(jq -S . coa-openapi.json) <(jq -S . coa-openapi.new.json)
```

## Next steps

- [**REST API** Base address, requests, paging and how the reference is checked.](https://centerofagentic.com/docs/api)

- [**Authentication** Keys, scopes and what each scope reaches.](https://centerofagentic.com/docs/authentication)

- [**Automation and CI** Least-privilege keys and safe retries in a pipeline.](https://centerofagentic.com/docs/guides/automation)

Source: https://centerofagentic.com/docs/api/openapi

## Related pages

- [/docs/openapi.json](https://centerofagentic.com/docs/openapi.json)
- [REST reference](https://centerofagentic.com/docs/api)
- [MCP tools](https://centerofagentic.com/docs/mcp/tools)
- [REST API](https://centerofagentic.com/docs/api#basics)
- [REST API Base address, requests, paging and how the reference is checked.](https://centerofagentic.com/docs/api)
- [Authentication Keys, scopes and what each scope reaches.](https://centerofagentic.com/docs/authentication)
- [Automation and CI Least-privilege keys and safe retries in a pipeline.](https://centerofagentic.com/docs/guides/automation)
