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

# REST API reference

> Every public call, its fields and its answers. These pages are generated from the API's OpenAPI file, so they describe the API as it is.

Base URL: `https://api.safeconduct.ai`

## Your key

Keys start with `sy_live_`. With the native API send yours as `Authorization: Bearer`, or as `X-API-Key` where that header can't be set. The two drop-in formats take it where their clients already put it: `clientKey` in the body, or the `key` parameter.

## Native API

For new code. JSON in and out, the key in a header, and every answer carries the receipt.

| Method | Address | Call | What it does |
| - | - | - | - |
| `POST` | `/v1/tasks` | Create a task | Create a captcha task |
| `POST` | `/v1/tasks/solve` | Solve and wait | Create a captcha task and wait for its result |
| `GET` | `/v1/tasks/{id}` | Read a task | Read a captcha task |
| `POST` | `/v1/tasks/{id}/report` | Report a token | Report whether a solved task's token worked |
| `GET` | `/v1/balance` | Balance | Wallet balance |
| `GET` | `/v1/stats/providers` | Provider statistics | Public provider statistics |
| `GET` | `/v1/pricing` | Pricing | Public pricing (the top-up fee and worked examples) |

## createTask format

For clients written for Anti-Captcha, CapSolver, CapMonster or 2Captcha's newer API. The key goes in the body as `clientKey`; every answer is HTTP 200, and `errorId` above 0 means an error.

| Method | Address | Call | What it does |
| - | - | - | - |
| `POST` | `/createTask` | createTask | Create a task (Anti-Captcha / CapSolver compatible) |
| `POST` | `/getTaskResult` | getTaskResult | Read a task (Anti-Captcha / CapSolver compatible) |
| `POST` | `/getBalance` | getBalance | Wallet balance (Anti-Captcha / CapSolver compatible) |
| `POST` | `/reportIncorrectRecaptcha` | reportIncorrectRecaptcha | Report a rejected token (Anti-Captcha compatible) |
| `POST` | `/reportCorrectRecaptcha` | reportCorrectRecaptcha | Report an accepted token (Anti-Captcha compatible) |

## 2Captcha format

For clients of 2Captcha's original API. Parameters in the query or a form; plain-text answers, or JSON with `json=1`.

| Method | Address | Call | What it does |
| - | - | - | - |
| `GET` or `POST` | `/in.php` | in.php | Create a task (2Captcha in.php) |
| `GET` or `POST` | `/res.php` | res.php | Read a task or the balance (2Captcha res.php) |

## Versions

Within `/v1`, changes only add: new calls, new optional fields, new values. Ignore fields you don't know and accept values you haven't seen. Anything else would ship as `/v2`, side by side.

The spec these pages are generated from: [openapi.yaml](https://api.safeconduct.ai/openapi.yaml).


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