Secrets stay secret
Keys are hashed before storage and shown exactly once. Even a leaked backup has nothing worth stealing.
Geef klanten API-sleutels en webhooks zonder zelf het loodgieterswerk te bouwen.
Geef klanten API-sleutels en webhooks zonder zelf het loodgieterswerk te bouwen.
Productvoorbeeld
Dit is hetzelfde visuele component als in de ingelogde applicatie, met voorspelbare voorbeelddata.
Explore the actual API key, quickstart, endpoint, and delivery components together.
Inerte voorbeelddata · geen netwerktoegang
Voorbeeld gereed
Kernpunten
Keys are hashed before storage and shown exactly once. Even a leaked backup has nothing worth stealing.
The key, its scope, and its rate limit are all verified before any customer data is touched.
Every endpoint declares its version and retirement dates up front, so you can evolve your API without surprise breakage.
Zonder een gedeelde basis bouwt elk team deze randgevallen opnieuw — en anders.
Hand-rolled key tables tend to store secrets you can read back. One leaked backup, and every customer's key is compromised at once. Here only hashes are stored, so there is nothing to steal.
You ship an endpoint with no versions. Customers build on every response field. Now every change is a breaking change, and every release turns into a support fire.
A customer's runaway loop hammers your API, and everyone else's requests crawl. Bolting rate limits onto a live API is painful. These keys ship with per-minute limits from the very first request.
Het mechanisme van begin tot eind, zoals het in de repository is geïmplementeerd.
An admin creates a key
The secret is generated on the server, hashed, and shown exactly once. If it's lost, you revoke and reissue. Reading it back is deliberately impossible.
Endpoints declare their contract
Each route registers its version, request and response shapes, and rate-limit key before it ships, so compatibility is written down instead of tribal knowledge.
Requests pass three gates
The server verifies the key, checks its scope, and reserves rate-limit quota. Only then does your handler touch any data.
Keys retire, they don't vanish
Revoking stamps a timestamp instead of deleting the row. The key stops working immediately, and the audit trail survives.
Technische garanties
Achter de schermen houden autorisatie, tenantgrenzen en foutafhandeling één duidelijke eigenaar. Zo blijft de snelle ervaring voor gebruikers gekoppeld aan veilig herstel als het misgaat.
De grens hierboven is geen claim maar code. Deze bestanden dragen het contract:
src/features/developer-platform/server.tssrc/server/api-key-auth.tssrc/registries/api-lifecycle.tssrc/routes/api/v1/projects.tsDeze functies delen contracten en grenzen met deze pagina.
De documentatie beschrijft dezelfde contracten die deze pagina demonstreert.