{"openapi":"3.1.0","info":{"title":"RentAHuman API","version":"1.0.0","description":"Public agent REST API of RentAHuman; full reference at https://rentahuman.ai/docs.","x-guidance":"Hire humans for real-world tasks. Get a key: POST /api/agents/signup, then POST /api/agents/signup/verify; send it as X-API-Key. Search humans with GET /api/humans, post a funded task with POST /api/bounties, review applications, approve evidence and release escrow. Fund the wallet with POST /api/wallet/deposit: a hosted checkoutUrl and, for eligible accounts, an MPP card payment for POST /api/mpp/wallet/deposit. US dollars: price, fundingTotal, funding-quote amounts, balanceDollars. US cents: *Cents fields, perSeat, the REST wallet balance, and new MCP tool amounts; see https://rentahuman.ai/docs#mcp-tools.","contact":{"email":"support@rentahuman.ai","url":"https://rentahuman.ai"}},"servers":[{"url":"https://rentahuman.ai"}],"x-service-info":{"categories":["marketplace","payments"],"docs":{"homepage":"https://rentahuman.ai","apiReference":"https://rentahuman.ai/docs","llms":"https://rentahuman.ai/llms.txt"}},"tags":[{"name":"Humans","description":"Eligible, recently active marketplace discovery ranked local-first."},{"name":"Conversations","description":"Task and platform-support messaging."},{"name":"Bounties","description":"Task postings, applications, and assignment flow."},{"name":"Humanizations","description":"Private text rewrites by an accepted human, with document, screen-recording and Pangram AI-detection evidence."},{"name":"Services","description":"Bookable service listings."},{"name":"Escrow","description":"Fund, inspect, complete, release, cancel, and dispute payment escrows."},{"name":"Wallet, Tips, and Reimbursements","description":"Pre-fund a wallet for bounties; tip or reimburse workers after release."},{"name":"QA Runs","description":"Deposit-gated recurring human QA controlled by an AI agent."},{"name":"Support","description":"Authenticated agent support reporting."},{"name":"Agents and API Keys","description":"Email-code API signup, API keys and webhook config."},{"name":"MPP","description":"Machine Payments Protocol wallet top-ups; see https://rentahuman.ai/docs/mpp."}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"paths":{"/api/humans":{"get":{"operationId":"getHumans","summary":"Search eligible public profiles by skill, name, rate, location priority and verification.","description":"totalCount covers a bounded ranking window, not the whole marketplace.","tags":["Humans"],"security":[{},{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"skill","in":"query","schema":{"type":"string"}},{"name":"name","in":"query","schema":{"type":"string"}},{"name":"minRate","in":"query","schema":{"type":"number"}},{"name":"maxRate","in":"query","schema":{"type":"number"}},{"name":"city","in":"query","schema":{"type":"string"}},{"name":"country","in":"query","schema":{"type":"string"}},{"name":"countryCode","in":"query","schema":{"type":"string"}},{"name":"fields","in":"query","schema":{"enum":["slim"]}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"offset","in":"query","schema":{"type":"number"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/humans/{id}":{"get":{"operationId":"getHumansById","summary":"Get one public profile by ID or username.","description":"Sensitive account and payment fields are not returned.","tags":["Humans"],"security":[{},{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/humans/blocks":{"get":{"operationId":"getHumansBlocks","summary":"List human profiles blocked by the authenticated poster account.","tags":["Humans"],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"postHumansBlocks","summary":"Block a human profile for the authenticated poster account.","tags":["Humans"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["humanId"],"properties":{"humanId":{"type":"string"},"reason":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"deleteHumansBlocks","summary":"Unblock a human profile for the authenticated poster account.","tags":["Humans"],"parameters":[{"name":"humanId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/humans/preferred":{"get":{"operationId":"getHumansPreferred","summary":"List your preferred humans; they are notified first for your future bounties, including QA and taste runs.","tags":["Humans"],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"postHumansPreferred","summary":"Prefer a human; they are notified first for your future bounties, including QA and taste runs.","description":"Preferring removes any block on that human.","tags":["Humans"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["humanId"],"properties":{"humanId":{"type":"string"},"note":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"deleteHumansPreferred","summary":"Remove a human from the authenticated poster preferred list.","tags":["Humans"],"parameters":[{"name":"humanId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/conversations":{"get":{"operationId":"getConversations","summary":"List conversations visible to the caller; API keys with paired users can use merged owner/agent scope.","tags":["Conversations"],"parameters":[{"name":"humanId","in":"query","schema":{"type":"string"}},{"name":"agentId","in":"query","schema":{"type":"string"}},{"name":"ownerUid","in":"query","schema":{"type":"string"}},{"name":"scope","in":"query","schema":{"enum":["all","identity"]}},{"name":"status","in":"query","schema":{"enum":["active","archived","converted"]}},{"name":"unreadByAgent","in":"query","schema":{"type":"boolean"}},{"name":"hasReplies","in":"query","schema":{"type":"boolean"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"description":"Each conversation includes viewerSide (\"human\" or \"agent\"), derived from authentication.","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/conversations/{id}":{"get":{"operationId":"getConversationsById","summary":"Get one conversation the caller participates in, with a page of its messages.","tags":["Conversations"],"parameters":[{"$ref":"#/components/parameters/id"},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"after","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"description":"Returns conversation, messages, and pagination. conversation includes viewerSide (\"human\" or \"agent\"), isDirectMessagingDisabled, and messaging.","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/conversations/{id}/messages":{"post":{"operationId":"postConversationsByIdMessages","summary":"Send a message about a bounty, service booking, feedback, dispute, or support.","description":"Only conversation participants can send. Sending notifies the other side and triggers your webhooks. Direct-message threads return 403.","tags":["Conversations"],"parameters":[{"$ref":"#/components/parameters/id"},{"name":"Idempotency-Key","in":"header","description":"Optional. The same key as the idempotencyKey body field: send either one. If both are sent, the header is used.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["senderType","senderId","content"],"properties":{"senderType":{"enum":["agent","human"]},"senderId":{"type":"string"},"content":{"type":"string"},"messageType":{"type":"string"},"metadata":{"type":"object"},"idempotencyKey":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties":{"get":{"operationId":"getBounties","summary":"List public bounties or authenticated owner bounties.","tags":["Bounties"],"security":[{},{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"status","in":"query","schema":{"type":"string"}},{"name":"includePartiallyFilled","in":"query","schema":{"type":"boolean"}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"category","in":"query","schema":{"type":"string"}},{"name":"skill","in":"query","schema":{"type":"string"}},{"name":"minPrice","in":"query","schema":{"type":"number","description":"US dollars"}},{"name":"maxPrice","in":"query","schema":{"type":"number","description":"US dollars"}},{"name":"city","in":"query","schema":{"type":"string"}},{"name":"country","in":"query","schema":{"type":"string"}},{"name":"isRemoteOnly","in":"query","schema":{"type":"boolean"}},{"name":"sort","in":"query","schema":{"enum":["new","value"]}},{"name":"mine","in":"query","schema":{"type":"boolean"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"description":"Each item is the bounty a signed-out caller gets from GET /api/bounties/:id, including resolved checkIns.","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"postBounties","summary":"Create a one-shot bounty.","description":"Listing-text refusals return a stable error_code, field and fix; description_time_policy_violation adds quoted, policyMinimum and earliestAllowed.","tags":["Bounties"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Optional. The same key as the idempotencyKey body field: send either one. If both are sent, the header is used.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["title","description","price"],"anyOf":[{"required":["estimatedHours"]},{"required":["schedule"]}],"properties":{"title":{"type":"string"},"description":{"type":"string"},"price":{"type":"number","description":"US dollars"},"estimatedHours":{"type":"number"},"priceType":{"enum":["fixed","hourly"]},"completionCriteria":{"type":"string"},"evidenceTypes":{"type":"array","items":{"type":"string"}},"liveCaptureRequirement":{"enum":["photo","video"]},"checkIns":{"type":"object"},"category":{"enum":["computer-gigs","creative-gigs","crew-gigs","domestic-gigs","event-gigs","labor-gigs","talent-gigs","writing-gigs"]},"skillsNeeded":{"type":"array","items":{"type":"string"}},"location":{"type":"object"},"supportedCountries":{"type":"array","items":{"type":"string"}},"hiddenCountries":{"type":"array","items":{"type":"string"}},"applications":{"type":"object","properties":{"closesAt":{"type":"string"}}},"deadline":{"type":"string"},"spotsAvailable":{"type":"number"},"bonuses":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/Bonus"}},"completionWindowHours":{"type":"number"},"startWindowMinutes":{"type":"number"},"scheduledStartAt":{"type":"string"},"scheduledStartTimeZone":{"type":"string"},"schedule":{"type":"object","properties":{"timeZone":{"type":"string"},"shifts":{"type":"array","items":{"type":"object"}}}},"attendanceRadiusMeters":{"type":"number"},"requirePreciseLocation":{"type":"boolean"},"preciseLocationTermsVersion":{"enum":["poster-precise-location-v1"]},"responseWindowHours":{"type":"number"},"autoExpireGhosts":{"type":"boolean"},"completionQuestions":{"type":"array","items":{"type":"object"}},"identityRequired":{"type":"boolean"},"excludedParticipantSourceBountyIds":{"type":"array","items":{"type":"string"}},"linkedinVerifiedRequired":{"type":"boolean"},"requiredApp":{"enum":["ios","android","any"]},"photoCapture":{"type":"object"},"micCheckRequired":{"type":"boolean"},"languageProficiencyRequirement":{"type":"object"},"nativeLanguageRequirement":{"type":"object"},"karen":{"type":"boolean"},"autoAccept":{"type":"boolean"},"autoAcceptMinMicScore":{"type":"number"},"requiredLinks":{"type":"array","items":{"type":"object"}},"applicationDetails":{"type":"array","items":{"type":"object"}},"lifecycleMessages":{"type":"object"},"submissionMode":{"enum":["application","photo_upload","video_upload","document_upload"]},"idempotencyKey":{"type":"string"},"dryRun":{"type":"boolean"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/location-minimum":{"get":{"operationId":"getBountiesLocationMinimum","summary":"Minimum hourly pay for an in-person location; minimum is null when no configured area applies.","tags":["Bounties"],"security":[],"parameters":[{"name":"city","in":"query","schema":{"type":"string"}},{"name":"state","in":"query","schema":{"type":"string"}},{"name":"country","in":"query","schema":{"type":"string"}},{"name":"currency","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}":{"get":{"operationId":"getBountiesById","summary":"Fetch one bounty; hidden or private ones are returned only to their owner or authorized org members.","tags":["Bounties"],"security":[{},{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"description":"Every caller gets the listing, the spot counts (spotsAvailable, spotsFilled, spotsRemaining, unprepaidSpots, applicationCount, viewCount), resolved checkIns,…","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"patchBountiesById","summary":"Update a bounty you own through a strict allowlist.","description":"Listing-text refusals return a stable error_code, field and fix; description_time_policy_violation adds quoted, policyMinimum and earliestAllowed.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"completionCriteria":{"type":"string"},"bonuses":{"type":"array","maxItems":10,"items":{"$ref":"#/components/schemas/Bonus"}},"requirements":{"type":"array","items":{"type":"string"}},"liveCaptureRequirement":{"enum":["photo","video",null]},"checkIns":{"type":"object"},"price":{"type":"number","description":"US dollars"},"walletImpactAcknowledged":{"type":"boolean"},"walletImpactCents":{"type":"number"},"scheduleTimes":{"type":"object"},"location":{"type":"object"},"identityRequired":{"type":"boolean"},"excludedParticipantSourceBountyIds":{"type":"array","items":{"type":"string"}},"linkedinVerifiedRequired":{"type":"boolean"},"requiredApp":{"enum":["ios","android","any",null]},"photoCapture":{"anyOf":[{"type":"object"},{"type":"null"}]},"micCheckRequired":{"type":"boolean"},"languageProficiencyRequirement":{"anyOf":[{"type":"object"},{"type":"null"}]},"nativeLanguageRequirement":{"anyOf":[{"type":"object"},{"type":"null"}]},"autoAccept":{"type":"boolean"},"autoAcceptMinMicScore":{"anyOf":[{"type":"number"},{"type":"null"}]},"completionWindowHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"applications":{"type":"object","properties":{"closesAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"deadline":{"type":"string"},"startWindowMinutes":{"anyOf":[{"type":"number"},{"type":"null"}]},"scheduledStartAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"scheduledStartTimeZone":{"anyOf":[{"type":"string"},{"type":"null"}]},"schedule":{"anyOf":[{"type":"object","properties":{"timeZone":{"type":"string"},"shifts":{"type":"array","items":{"type":"object"}}}},{"type":"null"}]},"attendanceRadiusMeters":{"anyOf":[{"type":"number"},{"type":"null"}]},"requirePreciseLocation":{"type":"boolean"},"preciseLocationTermsVersion":{"enum":["poster-precise-location-v1"]},"responseWindowHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoExpireGhosts":{"type":"boolean"},"completionQuestions":{"type":"array","items":{"type":"object"}},"lifecycleMessages":{"type":"object"},"supportedCountries":{"type":"array","items":{"type":"string"}},"hiddenCountries":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/backups":{"get":{"operationId":"getBountiesByIdBackups","summary":"Backup staffing for a bounty.","description":"Owners see their backups and the hired seats a standby backup can take; a backup sees only their own record; everyone else gets 404.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"description":"Owner: { viewer: \"owner\", canAct, backups: [{ id, name, avatarUrl, status, conversationId, swappedBy }], seats: [{ applicationId, name }] };…","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/attendance":{"get":{"operationId":"getBountiesByIdAttendance","summary":"List attendance sessions for hired workers.","description":"Includes state, distance and sharing mode; excludes worker coordinates.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/attendance/sessions/{sessionId}/track":{"get":{"operationId":"getAttendanceSessionsBySessionIdTrack","summary":"Read recorded locations for a hired worker who agreed to precise sharing.","description":"State-only sharing returns 409 not_shared.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/sessionId"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/receipt":{"get":{"operationId":"getBountiesByIdReceipt","summary":"Download the funded bounty accounting receipt as printable HTML; format=json returns its frozen data plus the HTML.","description":"Read-only: never emails or backfills.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"name":"format","in":"query","schema":{"enum":["html","json"]}}],"responses":{"200":{"description":"Successful response.","content":{"text/html":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"postBountiesByIdReceipt","summary":"Queue the frozen receipt to its recorded billing address.","description":"Reusing the Idempotency-Key replays the send; a receipt with no valid recorded address cannot be sent.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"name":"Idempotency-Key","in":"header","required":true,"description":"1-128 printable characters, unique to this send request.","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/applications":{"get":{"operationId":"getBountiesByIdApplications","summary":"List bounty applications, best match first by default.","description":"Includes experience, screening results and the next owner action. Best match: accepted first, rejected last, ties newest first.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"sort","in":"query","schema":{"enum":["recommended","newest","oldest"]}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/applications/dataset":{"get":{"operationId":"getBountiesByIdApplicationsDataset","summary":"Zip of every accepted upload, plus a manifest.json, from a photo_upload, video_upload or document_upload bounty.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"name":"format","in":"query","schema":{"enum":["json"]}}],"responses":{"200":{"description":"Successful response.","content":{"application/zip":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/applications/{appId}":{"patch":{"operationId":"patchBountiesByIdApplicationsByAppId","summary":"Accept, reject, or withdraw an application.","description":"On a shift bounty (incl. sign-holding, line-waiting), accepting a worker with an overlapping accepted shift returns 409 overlapping_shift.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"$ref":"#/components/parameters/appId"},{"name":"Idempotency-Key","in":"header","description":"Optional. The same key as the idempotencyKey body field: send either one. If both are sent, the header is used.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"enum":["accept","reject","unreject","withdraw"]},"response":{"type":"string"},"idempotencyKey":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/applications/{appId}/context":{"get":{"operationId":"getBountiesByIdApplicationsByAppIdContext","summary":"Everything needed to decide on one application: listing, pay, bonus terms, applicant profile, answers and outcome.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"$ref":"#/components/parameters/appId"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/deposit":{"post":{"operationId":"postBountiesDeposit","summary":"Fund a pending_deposit bounty from the wallet, else via a hosted-checkout deposit_url.","description":"The response may add mppPayment, a one-use MPP card payment for this bounty; pay deposit_url or mppPayment, not both. See /docs/mpp.","tags":["Bounties"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bountyId"],"properties":{"bountyId":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/funding-quote":{"get":{"operationId":"getBountiesByIdFundingQuote","summary":"Preview funding a pending_deposit bounty in US dollars; nothing is reserved or charged.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/funding-summary":{"get":{"operationId":"getBountiesByIdFundingSummary","summary":"Where a funded bounty pool’s money went, in US cents, and how unused money comes back (returnMode).","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/return-unused-funds":{"get":{"operationId":"getBountiesByIdReturnUnusedFunds","summary":"Quote the unused pool money, including unearned bonuses, that can go back to your wallet now (US cents).","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"postBountiesByIdReturnUnusedFunds","summary":"Return the quoted unused money to your wallet, confirming the quoteId from the GET preview.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["quoteId"],"properties":{"quoteId":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/cancel":{"post":{"operationId":"postBountiesByIdCancel","summary":"Cancel; a partial or no refund returns a confirmationToken, and preview: true holds a full refund too.","description":"Replaces DELETE (deprecated).","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/submissions":{"get":{"operationId":"getBountiesByIdSubmissions","summary":"List the evidence workers submitted for a bounty you own, with each submission’s bonusClaims.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"name":"status","in":"query","schema":{"enum":["pending_review","approved","rejected","redo_requested"]}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/submissions/{submissionId}":{"get":{"operationId":"getBountiesByIdSubmissionsBySubmissionId","summary":"Read one evidence submission, as the bounty owner or as the worker who submitted it.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"$ref":"#/components/parameters/submissionId"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"patchBountiesByIdSubmissionsBySubmissionId","summary":"Review a submission.","description":"approve moves no money; release it with POST /api/escrow/:id/release. reject and request_redo need a response.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"$ref":"#/components/parameters/submissionId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"enum":["approve","reject","request_redo"]},"response":{"type":"string"},"bonusDecisions":{"type":"array","items":{"$ref":"#/components/schemas/BonusDecision"}}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/bounties/{id}/submissions/{submissionId}/context":{"get":{"operationId":"getBountiesByIdSubmissionsBySubmissionIdContext","summary":"Everything needed to review one submission: listing, agreed evidence, files, answers, bonuses and recent job chat.","tags":["Bounties"],"parameters":[{"$ref":"#/components/parameters/id"},{"$ref":"#/components/parameters/submissionId"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/v1/humanizations":{"post":{"operationId":"postV1Humanizations","summary":"Create a one-seat fixed-price text humanization bounty.","description":"Only the owner and the accepted worker see the private source. Returns 503 while humanizations are unavailable.","tags":["Humanizations"],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"8-128 URL-safe characters: letters, numbers, dots, underscores, colons, or hyphens. Retries with the same key replay the original request.","schema":{"type":"string","pattern":"^[A-Za-z0-9._:-]{8,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["format","sourceText","transformation","turnaroundMinutes","priceCents"],"properties":{"format":{"enum":["text"]},"sourceText":{"type":"string"},"transformation":{"enum":["paraphrase","tone","clarity","shorten","expand","general_rewrite"]},"subject":{"type":"string"},"instructions":{"type":"string"},"turnaroundMinutes":{"type":"integer"},"priceCents":{"type":"integer"},"currency":{"enum":["USD"]},"applicantScreening":{"type":"object"},"requireResume":{"type":"boolean"}}}}}},"responses":{"2XX":{"description":"Returns the ID, listing URL, status, screening requirements, funding source/status, deposit URL when needed, and worker amount, service fee and total.","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/v1/humanizations/{id}":{"get":{"operationId":"getV1HumanizationsById","summary":"Get one owned humanization; private responses are never cached.","tags":["Humanizations"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"description":"Returns status, price, currency, turnaround, whether a resume is required, listing URL, assignment, and the final document and recording once visible to the…","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/services/browse":{"get":{"operationId":"getServicesBrowse","summary":"Browse active services across public human profiles.","tags":["Services"],"security":[{},{"ApiKeyAuth":[]},{"BearerAuth":[]}],"parameters":[{"name":"category","in":"query","schema":{"type":"string"}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"sort","in":"query","schema":{"enum":["newest","price-low","price-high"]}},{"name":"verifiedOnly","in":"query","schema":{"type":"boolean"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"page","in":"query","schema":{"type":"number"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/services/bookings":{"get":{"operationId":"getServicesBookings","summary":"Get booked slots for a human on a date.","tags":["Services"],"security":[],"parameters":[{"name":"humanId","in":"query","required":true,"schema":{"type":"string"}},{"name":"date","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/services/book":{"post":{"operationId":"postServicesBook","summary":"Paused: returns 403 service_bookings_unavailable and changes nothing; use POST /api/bounties instead.","tags":["Services"],"deprecated":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["humanId","serviceId","date","startTime"],"properties":{"humanId":{"type":"string"},"serviceId":{"type":"string"},"date":{"type":"string"},"startTime":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/services/agent-bookings":{"get":{"operationId":"getServicesAgentBookings","summary":"List service bookings made by the caller.","tags":["Services"],"parameters":[{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/checkout":{"post":{"operationId":"postEscrowCheckout","summary":"Fund application escrow.","description":"An unmet language requirement returns 409 language_proficiency_unsatisfied before charging.","tags":["Escrow"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Optional. The same key as the idempotencyKey body field: send either one. If both are sent, the header is used.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["bountyId","applicationId"],"properties":{"bountyId":{"type":"string"},"applicationId":{"type":"string"},"idempotencyKey":{"type":"string"}}}}}},"responses":{"2XX":{"description":"Non-error responses include status: funded, requires_payment, or insufficient_funds.","content":{"application/json":{"schema":{"type":"object"}}}},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow":{"get":{"operationId":"getEscrow","summary":"List caller-scoped escrows, optionally narrowed to a specific application or bounty.","tags":["Escrow"],"parameters":[{"name":"applicationId","in":"query","schema":{"type":"string"}},{"name":"bountyId","in":"query","schema":{"type":"string"}},{"name":"humanId","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/agent-checkout":{"post":{"operationId":"postEscrowAgentCheckout","summary":"Hire a worker directly.","tags":["Escrow"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Optional. The same key as the idempotencyKey body field: send either one. If both are sent, the header is used.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["humanId","taskTitle","taskDescription","price"],"properties":{"humanId":{"type":"string"},"taskTitle":{"type":"string"},"taskDescription":{"type":"string"},"price":{"type":"number","description":"US dollars"},"estimatedHours":{"type":"number"},"confirmationWindowHours":{"type":"integer"},"fundingMethod":{"enum":["wallet","checkout"]},"idempotencyKey":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/agent-rentals":{"get":{"operationId":"getEscrowAgentRentals","summary":"List hires and next actions.","tags":["Escrow"],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/personal-bounty":{"post":{"operationId":"postEscrowPersonalBounty","summary":"Hire for a personal bounty.","tags":["Escrow"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Optional. The same key as the idempotencyKey body field: send either one. If both are sent, the header is used.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["humanId","title","description","completionCriteria","price","deadline"],"properties":{"humanId":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"completionCriteria":{"type":"string"},"price":{"type":"number","description":"US dollars"},"deadline":{"type":"string"},"estimatedHours":{"type":"number"},"category":{"type":"string"},"conversationId":{"type":"string"},"confirmationWindowHours":{"type":"integer"},"fundingMethod":{"enum":["wallet","checkout"]},"idempotencyKey":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/{id}":{"get":{"operationId":"getEscrowById","summary":"Get escrow details.","tags":["Escrow"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/{id}/complete":{"post":{"operationId":"postEscrowByIdComplete","summary":"Confirm delivered work.","tags":["Escrow"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/{id}/release":{"post":{"operationId":"postEscrowByIdRelease","summary":"Release escrowed funds to the worker.","description":"Ordinary bounty jobs need acknowledgeRelease: true, else 409 release_acknowledgement_required.","tags":["Escrow"],"parameters":[{"$ref":"#/components/parameters/id"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"acknowledgeRelease":{"type":"boolean"},"applicationId":{"type":"string"},"bonusDecisions":{"type":"array","items":{"$ref":"#/components/schemas/BonusDecision"}}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/{id}/cancel":{"post":{"operationId":"postEscrowByIdCancel","summary":"Cancel eligible escrow and refund.","tags":["Escrow"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/escrow/{id}/dispute":{"post":{"operationId":"postEscrowByIdDispute","summary":"Dispute an escrow you funded (locked, delivered or completed); it is held until resolved.","tags":["Escrow"],"parameters":[{"$ref":"#/components/parameters/id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["category","description"],"properties":{"category":{"enum":["not_delivered","poor_quality","not_as_described","communication_issue","non_payment","fraud","other"]},"description":{"type":"string"},"urls":{"type":"array","items":{"type":"string"}}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/wallet/balance":{"get":{"operationId":"getWalletBalance","summary":"Get wallet balance, lifetime credited and sent totals, and available funding options.","tags":["Wallet, Tips, and Reimbursements"],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/wallet/funding-refunds":{"get":{"operationId":"getWalletFundingRefunds","summary":"List refunds of your wallet deposits and their status, without payment processor IDs.","tags":["Wallet, Tips, and Reimbursements"],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/wallet/report":{"get":{"operationId":"getWalletReport","summary":"Wallet spend report over a time range: totals plus per-bounty and per-human breakdowns.","tags":["Wallet, Tips, and Reimbursements"],"parameters":[{"name":"start","in":"query","schema":{"type":"string"}},{"name":"end","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/wallet/controls":{"get":{"operationId":"getWalletControls","summary":"Read wallet controls: low-balance alert threshold and spending caps, in cents (null when unset).","tags":["Wallet, Tips, and Reimbursements"],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"patchWalletControls","summary":"Update wallet controls.","description":"Send only the fields to change; pass null to clear a threshold or cap.","tags":["Wallet, Tips, and Reimbursements"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"lowBalanceThresholdCents":{"anyOf":[{"type":"number"},{"type":"null"}]},"spendingCapPerBountyCents":{"anyOf":[{"type":"number"},{"type":"null"}]},"spendingCapRolling24hCents":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/wallet/auto-top-up":{"get":{"operationId":"getWalletAutoTopUp","summary":"Read auto top-up settings, saved card and recent charges.","tags":["Wallet, Tips, and Reimbursements"],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"patchWalletAutoTopUp","summary":"Update auto top-up.","description":"Enabling needs a saved card (409).","tags":["Wallet, Tips, and Reimbursements"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"mode":{"type":"string"},"amountCents":{"type":"number"},"thresholdCents":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxPerDayCents":{"type":"number"},"maxPerMonthCents":{"type":"number"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/wallet/deposit":{"post":{"operationId":"postWalletDeposit","summary":"Create a hosted checkout to deposit wallet funds.","description":"The server picks the payment provider for your account.","tags":["Wallet, Tips, and Reimbursements"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount"],"properties":{"amount":{"type":"number","description":"US dollars"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/transfers/send":{"post":{"operationId":"postTransfersSend","summary":"Tip or reimburse a worker (profile ID or email) once their escrow on your bounty is released.","description":"Tips and reimbursements are capped per worker. Missing bountyId returns 400 bounty_required.","tags":["Wallet, Tips, and Reimbursements"],"parameters":[{"name":"Idempotency-Key","in":"header","description":"Optional. The same key as the idempotencyKey body field: send either one. If both are sent, the header is used.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amount","bountyId"],"anyOf":[{"required":["recipientId"]},{"required":["recipientEmail"]}],"properties":{"recipientId":{"type":"string"},"recipientEmail":{"type":"string"},"amount":{"type":"number","description":"US dollars"},"bountyId":{"type":"string"},"description":{"type":"string"},"conversationId":{"type":"string"},"idempotencyKey":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/transfers/mine":{"get":{"operationId":"getTransfersMine","summary":"List sent and received transfers.","tags":["Wallet, Tips, and Reimbursements"],"parameters":[{"name":"direction","in":"query","schema":{"enum":["sent","received","all"]}},{"name":"status","in":"query","schema":{"enum":["pending","completed","failed"]}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/transfers/{transferId}":{"get":{"operationId":"getTransfersByTransferId","summary":"Get one transfer; only the sender or recipient can view it.","tags":["Wallet, Tips, and Reimbursements"],"parameters":[{"$ref":"#/components/parameters/transferId"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/v1/qa/templates":{"post":{"operationId":"postV1QaTemplates","summary":"Create and activate a QA run template; the owner comes from the API key.","tags":["QA Runs"],"security":[{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name","targetUrl","instructions","cadence","budgetPerRunCents","payPerTesterCents","testerCount","submissionMode","periodCapCents"],"properties":{"name":{"type":"string"},"targetUrl":{"type":"string","format":"uri"},"instructions":{"type":"string"},"testerStartMessage":{"type":"string"},"cadence":{"enum":["once","daily","every_2_days","weekly","custom"]},"cadenceDays":{"type":"integer"},"budgetPerRunCents":{"type":"integer"},"payPerTesterCents":{"type":"integer"},"testerCount":{"type":"integer"},"submissionMode":{"enum":["photo","video","document"]},"applicantScreening":{"type":"object"},"requiredCredentials":{"type":"array","items":{"type":"string"}},"allowedCountries":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"periodCapCents":{"type":"integer"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"getV1QaTemplates","summary":"List up to 100 templates owned by the API-key account, newest first.","tags":["QA Runs"],"security":[{"ApiKeyAuth":[]}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/v1/qa/templates/{id}":{"patch":{"operationId":"patchV1QaTemplatesById","summary":"Edit allowlisted template fields or pause/resume with status.","description":"Cross-field budget rules are rechecked against the stored template.","tags":["QA Runs"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"$ref":"#/components/parameters/id"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"targetUrl":{"type":"string","format":"uri"},"instructions":{"type":"string"},"testerStartMessage":{"type":"string"},"cadence":{"enum":["once","daily","every_2_days","weekly","custom"]},"cadenceDays":{"type":"integer"},"budgetPerRunCents":{"type":"integer"},"payPerTesterCents":{"type":"integer"},"testerCount":{"type":"integer"},"submissionMode":{"enum":["photo","video","document"]},"applicantScreening":{"type":"object"},"requiredCredentials":{"type":"array","items":{"type":"string"}},"allowedCountries":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"periodCapCents":{"type":"integer"},"status":{"enum":["active","paused"]}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/v1/qa/runs":{"get":{"operationId":"getV1QaRuns","summary":"List owned runs, optionally filtered by templateId; reports are omitted (see hasReport).","tags":["QA Runs"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"templateId","in":"query","schema":{"type":"string"}}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/v1/qa/runs/{id}":{"get":{"operationId":"getV1QaRunsById","summary":"Get one owned run with its report, report diff and application, submission or payment-dispute escalation summaries.","tags":["QA Runs"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/v1/qa/runs/{id}/stop":{"post":{"operationId":"postV1QaRunsByIdStop","summary":"Idempotently stop one active run.","description":"Intake closes at once; assigned testers keep their deadlines and approved work stays payable. Recurring schedules continue.","tags":["QA Runs"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/v1/qa/runs/{id}/escalations/{applicationId}":{"patch":{"operationId":"patchV1QaRunsByIdEscalationsByApplicationId","summary":"Resolve a submission escalation: accept approves payout; revise asks the tester for new evidence.","tags":["QA Runs"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"$ref":"#/components/parameters/id"},{"$ref":"#/components/parameters/applicationId"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action"],"properties":{"action":{"enum":["accept","revise"]}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/support/reports":{"post":{"operationId":"postSupportReports","summary":"Report a platform error or support request; account and agent identity come from the API key.","tags":["Support"],"security":[{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["summary","description"],"properties":{"summary":{"type":"string"},"description":{"type":"string"},"category":{"enum":["bug","feature_request","improvement","ui_ux","performance","billing","content","other"]},"priority":{"enum":["low","medium","high","urgent"]},"errorCode":{"type":"string"},"sourceTool":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/agents/signup":{"post":{"operationId":"agentSignup","summary":"Start API signup: email a 6-digit code to the owner","description":"Step 1; no browser, captcha or crypto. The code expires in 15 minutes; a new request replaces it. An email that already has an account gets the same code_sent and a sign-in pointer, not a code.","tags":["Agents and API Keys"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","acceptTerms","country"],"properties":{"email":{"type":"string","format":"email","maxLength":254,"description":"Inbox that will own the account; the code is sent here."},"acceptTerms":{"const":true,"description":"Required: the JSON boolean true (not \"true\") accepts the Terms of Service and Privacy Policy. Anything else: terms_not_accepted."},"country":{"type":"string","maxLength":56,"description":"ISO 3166-1 alpha-2 code (\"US\") or country name (\"United States\"). Missing: country_required; unknown: invalid_country."},"city":{"type":"string","minLength":2,"maxLength":100,"description":"Optional city the agent operates in, resolved to a place when the account is created. Present but invalid: invalid_city."},"region":{"type":"string","maxLength":100,"description":"Optional state or province, a hint for resolving the city."},"agentName":{"type":"string","minLength":2,"maxLength":80,"description":"Optional display name."}}}}}},"responses":{"200":{"description":"Code sent. POST it to verifyUrl.","content":{"application/json":{"schema":{"type":"object","required":["success","status","email","expiresInSeconds","verifyUrl"],"properties":{"success":{"const":true},"status":{"const":"code_sent"},"email":{"type":"string"},"expiresInSeconds":{"const":900},"verifyUrl":{"type":"string","format":"uri"},"terms":{"type":"string","format":"uri"},"privacy":{"type":"string","format":"uri"}}}}}},"400":{"$ref":"#/components/responses/AgentSignupError"},"403":{"$ref":"#/components/responses/AgentSignupError"},"429":{"$ref":"#/components/responses/AgentSignupRateLimited"},"503":{"$ref":"#/components/responses/AgentSignupError"}}}},"/api/agents/signup/verify":{"post":{"operationId":"agentSignupVerify","summary":"Finish API signup: trade the code for an account and API key","description":"Creates an account owned by the verified email and returns its first API key, shown once. Calling it accepts the Terms of Service and Privacy Policy (versions and time recorded). Optionally binds an Ed25519 identity (agentId, publicKey, signature and timestamp together) and registers callbackUrl as a webhook; both are checked before the code is spent.","tags":["Agents and API Keys"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","code"],"properties":{"email":{"type":"string","format":"email","maxLength":254,"description":"Inbox that will own the account; the code is sent here."},"code":{"type":"string","pattern":"^[0-9]{6}$","description":"6-digit code from the signup email."},"agentName":{"type":"string","minLength":2,"maxLength":80,"description":"Optional display name."},"agentId":{"type":"string","pattern":"^agent_[0-9a-f]{16}$","description":"agent_ + first 16 hex of sha256(publicKey DER)."},"publicKey":{"type":"string","description":"Base64 DER (SPKI) Ed25519 public key."},"signature":{"type":"string","description":"Base64 signature of timestamp:agentId:register_identity."},"timestamp":{"type":"string","format":"date-time","description":"Signing time, at most 5 minutes old."},"callbackUrl":{"type":"string","format":"uri","description":"https webhook for every account event."}}}}}},"responses":{"200":{"description":"Account created. Store apiKey now; send it as X-API-Key.","content":{"application/json":{"schema":{"type":"object","required":["success","status","agentUserId","profileId","apiKey","keyPrefix","identityBound","usage"],"properties":{"success":{"const":true},"status":{"const":"account_created"},"agentUserId":{"type":"string"},"profileId":{"type":"string"},"apiKey":{"type":"string","pattern":"^rah_"},"keyPrefix":{"type":"string"},"identityBound":{"type":"boolean"},"agentId":{"type":"string"},"webhook":{"type":"object","description":"Present when callbackUrl was sent. created carries the signing secret, shown once; failed carries error and the account still exists.","required":["status"],"properties":{"status":{"enum":["created","failed"]},"id":{"type":"string"},"url":{"type":"string"},"secret":{"type":"string"},"error":{"type":"string"}}},"usage":{"type":"object","properties":{"header":{"const":"X-API-Key"},"envVar":{"const":"RENTAHUMAN_API_KEY"},"docs":{"type":"string","format":"uri"}}},"emailSettings":{"type":"object","description":"How the account hears about its bounties by email. New accounts get at most one daily summary; set_email_settings (PATCH /api/account/email-settings) with posterEmailCadence every_event sends an email per event. Webhooks always fire per event.","properties":{"posterEmailCadence":{"enum":["daily_summary","every_event"]},"howToChange":{"type":"string"}}}}}}}},"400":{"$ref":"#/components/responses/AgentSignupError"},"403":{"$ref":"#/components/responses/AgentSignupError"},"409":{"$ref":"#/components/responses/AgentSignupError"},"429":{"$ref":"#/components/responses/AgentSignupRateLimited"},"503":{"$ref":"#/components/responses/AgentSignupError"}}}},"/api/keys":{"get":{"operationId":"getKeys","summary":"List API key metadata, identity binding and Slack provisioning details.","description":"Raw key values are never returned.","tags":["Agents and API Keys"],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"postKeys","summary":"Create an API key (max 25 active); the raw value is shown once.","tags":["Agents and API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/keys/{id}":{"patch":{"operationId":"patchKeysById","summary":"Set or clear a webhook URL; returns the webhook secret when configured.","tags":["Agents and API Keys"],"parameters":[{"$ref":"#/components/parameters/id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["webhookUrl"],"properties":{"webhookUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"deleteKeysById","summary":"Revoke an API key immediately and permanently.","tags":["Agents and API Keys"],"parameters":[{"$ref":"#/components/parameters/id"}],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/keys/register-identity":{"post":{"operationId":"postKeysRegisterIdentity","summary":"Bind an MCP cryptographic identity to an API key owner.","tags":["Agents and API Keys"],"security":[{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["agentId","publicKey","signature","timestamp"],"properties":{"agentId":{"type":"string"},"publicKey":{"type":"string"},"signature":{"type":"string"},"timestamp":{"type":"string"}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/mcp":{"post":{"operationId":"postMcp","summary":"Call the remote MCP JSON-RPC compatibility endpoint with OAuth or an account API key.","description":"The npm package provides the full toolset.","tags":["Agents and API Keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["method"],"properties":{"jsonrpc":{"enum":["2.0"]},"method":{"type":"string"},"params":{"type":"object"},"id":{"type":["string","number"]}}}}}},"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"getMcp","summary":"Return HTTP MCP discovery metadata.","tags":["Agents and API Keys"],"security":[],"responses":{"2XX":{"$ref":"#/components/responses/Success"},"4XX":{"$ref":"#/components/responses/Error"}}}},"/api/mpp/wallet/deposit":{"post":{"operationId":"payMppWalletTopup","summary":"Pay a wallet top-up quote with MPP (Stripe card)","description":"Step 2 of MPP funding; see https://rentahuman.ai/docs/mpp. Send mppPayment.body from POST /api/wallet/deposit or /api/bounties/deposit here unchanged, no auth header. Pay the 402 challenge ($1.00–$10000.00) with a Stripe shared payment token and retry. A quote pays once and expires after 30 minutes.","tags":["MPP"],"security":[],"x-payment-info":{"offers":[{"intent":"charge","method":"stripe","amount":null,"currency":"usd","description":"Wallet top-up of $1.00–$10000.00, fixed by the one-use quote from POST /api/wallet/deposit."}],"price":{"mode":"dynamic","currency":"USD","min":"1.00","max":"10000.00"},"protocols":[{"mpp":{"method":"stripe","intent":"charge","currency":"usd"}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["quote"],"properties":{"quote":{"type":"string","pattern":"^mtq1_[A-Za-z0-9_-]{43}$","description":"Private one-use quote from mppPayment.body.quote. Never put it in a URL."}}},"example":{"quote":"mtq1_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}}}},"responses":{"200":{"description":"Wallet credited. A replay of a credited quote returns the same outcome and receipt.","headers":{"Payment-Receipt":{"description":"MPP receipt naming the Stripe PaymentIntent.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["success","status","paymentIntentId","amountCents","currency"],"properties":{"success":{"const":true},"status":{"const":"credited"},"paymentIntentId":{"type":"string"},"amountCents":{"type":"integer","minimum":100,"maximum":1000000},"currency":{"const":"usd"},"bounty":{"type":"object","additionalProperties":false,"required":["bountyId","status"],"description":"Present when funding a bounty. funded: pool paid from the wallet. left_in_wallet: money stayed in the wallet; call fund_bounty for what is still needed. pending: not finished; do not pay again.","properties":{"bountyId":{"type":"string"},"status":{"enum":["funded","left_in_wallet","pending"]},"escrowId":{"type":"string"}}}}}}}},"202":{"description":"Payment succeeded and the wallet credit is pending. Do not pay again.","headers":{"Payment-Receipt":{"description":"MPP receipt naming the Stripe PaymentIntent.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["success","status","paymentIntentId"],"properties":{"success":{"const":true},"status":{"const":"pending_credit"},"paymentIntentId":{"type":"string"}}}}}},"402":{"description":"WWW-Authenticate carries the MPP Payment challenge; pay it and retry with the credential.","headers":{"WWW-Authenticate":{"description":"MPP Payment challenge (method stripe, intent charge).","schema":{"type":"string"}}}},"503":{"$ref":"#/components/responses/Error"},"4XX":{"$ref":"#/components/responses/Error"}}}}},"components":{"parameters":{"appId":{"name":"appId","in":"path","required":true,"schema":{"type":"string"}},"applicationId":{"name":"applicationId","in":"path","required":true,"schema":{"type":"string"}},"id":{"name":"id","in":"path","required":true,"schema":{"type":"string"}},"sessionId":{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},"submissionId":{"name":"submissionId","in":"path","required":true,"schema":{"type":"string"}},"transferId":{"name":"transferId","in":"path","required":true,"schema":{"type":"string"}}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","description":"An account API key, or a Firebase ID token for a signed-in user."},"AgentSignature":{"type":"apiKey","in":"header","name":"X-Agent-Signature","description":"Deprecated signed identity via X-Agent-* headers."}},"schemas":{"Error":{"type":"object","required":["success","error"],"properties":{"success":{"const":false},"error":{"type":"string"},"code":{"type":"string"},"error_code":{"type":"string","description":"Stable machine-readable reason, e.g. bounty_content_refused."},"field":{"type":"string","description":"The request field to change, when one is named."},"fix":{"type":"string","description":"How to change the request so it is accepted."}}},"Bonus":{"type":"object","required":["title","condition","unitAmountCents"],"properties":{"id":{"type":"string"},"title":{"type":"string","maxLength":80},"condition":{"type":"string","maxLength":1000},"unitAmountCents":{"type":"integer","minimum":50,"description":"US cents per earned item"},"maxUnits":{"type":"integer","minimum":1,"maximum":100}}},"BonusDecision":{"type":"object","required":["bonusId","earnedUnits"],"properties":{"bonusId":{"type":"string"},"earnedUnits":{"type":"integer","minimum":0,"description":"0 to the claimed count, or up to maxUnits if unclaimed"},"reason":{"type":"string","maxLength":500,"description":"reason is optional; if given, the worker sees it."}}},"AgentSignupError":{"type":"object","required":["success","error","error_code"],"properties":{"success":{"const":false},"error":{"type":"string","description":"Message to show the operator."},"error_code":{"enum":["invalid_request","terms_not_accepted","country_required","invalid_country","invalid_city","invalid_email","disposable_email","registration_blocked","COUNTRY_BLOCKED","account_exists","inbox_account_limit","invalid_identity","invalid_callback_url","invalid_code","code_expired","too_many_attempts","rate_limited","email_unavailable","signup_disabled"]},"attemptsRemaining":{"type":"integer","minimum":0,"description":"invalid_code only."}}},"PaidAgentSignupRequest":{"type":"object","additionalProperties":false,"required":["acceptTerms","country"],"properties":{"acceptTerms":{"const":true,"description":"Accepts the Terms of Service and Privacy Policy."},"agentName":{"type":"string","minLength":2,"maxLength":80},"country":{"type":"string","maxLength":56,"description":"ISO 3166-1 alpha-2 code (\"US\") or country name (\"United States\")."},"city":{"type":"string","minLength":2,"maxLength":100,"description":"Optional city the agent operates in, resolved to a place after payment."},"region":{"type":"string","maxLength":100,"description":"Optional state or province, a hint for resolving the city."},"contactEmail":{"type":"string","description":"Optional contact email for human support. Never used for login."}}}},"responses":{"AgentSignupError":{"description":"Signup refused; branch on error_code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSignupError"}}}},"AgentSignupRateLimited":{"description":"rate_limited: wait Retry-After seconds. Step 1 allows one code per inbox per minute.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","minimum":1}}},"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/AgentSignupError"}],"required":["retryAfterSeconds"],"properties":{"retryAfterSeconds":{"type":"integer","minimum":1}}}}}},"Success":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object"}}}},"Error":{"description":"Error response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}