# What is Peak Solutions?

> Solve bot checks and captchas with one API.

Source: https://docs.peak.fo/docs

Peak Solutions is an API that gets your automation past bot checks and captchas. When your code hits a challenge, it sends the details to Peak Solutions. Peak Solutions solves it and returns what the site expects, such as a token or clearance cookies, and your code carries on.

Today Peak Solutions solves Cloudflare [Turnstile](/docs/tasks/turnstile) and Cloudflare's [5-second challenge](/docs/tasks/cloudflare-5s), with more challenge types on the way.

## One endpoint for every challenge [#one-endpoint-for-every-challenge]

Every solve goes to `POST /solve`. The `task_type` field says what to solve, and the other fields describe the page:

```json title="POST https://api.peak.fo/solve"
{
  "task_type": "turnstiletask",
  "url": "https://example.com/",
  "sitekey": "0x4AAAAAAA...",
  "proxy": "http://user:pass@1.2.3.4:8080"
}
```

New challenge types arrive as new task types, so your integration stays the same.

## Any language [#any-language]

It's plain HTTPS and JSON, so there's no SDK to install. If your code can send an HTTP request, it can use Peak Solutions.

Every response has the same shape. Check `success`, then read `data`:

```json
{
  "success": true,
  "data": { "token": "0.AgAAAB..." }
}
```

## Pay only for what works [#pay-only-for-what-works]

Failed solves are never charged. When a solve fails, you get `"success": false`, with an `error_code` and an `error` saying why, and nothing is taken from your balance:

```json
{
  "success": false,
  "error": "Challenge was flagged - try using a different proxy with a cleaner IP reputation",
  "error_code": "challenge_flagged"
}
```

Pay per solve from your balance, or buy a package of solves.

## Your proxy or ours [#your-proxy-or-ours]

Some tasks run through your own proxy, so the site sees the same IP that will use the result. Others run through Peak Solutions' proxies, so you don't need one.
