Concept Flow - Authentication for API
Client sends API request
Server checks for auth token
Validate token
Token valid?
Yes No
Process API
Send response
The API receives a request, checks for an authentication token, validates it, and either processes the request or rejects it with an error.