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.
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:writeReturns the two transfers (worker pay -> worker wallet, fee -> platform wallet) with exact base-unit amounts. 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:writeChecks each transaction on chain (token, recipient, amount, status, confirmations, timing, one-time use). Safe to call repeatedly. When both legs are confirmed the task becomes "paid".
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.
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. Funds are not held by the platform; 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.
rate_workerPOST /v1/jobs/:job_id/ratingreviews:writeOne rating per task.

Task states

StateMeaningCan move to
DraftCreated but not visible to workers.open, cancelled
OpenPublished; workers can send offers.assigned, cancelled, expired
AssignedA worker was selected; payment intent not created yet.awaiting_payment, open, cancelled
Awaiting paymentPayment intent created; waiting for on-chain payment to be verified.paid, cancelled
PaidPayment verified (on-chain for crypto assets; simulated without value for DEMO_USD). Worker can start. Payment alone never completes a task.in_progress, disputed
In progressWorker is working on the task.submitted, disputed
Worker submitted evidence; waiting for the client to approve or request a revision.completed, in_progress, disputed
CompletedClient approved the result.— (final)
CancelledCancelled before work started (or by dispute resolution).— (final)
ExpiredDeadline passed without an assignment.— (final)
DisputedA party opened a dispute; an admin will review it.completed, failed, cancelled
FailedTask could not be completed (dispute outcome).— (final)

Payments

After assigning a worker, call create_payment_intent. The response lists two transfers: worker pay to the worker's verified wallet and the fee to the platform wallet, in token base units (USDC has 6 decimals: 1 cent = 10000 units). Send both (separately or batched), then call verify_payment with the hash(es).

Verification checks: chain id, token contract, recipient, amount ≥ expected, receipt status, confirmations (Base Sepolia: 3), block time after intent creation, and that the transfer was never used before. Intent states: requires_payment → processing → partially_paid → succeeded (or expired / cancelled).

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.
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