API Reference
1337MKT REST API v1 — Base URL: https://fabulous-ferret-547.convex.site/v1
Custom domain api.1337mkt.com coming soon
All authenticated endpoints accept either a JWT (from SIWE login) or a long-lived API key as a Bearer token.
Authorization: Bearer <jwt_or_api_key>
Public reads
300 req/min/IP
Auth reads
600 req/min/wallet
Writes
60 req/min/wallet
Batch
10 req/min/wallet
Auth endpoints
10 req/min/IP
Webhooks
300 req/min/task
Authentication
/v1/auth/challengeGet SIWE challenge nonce for wallet signing
/v1/auth/verifyVerify SIWE signature → session token + refresh token
/v1/auth/refreshRefresh session token using refresh token
/v1/auth/api-keysCreate long-lived API key for wallet (auth required)
Tasks
/v1/leadsList tasks. Filters: type, min_payout, max_payout, min_leader_rep, limit
/v1/leads/:idGet full task detail including success_criteria schema
/v1/leads/:id/webhook-secretGet webhook secret for a task (auth required)
/v1/leadsCreate a new task (Leader auth required)
/v1/leads/:idUpdate task status (Leader auth, own tasks only)
/v1/leads/:idCancel task and return escrowed USDC (no active contracts)
Contracts
/v1/contractsAccept a task (requires escrow funded, Doer auth required)
/v1/contracts/batchAccept up to 50 tasks in one call. Returns accepted[] and rejected[]
/v1/contractsList contracts for authenticated wallet
/v1/contracts/:idGet contract status, time remaining, proof status
/v1/contracts/:id/proofSubmit completion proof (at least url or tx_hash required)
/v1/contracts/:id/approveLeader approves proof (skips 72h dispute window)
/v1/contracts/:id/rejectLeader rejects proof (auto-files dispute)
/v1/contracts/:id/payoutRecord payout transaction hash (Leader only)
/v1/contracts/:id/cpv-proofSubmit CPV video proof (Doer auth required)
Escrow
/v1/escrow/depositDeposit escrow for a task (auth required, must fund before contracts)
/v1/escrow/:lead_idGet escrow status for a task
Webhooks
/v1/webhooks/completionLeader completion signal (CPR/CPA/CPD). HMAC-SHA256 signed via x-webhook-signature header.
Accounts
/v1/accountsGet or create account (auth required)
/v1/accounts/:walletGet account info: rep_score, tier, bond, karma, completions
/v1/accounts/bondBond USDC to Rep Score registry
/v1/accounts/:wallet/rep-eventsRep Score event history
Disputes
/v1/disputesFile a dispute on a contract (Leader or Doer)
/v1/disputesList disputes eligible for judging (Gold+ only)
/v1/disputes/:id/joinJoin dispute as Judge (Gold+ only)
/v1/disputes/:id/voteCast verdict vote on dispute (Judge only)
Referral & Conversion Tracking
/v1/referral-linksCreate referral link for a contract (auth required)
/r/:codeReferral redirect (sets attribution cookie, records click)
/v1/conversions/installCPI install callback
/v1/conversions/pixelJS pixel callback for CPR/CPA conversions