> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# API overview

> Use Mouter's REST API to discover tools, submit work, and read task data.

The production REST base URL is `https://api.mouter.ai`. The test environment uses `https://mouter-api.moox-dev.com`. Requests that act on a credential use an [API key or OAuth access token](/docs/authentication.md) in the `Authorization` header. JSON requests use `Content-Type: application/json`.

Browser sign-in sessions use host-only `__Host-` cookies, which are not sent to the API subdomain. Browser code that calls the API host directly must send `Authorization: Bearer <API key or OAuth token>`. Cross-origin calls from `https://mouter.ai` are allowed by CORS. Session, OAuth, and consent pages stay on `https://mouter.ai`.

| Use case | Reference |
| - | - |
| List tools and inspect their schemas | [Tools and prices](/docs/api-reference/tools.md) |
| Run a tool with JSON input | [Execution](/docs/api-reference/execute.md) |
| Retrieve a task or list recent tasks | [Tasks](/docs/api-reference/tasks.md) |
| Check credits, usage, or a charge | [Credentials and billing](/docs/api-reference/billing.md) |

To call a tool, find it under its platform in Social Media, E-commerce, Generative AI, or Other. The request body holds the tool's inputs. Save the task ID from the `202` response and read the task to get the result. Each endpoint shows the tool's result schema under `200`, where an idempotent retry can return an existing task with its result.

Responses use a JSON envelope with `code`, `message`, `data`, and `request_id`. A successful response has `code: 0`. List responses can include `page.next_cursor`. For failures, check the HTTP status and error code and retain the request ID for troubleshooting.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.