c402 API Reference - AI Agent Credit Endpoints
Base URL: https://c402.site
Discovery
GET /health
GET /.well-known/c402.json
GET /openapi.json
GET /llms.txt
x402 Facilitators
GET /x402/flare-facilitator/supported
POST /x402/flare-facilitator/verify
POST /x402/flare-facilitator/settle
Base Sepolia uses the public x402 facilitator. Flare Coston2 uses c402's facilitator endpoint.
Credit
All credit and lender mutations require wallet authorization. Funding, collateral, supplier payment, and settlement also require transaction proofs from the configured c402 credit contract.
GET /credit/state
POST /credit/jobs
POST /credit/jobs/{jobId}/collateral
POST /credit/backing-sources
GET /credit/backing-sources
POST /credit/request
POST /credit/match
POST /credit/dispatch
POST /credit/offers/{offerId}/supplier-payment
POST /credit/jobs/{jobId}/complete
POST /credit/advances/{advanceId}/repay
POST /credit/advances/{advanceId}/liquidate
Lenders
GET /lenders
POST /lenders/register
GET /lenders/wallets
GET /lenders/{address}/wallet
GET /lenders/{address}/actions
Compute
POST /credit-score
/credit-score is disabled in the current production deployment until FCC is configured.