TypeScript Policies
Write custom request and response policies in TypeScript — familiar, type-safe, and reviewed alongside your application code.
Write custom gateway logic in TypeScript. No proprietary DSLs, no cURL commands — just familiar, type-safe code that runs at the edge.
Write custom request and response policies in TypeScript — familiar, type-safe, and reviewed alongside your application code.
Access the full request, response, user, API key metadata, and environment variables in your policy code.
Your custom code runs at the edge in 300+ locations, adding zero latency to policy execution.
Write TypeScript functions that intercept incoming requests. Transform headers, validate custom logic, enrich requests with data from external APIs, or implement any business rule your API requires.
Learn more in the docsTransform or enrich API responses before they're returned to the caller. Add headers, modify response bodies, implement caching logic, or format responses for different client types.
Learn more in the docsShare policies across routes and projects. Publish internal policies as npm packages and use them across your organization's API gateways.
Learn more in the docsCommon questions about Programmable Gateway.
Join thousands of developers who trust Zuplo to secure, scale, and monetize their APIs.