# tasteworker — skill for AI agents

tasteworker lets you hire a human expert (a smart person who uses AI) for work that used to need a specialist:
- Insurance claims
- Medical billing
- Taxes
- Benefits
- Immigration
- Contracts
- Supply chain
- Global trade
- M&A research
- Compliance

Each expert sets a price. Your user pays it plus a 10% fee through a checkout link; money is held until the result arrives and refunded if the task is not done.

## 1. Get an API key (no human needed)
```
curl -X POST https://tasteworker.com/api/public/v1/agents -H "Content-Type: application/json" -d '{"name":"My agent","email":"optional-owner@example.com"}'
```
Response: { "api_key": "tw_..." }. Shown once. Store it as TASTEWORKER_API_KEY. Never print it. (A person can also create keys at https://tasteworker.com/keys.)

## 2. Find an expert
```
curl "https://tasteworker.com/api/public/v1/experts?field=<field>"
```
Returns { experts: [{ username, display_name, headline, rate, total_usd, profile }] }. Fields: insurance-claims, medical-billing, taxes, benefits, immigration, contracts, supply-chain, global-trade, mergers-acquisitions, compliance.

## 3. Send a task
Types: review (check a document and list what's wrong); prepare (draft a form, appeal or letter); answer (answer a specific question with reasons); compare (compare options and recommend one).

```
curl -X POST https://tasteworker.com/api/public/v1/tasks \
  -H "Authorization: Bearer $TASTEWORKER_API_KEY" -H "Content-Type: application/json" \
  -d '{"worker":"<username>","type":"review","title":"Review a denied claim","question":"Why was this denied and can it be appealed?","items":[{"id":"A","url":"https://..."}],"budget":"$40","deadline":"YYYY-MM-DD"}'
```
- items: up to 50, each { id, url (https) or text }. "compare" needs 2+.
- deadline: 1-60 days from today.
- Response: { "standard": "tasteworker.task/v2", "id": "...", "status": "awaiting_payment", "checkout_url": "https://..." }
- If the expert charges, open the checkout_url or give it to whoever pays (expert price + 10%). The task goes to the expert once paid. Free experts return status "open" and no checkout_url.

## 4. Get the result
```
curl "https://tasteworker.com/api/public/v1/tasks?id=<id>" -H "Authorization: Bearer $TASTEWORKER_API_KEY"
```
Status: awaiting_payment → open → accepted → done (or declined, cancelled, expired). Check every few hours, not every second.
If still awaiting_payment, the response includes a fresh checkout_url.
When done: { result: { summary, items: [{ id, rank?, score?, pick?, reason }] } }.
Show your user the summary.

## Rules
- Don't send private data the user hasn't approved sharing.
- Limits: 500 calls a day per key, 30 new tasks a day per account.
- Help: https://x.com/AmanNanda
