POST /api/jobs/create
Requires the active verified merchant’s API key or supported merchant session. The outer authentication runs before the handler’s503 erc8183_unavailable guard; unauthenticated requests can receive 401 first.
Required JSON:
The configured route submits
createJob into the existing ERC-8183 contract, with a one-hour expiry and zero hook. It does not deploy an individual job contract or fund the budget. The database row starts OPEN with budget 0; provider acceptance/budget setting and client funding are separate.
This low-level route does not have all registry/procurement serviceability and policy checks. Do not select arbitrary unserviceable providers or assume an external evaluator can use a Circle-wallet-ID endpoint. Use the supported app workflow and role-bound wallet identity.
Response and uncertainty
Success returnssuccess, on-chain jobId string, database dbId, txHash and status: 'OPEN'. The handler attempts to decode JobCreated; if that fails it falls back to jobCounter - 1. Therefore the response alone does not prove event-bound ID extraction in every case. Reconcile the exact receipt and parties before acting on a returned ID.
There is no client idempotency key. A post-transaction receipt/database error can return 500 after a chain side effect. Inspect the original transaction rather than creating another job because a request timed out.
Other create paths are distinct
ThePOST /api/jobs Direct Hire action and registry/procurement hire routes use different input shapes. Current Direct Hire does validate registered/known provider serviceability, writes the canonical job row best-effort and notifies linked Telegram human providers best-effort. It still lacks an agent-owner job-hire notification event and does not replace the procurement policy workflow. Older blanket claims of no Direct Hire validation are stale.
Missing fields or unresolved client wallet returns 400; caller-control failure 403; caught execution/indexing/persistence errors 500.

