# HTTP API

Every route is on the contour's own address, `https://<contour>.cmdop.ai`, and takes `Authorization: Bearer $CMDOP_TOKEN`. Errors come back as `{"error": {"code": "…", "message": "…"}}` with the [error codes](https://docs.cmdop.ai/reference/errors.md).

| Operation | Token | Status |
| --- | --- | --- |
| [`POST /api/v1/call`](https://docs.cmdop.ai/reference/http/post-call.md) | owner or agent token (within the agent's grant) | preview |
| [`POST /api/v1/call/stream`](https://docs.cmdop.ai/reference/http/post-call-stream.md) | owner or agent token (within the agent's grant) | preview |
| [`GET /api/v1/calls`](https://docs.cmdop.ai/reference/http/get-calls.md) | owner token | preview |
| [`GET /api/v1/machines`](https://docs.cmdop.ai/reference/http/get-machines.md) | owner or agent token | preview |
| [`GET /api/v1/tools`](https://docs.cmdop.ai/reference/http/get-tools.md) | owner or agent token | preview |
| [`GET /api/v1/usage`](https://docs.cmdop.ai/reference/http/get-usage.md) | owner token | preview |
