# Peet — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Solve Cloudflare Turnstile verification challenges on the peet.ws demo site and retrieve the token needed to complete the challenge. Use the returned verification token to proceed past security checkpoints and access protected content.

**Category:** Developer Tools | **Website:** [peet.ws/turnstile-test/managed.html](https://peet.ws/turnstile-test/managed.html) | **Docs:** [parse.bot/marketplace/6bf3334f-8cc1-4a73-a6d6-8ab0b46dbd96/peet-ws-api](https://parse.bot/marketplace/6bf3334f-8cc1-4a73-a6d6-8ab0b46dbd96/peet-ws-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-peet-ws-api-6bf3334f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### solve_challenge

Solves a Cloudflare Turnstile challenge on the peet.ws demo site. Returns the solved token for the specified challenge type. The token is freshly generated on each call.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `challenge_type` | string | No | The Turnstile challenge variant to solve. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-peet-ws-api-6bf3334f/solve_challenge \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"challenge_type":"<string>"}'
```
