Skip to content

feat(FM-IC-CFG-002): public API for workflow automation + OpenAPI spec - #199

Open
SpikeyCoder wants to merge 7 commits into
mainfrom
feature/FM-IC-CFG-002-public-api
Open

feat(FM-IC-CFG-002): public API for workflow automation + OpenAPI spec#199
SpikeyCoder wants to merge 7 commits into
mainfrom
feature/FM-IC-CFG-002-public-api

Conversation

@SpikeyCoder

@SpikeyCoder SpikeyCoder commented Jun 15, 2026

Copy link
Copy Markdown
Owner

FM-IC-CFG-002 — Public API for workflow automation

Addresses Instrumentl competitive gap CFG-002.

Backend

  • api_keys table with SHA-256 hashed keys, soft-revoke, RLS
  • public-api edge function: OpenAPI 3.0 spec + key-authenticated read-only endpoints (/v1/projects, /v1/pipeline-statuses, /v1/tracked-grants, /v1/saved-funders)
  • api-keys management edge function
  • PUBLIC_API.md documentation

Frontend

  • API Keys Settings tab — create, view, revoke API keys
  • /docs/api page — interactive Swagger UI docs page (public, no auth required) that loads the OpenAPI spec
  • Footer link to API Docs for discoverability
  • CSP updateframe-src blob: for Swagger UI rendering

Edge functions to deploy after merge

  • public-api (new)
  • api-keys (new)

Adds a documented, read-only public API over a user's grant pipeline so
teams can automate workflows (Zapier/Make/scripts/BI) — closing the
Instrumentl gap flagged PARTIAL in the 2026-06-14 usability audit
('No public OpenAPI yet').

Backend:
- Migration 20260614140000_cfg002_api_keys.sql: api_keys table (user-scoped
  RLS; SHA-256 key hash + display prefix; soft-revoke; read scope).
- Edge function public-api: API-key-authenticated read endpoints
  (/v1/projects, /v1/pipeline-statuses, /v1/tracked-grants, /v1/saved-funders)
  plus a public GET /openapi.json (OpenAPI 3.0) and service descriptor.
- Edge function api-keys: JWT-authenticated key manager (create/list/revoke);
  raw secret returned exactly once.

Frontend:
- ApiKeysSettings component + new 'API' tab in Account Settings to create,
  view, copy (once), and revoke keys; links to the OpenAPI spec.

Docs:
- PUBLIC_API.md: base URL, auth, endpoint table, curl example.

npm run build passes (tsc -b && vite build).
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 15, 2026

Copy link
Copy Markdown

Deploying funder-finder with  Cloudflare Pages  Cloudflare Pages

Latest commit: 442a242
Status: ✅  Deploy successful!
Preview URL: https://820024d2.funder-finder.pages.dev
Branch Preview URL: https://feature-fm-ic-cfg-002-public.funder-finder.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant