# Authentication and errors

Use the HTTP API to manage your polls or read a results snapshot.

## Authentication

Use a personal API key as a Bearer credential on supported owner routes. Each operation lists the permissions its key needs. OAuth access tokens issued for MCP aren’t accepted here. In the web app, use a signed-in browser session; the browser sends its own cookie.

## Errors

Read the status and the response body. JSON errors usually carry an `_tag` and a `message`. For `429`, follow `Retry-After` if present.

- `400` **Invalid.** The request doesn’t match the expected input.
- `401` **Unauthorized.** Sign in or supply a valid credential for this route.
- `403` **Forbidden.** The credential lacks permission, or the request isn’t allowed.
- `404` **Not found.** The resource doesn’t exist or isn’t available to you.
- `409` **Conflict.** The requested change conflicts with the current state or an account limit.
- `413` **Too large.** The request body exceeds the size limit.
- `429` **Rate limited.** Wait before sending more requests.
- `503` **Unavailable.** Poll Express couldn’t complete the request right now.

For a `409` tagged `StructuralEditBlocked`, check `closeRequired` and `resetRequired` before replacing a question.

## Pagination

The HTTP poll and question list routes return arrays without cursors.

[Read the retry and MCP pagination guidance in Limits](https://poll.express/docs/limits/#mcp-requests).

## Resources

- [Account](https://poll.express/docs/api/account/)
- [Polls](https://poll.express/docs/api/polls/)
- [Questions](https://poll.express/docs/api/questions/)
- [Live control](https://poll.express/docs/api/live-control/)
- [Results and exports](https://poll.express/docs/api/results-and-exports/)
- [Public](https://poll.express/docs/api/public/)

[OpenAPI JSON](https://poll.express/docs/openapi.json)
