Back home
Reference

GrantMatch API

The backend exposes versioned JSON endpoints under /api/v1. From this web app, call the secure Next.js proxy at POST /api/match — never put your API key in browser code.

Authentication

Server-to-server calls use the X-API-Key header. The hosted FastAPI docs live on your Railway deployment at /docs (Swagger UI).

Endpoints

  • GET /api/v1/API info and links
  • GET /api/v1/healthHealth — DB, index, model
  • POST /api/v1/matchMatch an applicant profile (requires API key)
  • GET /api/v1/grantsBrowse grants (filters)
  • GET /api/v1/grants/{id}Single grant by ID

Next.js proxy (browser-safe)

The demo calls POST /api/match on this site. That route forwards the body to your GrantMatch backend with the secret key stored in Vercel/Railway env vars — the key never ships to the client.

Open interactive demo