APIs connect modern applications, and they are an increasingly common target.
Authenticate every request
No public endpoints that return sensitive data.
Limit what each key can do
Separate keys with only the permissions needed.
Rate limit
Protect against abuse and automated attacks.
Validate input
Never trust data sent to your API.
Keep an inventory
Know every API you expose, including old versions.