Public API and SDK for Metricflow
A versioned REST API with OpenAPI docs, API keys, rate limiting and a TypeScript SDK. A case study by Tomasz Kowalczyk, Backend Engineer (Go & PostgreSQL).
Challenge
Metricflow, a revenue analytics platform, had enterprise customers asking for integrations, but the only API was an undocumented internal one that changed every week.
Solution
I designed a stable, versioned public API with consistent pagination and errors, scoped API keys, rate limits and webhooks. OpenAPI specs generate the documentation site and a typed TypeScript SDK.