run402-com Projects API

Provision and manage database projects (wallet auth, free within tier)

Operations 35

GET /projects/v1 List projects #
POST /projects/v1 Provision a new project #
POST /projects/v1/quote Get tier pricing quote #
GET /projects/v1/{project_id} Read a single project (authoritative) #
DELETE /projects/v1/{project_id} Archive (soft-delete) a project #
PATCH /projects/v1/{project_id} Rename a project #
POST /projects/v1/{project_id}/repo-name Set or rename the project's address-form repo name (repo-first-onramp D6) #
POST /projects/v1/expose/validate Validate expose manifest without project schema #
GET /projects/v1/{project_id}/tenant-payments List redacted tenant x402 payments for a project #
GET /projects/v1/{project_id}/events Read the project events feed (cursored catch-up or newest-first display order) #
POST /projects/v1/{project_id}/events Emit an app-lane business event into the project feed #
GET /projects/v1/{project_id}/errors List grouped error fingerprints with a release-baselined verdict #
GET /projects/v1/{project_id}/errors/{fingerprint_id} Error fingerprint detail with all samples #
POST /projects/v1/{project_id}/credentials Create a named project credential (owner-only) #
GET /projects/v1/{project_id}/credentials List project credentials (metadata only) #
GET /projects/v1/{project_id}/credential-status Check whether this project still depends on the retiring signing key #
DELETE /projects/v1/{project_id}/credentials/{credential_id} Revoke a project credential (owner-only) #
POST /projects/v1/{project_id}/credentials/{credential_id}/rotate Rotate a project credential (owner-only) #
POST /projects/v1/{project_id}/tokens Mint a short-lived project token (grant-key-capable) #
POST /projects/v1/{project_id}/sql Run SQL on the project schema #
POST /projects/v1/{project_id}/sql/batch Run several SQL statements with an explicit transaction #
GET /projects/v1/{project_id}/rest/{path} PostgREST with the service key (GET, bypasses RLS) #
POST /projects/v1/{project_id}/rest/{path} PostgREST with the service key (POST, bypasses RLS) #
PATCH /projects/v1/{project_id}/rest/{path} PostgREST with the service key (PATCH, bypasses RLS) #
DELETE /projects/v1/{project_id}/rest/{path} PostgREST with the service key (DELETE, bypasses RLS) #
POST /projects/v1/{project_id}/stripe/account Connect the organization's Stripe account (or return the one it has) #
GET /projects/v1/{project_id}/stripe/account The organization's Stripe account, read from Stripe #
DELETE /projects/v1/{project_id}/stripe/account Detach the organization's Stripe account from the platform #
POST /projects/v1/{project_id}/stripe/checkout-sessions Create a Checkout Session on the organization's Stripe account #
GET /projects/v1/{project_id}/stripe/checkout-sessions/{checkout_session_id} A Checkout Session's outcome, read from Stripe #
POST /projects/v1/{project_id}/stripe/portal-sessions Open the organization's Stripe customer portal for a customer #
POST /projects/v1/{project_id}/push/messages Queue a web push notification (what push.send calls) #
GET /projects/v1/{project_id}/push Web push status: signed-up phones, today's deliveries, latest messages #
GET /projects/v1/{project_id}/push/messages/{message_id} One push message with each phone's outcome #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/run402-com:run402-com-projects-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

run402-com-projects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Run402 Projects API
  version: 2.0.0
  description: 'Full-stack infrastructure for AI agents. Postgres, REST API, auth, file storage, static site hosting, serverless functions. Tier payments and image generation use the shared payment engine: x402 (USDC on Base), MPP on Tempo (pathUSD), and the draft-pinned MPP Lightning charge profile (sats, Bitcoin mainnet) for authenticated tier purchases and image generation.'
  contact:
    name: Run402
    url: https://run402.com
  guidance: 'Run402 is a pay-per-use backend for AI agents: Postgres databases, static hosting, serverless functions, and image generation. The shared payment engine supports x402 (USDC on Base), MPP on Tempo (pathUSD), and the exact Run402 MPP Lightning charge profile on Bitcoin mainnet (sats).


    ## Quick start

    1. Install the CLI: npm install -g run402@latest

    2. Create an allowance: run402 init

    3. Set the prototype tier (FREE, testnet USDC): run402 tier set prototype

    4. Provision a project: run402 projects provision --name "my-app"

    5. Deploy: run402 deploy --manifest app.json


    ## Payment model

    - Tiers (prototype $0.10 testnet, hobby $5, team $20; hobby and team are 30-day prepaid leases) unlock all platform features.

    - Image generation is $0.03 per call (x402, MPP on Tempo, or MPP Lightning micropayment).

    - Auth-only endpoints (projects, deploys, messages) require SIWX wallet identity but no payment.


    ## Auth

    - x402 endpoints: include a payment header (handled automatically by the CLI or x402 client libraries).

    - Explicit MPP Lightning tier requests require the exact Run402 profile, ordered Accept-Payment preferences, one principal credential, a stable Idempotency-Key, and buyer-side USD/native/fee limits.

    - SIWX endpoints: sign a CAIP-122 message with your wallet.

    - REST API: use the project''s anon_key or service_key as the apikey header.


    ## Client metadata

    - Recent Node SDK/CLI clients may send Run402-Client: surface="cli", version="3.7.14", sdk="3.7.14". It is advisory, bounded, never used for auth/billing/trust, and not browser-CORS-enabled yet.


    ## Docs

    - Full CLI docs: https://run402.com/llms-cli.txt

    - API docs: https://run402.com/llms.txt'
servers:
- url: https://api.run402.com
  description: Production
tags:


# --- truncated at 32 KB (169 KB total) ---
# Full source: https://artifacts.apis.io/run402-com/openapi/run402-com-projects-api-openapi.yml