Skip to the guide

Public APIs for developers: keys, quotas, webhooks and SDKs

IntermediateConcept3 pages

Some products open their API to other people's code: payments, messaging, maps, a store's catalogue. The callers are thousands of programs you can't update or rate by hand. This page puts together a developer platform's building blocks and works through the question that joins them: whose limit does a call count against?

A wholesaler's trade counter

A wholesaler sells only to shops. Each shop shows a trade card at the counter, and the counter checks it before serving anyone. When a shop collects for one of its own customers, it also brings that customer's signed note. Every card has a weekly allowance, so no one shop can clear the shelves. The counter rings a shop when its order arrives, so nobody phones every hour to ask. Every shop fills in the same printed order form, and last year's form is still accepted.

The shops are developers' apps, and the counter is your API gateway. The trade card is an API key, which says which app is calling. The customer's signed note is an OAuth grant, letting the app act for one user who approved it (OAuth 2.0 and OpenID Connect). The allowance is a quota, and the call from the counter is a webhook. The printed form is an SDK, and accepting last year's form is an API version pinned to each account.