How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC
lock

Security & Authentication 8

Keys, tokens, OAuth, JWT, encryption, and the difference between securing an API and looking like you did.

search
help

How do I set rate limits, and what should they be?

Set them per consumer and per plan rather than globally, publish them, return them in headers, give people a path to more, and remember rate limits are a business tool as much as a protective one.

help

How do I stop leaking API keys and tokens?

Assume they will leak. Scope them narrowly, expire them by default, make rotation and revocation trivial, scan your repositories continuously, and monitor for anomalous use.

help

How should I secure my API?

Layer it — TLS everywhere, real authentication, least-privilege authorization, input validation from schema, rate limiting, logging and monitoring — and enforce the baseline with governance rules rather than good inte...

help

Should I log every API request?

Log enough to reconstruct what happened, never log credentials or personal data you do not need, and decide retention deliberately — because an access log is also a surveillance record.

help

What are OAuth scopes for, and how should I design them?

Scopes define what a token may do. Design them around what a consumer is trying to accomplish, publish them as a first-class page, and reference them inline in your documentation.

help

What is a personal access token and should my API offer one?

A token a user can generate for their own account without registering an application. Yes, you should offer one — it removes the single biggest source of onboarding friction in OAuth-based APIs.

help

What is the biggest API security risk?

The APIs you do not know you have, followed closely by broken object-level authorization on the ones you do. Both are inventory problems before they are code problems.

help

Why is OAuth so hard?

Because it solves a genuinely hard problem — delegated access without sharing passwords — and because most implementations bolt an application registration and a multi-leg dance onto what the user experiences as "let ...