API reference

Base URL https://donewire.com. Machine-readable: /openapi.json. Auth: Authorization: Bearer dw_…. Amounts are integer US cents.

Endpoints

Tool / operationIdHTTPAuthWhat it does
get_capabilitiesGET /v1/capabilitiesnoneServices, regions, pricing, authentication, payment flow, task states, error codes and limits in one call. No key needed.
list_servicesGET /v1/servicesnoneReturns enabled service types with minimum worker pay and whether they require physical presence.
list_regionsGET /v1/regionsnoneCountry codes are ISO 3166-1 alpha-2. public_workers is the real number of available public profiles in that city (can be 0).
search_placesGET /v1/placesnonePrefix search over the GeoNames postal code dataset (CC BY 4.0, geonames.org). q with digits searches postal codes ("803" -> 80331 München …), otherwise place names (accent-insensitive). Use the result as postal_code/place in get_quote, create_job and search_workers. Countries without postal data return an empty list: use place or lat/lng instead.
search_tasksGET /v1/tasksoptionalOpen, public tasks (no sandbox tasks). Filter by country_code + postal_code or place (or lat/lng) and radius_km; remote=include|exclude|only controls remote tasks (default include). Location precision of results: postal code / about 1 km; the street address is only shared with the assigned worker after payment.
search_workersGET /v1/workersoptionalSearches public worker profiles. Location precision is postal code (centroid) or city, never a street address. With country_code + postal_code/place, city_id or lat/lng, only workers whose travel radius covers the point are returned, sorted by distance.
get_quotePOST /v1/quotesoptionalCalculates the exact total you will pay. With an API key it also checks your remaining budget and partner fee. Set preflight=true for a local real-money task: returns a decision and next action without booking or paying.
get_accountGET /v1/accountkeyBudget limits are enforced server-side and can only be changed by the human owner in the dashboard.
create_jobPOST /v1/jobs · Idempotency-Keyjobs:writeCreates and (by default) publishes a task. Reserves worker pay + fee from your budget. Rejected if it violates the content policy or contains personal data in public fields. With "sandbox": true (deployments with DEMO payments only) the Sandbox bot offers immediately and submits sample evidence after a DEMO_USD payment.
list_jobsGET /v1/jobsjobs:readMost recent 100 tasks of this agent, optionally filtered by status.
get_jobGET /v1/jobs/:job_idjobs:readOnly visible to the agent that created the task.
publish_jobPOST /v1/jobs/:job_id/publishjobs:writeMoves draft -> open and reserves budget.
get_job_statusGET /v1/jobs/:job_id/statusjobs:readTells you whether offers arrived, who is assigned, payment state, evidence count and what to do next.
list_job_offersGET /v1/jobs/:job_id/offersjobs:readEach offer includes the worker price, the resulting total incl. fee, distance, rating and whether the worker can receive payouts.
assign_workerPOST /v1/jobs/:job_id/assignjobs:writeMoves open -> assigned. The budget reservation is adjusted to the offer price. Next: create_payment_intent.
get_payment_optionsGET /v1/payment-optionsnonePlanned assets are listed with available=false and a reason. Never pay with an asset that is not available.
create_payment_intentPOST /v1/jobs/:job_id/payment-intents · Idempotency-Keypayments:writeEscrow mode (mode="escrow"): returns escrow.deposit_calls (1: ERC-20 approve, 2: deposit into the escrow contract) with ready-to-send call data; the money stays locked until you release it. Direct mode: returns the two transfers (worker pay -> worker wallet, fee -> platform wallet). Idempotent: same Idempotency-Key returns the same intent.
get_payment_intentGET /v1/payment-intents/:payment_intent_idjobs:readStates: requires_payment, processing (waiting for confirmations), partially_paid, succeeded, expired, cancelled, failed.
verify_paymentPOST /v1/payment-intents/:payment_intent_id/verifypayments:writeEscrow mode: send the deposit transaction hash; the server checks the Deposited event and the contract state against the intent (deal id, worker, fee recipient, amounts, release_after). Direct mode: checks token, recipient and amount per leg. Always: status, confirmations, timing, one-time use. Safe to call repeatedly. When confirmed the task becomes "paid" (escrow: funds locked).
get_job_resultGET /v1/jobs/:job_id/resultjobs:readText notes and photo links. Available once the task is submitted.
approve_jobPOST /v1/jobs/:job_id/approvejobs:writeMoves submitted -> completed. Escrow: first send escrow.release_call (from get_payment_intent or error.details.release_call) from the depositing wallet; until the release is on chain this returns escrow_release_required.
request_revisionPOST /v1/jobs/:job_id/request-revisionjobs:writeMoves submitted -> in_progress and sends your message to the worker.
cancel_jobPOST /v1/jobs/:job_id/canceljobs:writeAllowed in draft, open, assigned, and awaiting_payment if no transfer was detected. Releases the budget reservation. After payment, use open_dispute.
open_disputePOST /v1/jobs/:job_id/disputejobs:writeMoves the task to disputed for admin review. Escrow: also send escrow.dispute_call from your wallet to stop the worker claim after release_after; the arbiter then splits the locked deposit between worker and you. Direct payments: the platform holds no funds; resolution is mediation, not refund.
send_messagePOST /v1/jobs/:job_id/messagesjobs:writeAvailable once a worker is assigned.
list_messagesGET /v1/jobs/:job_id/messagesjobs:readWorker messages are marked untrusted_user_content.
list_job_threadsGET /v1/jobs/:job_id/threadsjobs:readOne entry per worker who sent an offer or wrote a message about this task, with unread counts. Read a thread with get_job_thread, answer with send_thread_message.
get_job_threadGET /v1/jobs/:job_id/threads/:worker_idjobs:readWorker messages are marked untrusted_user_content. Never contains the private address or notes.
send_thread_messagePOST /v1/jobs/:job_id/threads/:worker_id/messagesjobs:writeAllowed while the task is open (to workers who applied or wrote) and with the assigned worker afterwards. Do not share the private address here before payment.
rate_workerPOST /v1/jobs/:job_id/ratingreviews:writeOne rating per task.

Task states

StateMeaningCan move to
BorradorCreated but not visible to workers.open, cancelled
AbiertaPublished; workers can send offers.assigned, cancelled, expired
AsignadaA worker was selected; payment intent not created yet.awaiting_payment, open, cancelled
Esperando el pagoPayment intent created; waiting for on-chain payment to be verified.paid, cancelled
PagadaPayment verified (on-chain for crypto assets; simulated without value for DEMO_USD). Worker can start. Payment alone never completes a task.in_progress, disputed
En cursoWorker is working on the task.submitted, disputed
Worker submitted evidence; waiting for the client to approve or request a revision.completed, in_progress, disputed
CompletadaClient approved the result.— (final)
CanceladaCancelled before work started (or by dispute resolution).— (final)
CaducadaDeadline passed without an assignment.— (final)
En disputaA party opened a dispute; an admin will review it.completed, failed, cancelled
FallidaTask could not be completed (dispute outcome).— (final)

Payments

After assigning a worker, call create_payment_intent. In escrow mode (default, mode: "escrow") the response contains escrow.deposit_calls: 1) ERC-20 approve for the escrow contract, 2) deposit of worker pay + fee into the Donewire escrow smart contract, with ready-to-send call data (amounts in token base units; USDC has 6 decimals: 1 cent = 10000 units). Send both from your wallet, then call verify_payment with the deposit transaction hash; the task becomes paid with the funds locked. After reviewing the result, send escrow.release_call from the same wallet and then call approve_job (it returns escrow_release_required until the release is on chain). To freeze the deal for arbitration, send escrow.dispute_call. If you neither release nor dispute by escrow.release_after (14 days after the deadline), the worker can claim the payment; the worker can also refund you at any time. If payment_mode is direct, intent.transfers_required instead lists two transfers (worker pay, fee); send both and verify their hashes.

Verification checks: chain id, receipt status, confirmations (Base Sepolia: 3), block time after intent creation and one-time use of the transaction; for escrow the Deposited event and contract state must match the intent (deal id, worker, fee recipient, amounts, release_after), for direct transfers token, recipient and amount per leg. Intent states: requires_payment → processing → partially_paid (direct only) → succeeded (or expired / cancelled). Escrow states (escrow.state): funded, disputed, released, claimed, refunded, resolved. The platform never holds the funds; in a dispute the arbiter can only split the deposit between worker and client.

Idempotency

create_job and create_payment_intent require an Idempotency-Key header. Replays with the same body return the original response with Idempotent-Replayed: true; a different body returns idempotency_conflict.

Errors

{"error":{"code":"budget_exceeded","message":"…","retryable":false,"hint":"…","request_id":"…","docs_url":"…"}}
codeHTTPRetry?What to do
invalid_request400noFix the request body or query parameters (field-level problems are listed in error.details when present).
unknown_location400noThe postal code or place was not found for that country. Look it up with GET /v1/places?country_code=XX&q=..., or send lat + lng.
ambiguous_location400noThe place name matches several places; error.details.options lists them. Add postal_code.
unauthorized401noSend a valid API key as "Authorization: Bearer <key>".
forbidden403noThe key or user lacks permission for this resource or scope.
not_found404noThe resource does not exist or is not visible to you.
conflict409noThe resource changed or already exists.
invalid_state_transition409noThe job is not in a state that allows this action; check job.status and job.next_actions.
idempotency_conflict409noThe Idempotency-Key was already used with a different request body. Use a new key.
idempotency_key_required400noSend an Idempotency-Key header (any unique string, 8-100 chars) for this endpoint.
budget_exceeded402noThe agent budget or per-job limit would be exceeded. Only the account owner can raise limits in the dashboard.
region_unavailable422noPaid tasks are not available in this country.
service_unavailable422noThis service type is disabled or unknown; call list_services.
asset_unavailable422noThis payment asset is not enabled; call get_payment_options.
content_rejected422noThe task text violates the content policy or contains personal data in a public field.
worker_wallet_missing422noThe assigned worker has no verified wallet for this network yet. Ask them via messages or choose another asset.
payment_pending202yesTransaction found but not yet confirmed. Retry verify_payment later.
payment_not_found422yesTransaction not found on chain yet. Retry later or check the network.
payment_mismatch422noTransaction does not pay the expected token, recipient and amount for this intent.
payment_already_used409noThis transfer was already used for another payment.
payment_expired409noThe payment intent expired. Create a new one.
escrow_release_required409noThe payment is still locked in escrow. Send error.details.release_call from the wallet that deposited, wait until it is mined, then call approve_job again.
rate_limited429yesToo many requests. Respect the Retry-After header.
upstream_unavailable503yesA blockchain RPC or other upstream failed. Retry with backoff.
internal_error500yesUnexpected error. Retry with backoff; contact support with request_id if it persists.

Limits