# API reference

Choose the AppPortal API for your integration, inspect its operations and authentication, and download the matching OpenAPI contract.

Source: https://appportal.io/docs/api/reference

Choose the API for the code making the request. Each door has its own authentication boundary.
The references below render the same documents available as downloadable OpenAPI JSON.

| API | Use it for | Reference | Contract |
| --- | --- | --- | --- |
| Client controls | Crash diagnostics and bound-user communication preferences | [Operations](https://appportal.io/docs/api/reference/client-controls) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/client-controls.json) |
| Client telemetry | Installed-app telemetry batches and delivery acknowledgements | [Operations](https://appportal.io/docs/api/reference/client-ingestion) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/client-ingestion.json) |
| Agent telemetry HTTP | Crash investigation, sessions, logs, usage and release health | [Operations](https://appportal.io/docs/api/reference/agent-telemetry) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/agent-telemetry.json) |
| Agent Account HTTP | Organization membership, pinned offering and allowance evidence | [Operations](https://appportal.io/docs/api/reference/agent-account) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/agent-account.json) |
| Agent BI HTTP | Protected reporting and confirmed dashboard actions used by the MCP CLI | [Operations](https://appportal.io/docs/api/reference/agent-bi) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/agent-bi.json) |
| Automation | Privileged actions from your backend | [Operations](https://appportal.io/docs/api/reference/automation) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/automation.json) |
| Dashboard BFF | Signed-in app management and reporting | [Operations](https://appportal.io/docs/api/reference/dashboard) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/dashboard.json) |
| Downloads BFF | Authorized test distribution and downloads | [Operations](https://appportal.io/docs/api/reference/downloads) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/downloads.json) |
| CLI uploads | Build registration, artifacts and symbols | [Operations](https://appportal.io/docs/api/reference/uploads) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/uploads.json) |
| Smart Links | Approved-host resolution, association and web landing confirmation | [Operations](https://appportal.io/docs/api/reference/smart-links) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/smart-links.json) |
| Public Pages | Published application pages | [Operations](https://appportal.io/docs/api/reference/pages) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/pages.json) |
| Public Status | Health, incidents, email subscriptions and RSS | [Operations](https://appportal.io/docs/api/reference/status) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/status.json) |
| Ops Console BFF | Authorized staff operations | [Operations](https://appportal.io/docs/api/reference/ops) | [OpenAPI JSON](https://appportal.io/docs/api/contracts/ops.json) |

## Installed-app SDKs

Use the SDK for your framework to send events, crashes, logs, sessions and performance context to
the Client API at `https://api.appportal.io`. Its app-scoped SDK credential belongs in the installed
application; it does not grant access to Dashboard reports or Automation actions.

Inspect the [typed ingestion reference](https://appportal.io/docs/api/reference/client-ingestion) and
[delivery contract](https://appportal.io/docs/api/client-ingestion) when integrating a collector or investigating retries.

Start with [send your first event](https://appportal.io/docs/getting-started/first-event), then
[inspect it in DevSpace](https://appportal.io/docs/getting-started/devspaces). SDK delivery handles acknowledgement,
offline queuing and bounded retries. Keep a queued record until the server confirms its outcome.

## MCP and agents

[AppPortal MCP](https://appportal.io/docs/api/mcp) runs locally through `appportal mcp` over stdio.
The CLI authenticates to AppPortal's scoped agent-data API and exposes tools to the MCP client.
Use the [client setup guide](https://appportal.io/docs/api/mcp-clients) and
[role-based conversations](https://appportal.io/docs/api/mcp-conversations) for tool workflows and permissions.
The [agent telemetry HTTP reference](https://appportal.io/docs/api/reference/agent-telemetry) describes scoped crash,
session, log, usage and release workflows. The [BI HTTP reference](https://appportal.io/docs/api/reference/agent-bi)
covers reporting and confirmed dashboard actions. The [Account HTTP reference](https://appportal.io/docs/api/reference/agent-account)
covers organization membership, pinned offering and allowance evidence; follow the
[account workflow](https://appportal.io/docs/api/mcp#read-organization-account-evidence) for consent and tool arguments.
An HTTP OpenAPI document is not an MCP transport
definition.

## Smart Links

[Smart Links](https://appportal.io/docs/guides/smart-links) resolve application links, provide browser fallbacks and
serve the native app-association documents for an approved domain. Link visitors use the public
link; app owners manage domains and link definitions in the authenticated Dashboard. Inspect the
[public API reference](https://appportal.io/docs/api/reference/smart-links) and
[host and confirmation guide](https://appportal.io/docs/api/smart-links) for direct integrations.

## Status updates

Read [AppPortal service health](https://status.appportal.io), subscribe to selected services by
email, or follow RSS. The [Status API guide](https://appportal.io/docs/api/status) explains mailbox confirmation,
private management links and retry behavior.

## Use a contract

The Client ingestion document includes typed telemetry schemas and acceptance rules; the Automation
document includes its host-owned body schemas. The Upload document includes all nine existing
build/artifact operations and their typed bodies, stream limits and retry semantics. Its proposed
Upload origin and supported legacy Downloads alias are separate from deployment qualification.
The Dashboard document describes selected billing and account operations, including typed pinned
offering, qualification, subscription, account/contact, provider-workflow and observed-status bodies.
Its legacy usage and invoice-preview operations explicitly return unavailable errors rather than
an invented success projection. For session authority and retries, see the
[Dashboard Product API](https://appportal.io/docs/api/product-api#errors-and-retries).
The Downloads document describes selected existing browser operations, including typed identity
and organization-claim flows, opaque cookie sessions, conditional CSRF, HMAC artifact links and
XML installation manifests. Its session-version behavior differs from Dashboard; follow the
[download workflow](https://appportal.io/docs/guides/distribution#4-verify-as-the-intended-recipient).
Dashboard, Downloads and Operations include their owning workflow bodies as well as routes and security.
Follow the linked workflow guides for request, response and authority examples. An unspecified body
in a future contract is not an empty-body promise.

Each reference identifies its bundled repository input paths, contract version and SHA-256 of the exact JSON download.
Upload also includes fingerprints for its source inputs and schema.

The docs bundle and the deployed service can represent different builds. To identify the build
serving a Dashboard, Downloads or Operations contract, check the `X-AppPortal-OpenAPI-Source`
response header on that site's `/.well-known/appportal-bff-openapi.json`:

```sh
curl -I https://dashboard.appportal.io/.well-known/appportal-bff-openapi.json
```

The header gives the serving build's full Git commit when available. The OpenAPI document's
`info.version` describes the contract. If the header is absent, the server has not supplied a source commit.

Automation serves
`/.well-known/appportal-automation-openapi.json` from its own origin.
Upload currently has no deployment-owned OpenAPI retrieval endpoint. Its downloadable source
contract describes the repository source used to generate it; `v1` is an API version, not a claim
about the release running at a selected host.

A relative server URL of `/` means the owning API origin, not the documentation website.
Import the contract with the correct origin and credential. Never paste a production secret into
a public API viewer or browser example.
