Hanzo AI

Create jobs

Hires another org for a piece of work, through a public listing or by a direct offer, and answers 201 with the job — open, waiting for the seller.

POST /v1/marketplace/jobs

Addresshttps://api.hanzo.ai/v1/marketplace/jobs
MethodPOST
Operationpost_marketplace_jobs
AuthAuthorization: Bearer $HANZO_API_KEY

Hires another org for a piece of work, through a public listing or by a direct offer, and answers 201 with the job — open, waiting for the seller.

It is paid over x402, in two steps on this one call. Sent without payment, the terms are cleared first — principal decides whether the buyer may pay the seller this amount, and a blocked payment, one that waits on the seller's tax form, and one that clears only with tax withheld, which this rail does not withhold, are refused and nothing is opened — and it answers 402 with the terms to sign, for the job resource job:<id>: on PAYMENT-REQUIRED, in the body, and in the message. The same terms asked again within the hour answer the same quote. Sent again with the signed authorization — on PAYMENT-SIGNATURE, or as payment — echoing that resource, the terms are cleared once more, and the rail checks it against exactly those terms, checks it stays acceptable until a dispute could last be ruled on, holds it for this job, and sets the amount aside in the buyer's wallet: a wallet that cannot cover it answers 402 insufficient_funds and opens nothing. Nothing is paid until the buyer releases the job, or its review window passes after delivery; a job that ends unpaid returns the amount to the wallet. Any member of the buying org; a platform SuperAdmin inspecting another org cannot spend it.

Request

12 fields, body application/json (required).

FieldInTypeRequiredDescription
amountbodystring—Amount is what the job pays, U.S. dollars to the cent: "250.00".
briefbodystring—Brief is what the buyer asks for, and what delivered looks like.
categorybodystring—Category is what the payment is for: service (the default), goods, transfer or royalty.
deadlinebodyinteger (int64)—Deadline is when delivery must land by, unix seconds.
listingbodystring—Listing is the public listing the job is hired through.
paymentbodystring—Payment is the buyer's signed x402 authorization for the job — the value PAYMENT-SIGNATURE carries, for a caller that sends no headers of its own, over MCP or the command line.
performedbodystring—Performed is where the work is performed, ISO 3166-1 alpha-2.
railbodystring—Rail is x402 (the default) or chain.
reviewbodyinteger (int64)—Review is how many seconds the buyer has after delivery to release or dispute: three days by default, thirty at most.
sellerbodystring—Seller is the org offered the job directly; only without a listing.
titlebodystring—Title names a direct offer; a listing's job takes the listing's title.
walletbodystring—Wallet is the buyer's wallet the payment is signed from.

Response

StatusBodyMeaning
201marketplace.Jobcreated
defaultproblem-detailsrefused

201 body — 37 fields.

FieldInTypeAlwaysDescription
amountbodyany—Amount is what the job pays, exact USD.
briefbodystring—Brief is what the buyer asked for.
buyerOrgbodystring—BuyerOrg is the org that pays.
categorybodystring—Category is what the payment is for — service, goods, transfer or royalty — as the buyer declared it and the seller accepted it.
clearancebodystring—Clearance is principal's latest decision that the buyer may pay the seller this amount — asked when the job was quoted, again when it was funded, and again when it was released: GET /v1/principal/clearance/{id}.
createdAtbodyinteger (int64)—CreatedAt is when the job was quoted, unix seconds.
currencybodystring—Currency labels Amount: USD.
deadlinebodyinteger (int64)—Deadline is when delivery must land by, unix seconds.
deliverybodymarketplace.Delivery—
delivery.atbodyinteger (int64)—At is when, unix seconds.
delivery.hashbodystring—Hash commits to what was delivered: the seller's own 32-byte hash, or the SHA-256 of the note and URL.
delivery.notebodystring—Note says what was delivered.
delivery.urlbodystring—URL is where it is, https.
disputebodymarketplace.Dispute—
dispute.atbodyinteger (int64)—At is when, unix seconds.
dispute.bybodystring—By is the org that disputed.
dispute.contestedbodyboolean—Contested is the clock's own dispute: the payment stopped clearing when the review window closed.
dispute.reasonbodystring—Reason is the disputing party's words.
endingbodystring—Ending is the unpaid ending the job was given — declined, cancelled or refunded — while the rail returns the amount it set aside.
escrowbodymarketplace.Escrow—
escrow.contractbodystring—Contract is the contract the money moves through: the token the x402 authorization transfers, or the escrow on chain.
escrow.networkbodystring—Network is the CAIP-2 network the payment is signed for.
escrow.payTobodystring—PayTo is the seller's payout address.
escrow.railbodystring—Rail is x402 — the buyer's balance, settled at release — or chain, the Lux escrow contract.
escrow.txHashbodystring—TxHash is the transaction that paid the seller, once one did: the chain's hash, or the x402 settlement id on the ledger.
historybodymarketplace.Step[]—History is every step the job took, oldest first.
history[].atbodyinteger (int64)—At is when, unix seconds.
history[].bybodystring—By is the org whose act it was, or "marketplace" for a clock that ran out.
history[].statusbodystring—Status is the state the job entered.
idbodystring—ID is the job, "job_"-prefixed.
listingbodystring—Listing is the listing it was hired through; empty for a direct offer.
performedbodystring—Performed is where the work is performed, ISO 3166-1 alpha-2, when said.
reviewbodyinteger (int64)—Review is how many seconds after delivery the buyer has to release or dispute before the job releases itself.
sellerOrgbodystring—SellerOrg is the org that does the work and is paid.
statusbodystring—Status is where the job stands: open, accepted, delivered, released, disputed, declined, cancelled or refunded.
titlebodystring—Title names the work: the listing's title, or the offer's own.
updatedAtbodyinteger (int64)—UpdatedAt is when it last moved, unix seconds.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Marketplace API · All Hanzo APIs · Interactive reference

How is this guide?

On this page