Authenticate every request
How clients retrieve complete datasets through authenticated API requests, pagination, and safe retries for throttling and transient failures. · associate
A reliable API consumer follows the provider's request contract: the endpoint, HTTP method, parameters, authentication scheme, and response format. Use HTTPS and grant the calling identity only the read permissions it needs. Authentication establishes the caller's identity; authorization determines which data that identity may read.
For AWS APIs that use IAM authentication, prefer temporary credentials supplied through a workload role. An AWS SDK can obtain these credentials through its credential provider chain and sign requests with Signature Version 4. Other APIs may require an OAuth access token or another documented mechanism. An API key is not a universal replacement for identity credentials.
Authentication applies to later pages and retries, not just the first call. Let the supported credential provider refresh temporary credentials, and use the provider's documented renewal flow for expiring tokens. Never log credentials or authorization headers. If authentication or permissions fail, correct the cause rather than repeatedly sending the same rejected request.