An API key or token is a credential used to authorize requests.
Treat it like a password.
A leaked credential can allow someone else to access or change business data.
Do not place secret API keys in browser JavaScript, screenshots, public documents, or public source repositories.
Server applications normally read secrets from protected environment variables or secret-management systems.
Not every provider authenticates the same way.
Some use an API key header.
Some use a bearer token.
OAuth lets users authorize access without handing your app their password.
Follow the provider's supported method.
A credential that only needs to read contacts should not necessarily have permission to delete them.
When a provider supports scopes or separate keys, prefer the least access needed for the job.
Create two lists.
Safe places can include server environment variables or an approved secret manager.
Unsafe places include public GitHub, browser source code, chat screenshots, and shared documents.
Do not use a real credential for this exercise.
Pretend your integration suddenly starts returning authentication errors.
Write how you would identify the credential problem, replace the key safely, and avoid exposing the old or new secret while troubleshooting.