Design web APIs that feel like functions
Web Function is a minimal and flexible set of specifications that helps you build web APIs that are intuitive, discoverable, fun to use, and feel just like calling functions.
For API designers
- • Focus on functionality, not HTTP or REST semantics
- • Self-documenting endpoints through packages
- • Flexible error handling with standardized triples
- • Built-in support for authentication and pagination
- • No complex routing or resource modeling required
For API consumers
- • Discoverable APIs with automatic documentation
- • Consistent error handling across all endpoints
- • Simple authentication with bearer tokens
- • Intuitive pagination that works like magic
- • Predictable request/response patterns
Core features
Simple endpoint design
Only POST requests. No complex HTTP method semantics. Just call the function with your data and get results back. The path names the action, the body carries the data.
Learn about endpoints →Self-documenting packages
Every API can describe all its available endpoints, their arguments, return types, and documentation via package definition. No more guessing or reading external docs.
Learn about packages →Pipelining of calls
Easily chain multiple function calls together, passing results from one to the next reducing the number of round trips to the server.
Learn about pipelining →Standardized error handling
Error triples provide consistent, machine and human readable error responses. No more parsing different error formats across different endpoints.
Learn about error handling →Built-in authentication
Bearer token authentication that works consistently across all protected endpoints. The specification focuses on token passing, how you obtain the token is up to you.
Learn about authentication →Smart pagination
Strategy-agnostic pagination that works with cursors, offsets, or any other method. The server handles the complexity, clients just follow the links.
Learn about pagination →Real-time events
Subscribe to real-time, asynchronous streams of data via standardized Server-Sent Events (SSE). Add live updates and notifications to your applications easily.
Learn about events →Benefits for your team
Faster development
Spend less time on API design decisions and more time building features. The specification handles the common patterns so you can focus on what matters.
Better experience
APIs that feel intuitive and predictable. Self-documenting packages mean less time reading docs and more time coding.
Consistent & reliable
Standardized patterns mean fewer bugs and easier maintenance. Error handling, auth, and pagination work the same everywhere.
Built on industry standards
Not reinventing the wheel
Web Function doesn’t introduce new protocols or custom formats. Instead, it assembles proven, widely adopted standards into a single, well-organized system that’s easy to use.
By combining standards you already know, Web Function makes modern, robust web APIs accessible to everyone.
Get started
Ready to build better APIs? Start with the core endpoint specification and then explore the extensions that make Web Function powerful.
Endpoint
Learn the core principles of Web Function endpoints and how to design them.
Read specification →Package
Discover how packages make your APIs self-documenting and discoverable.
Read specification →Pipelining
Execute a sequence of function calls where the input of a subsequent call depends on the output of previous calls.
Read specification →Authentication
Simple bearer token authentication that works across all your endpoints.
Read specification →Pagination
Smart pagination that works with any strategy - cursors, offsets, or custom methods.
Read specification →Event
Real-time, asynchronous streams of data using Server-Sent Events (SSE).
Read specification →Error
Standardize error responses with error triples for consistent client handling.
Read specification →Already built something with Web Function?
If you've created a client library or API using Web Function, we'd love to hear about it! Share your implementation and help grow the ecosystem.
Send us an email