Finding Your API Key
Your API key is generated automatically when your courier account is created. Retrieve it at any time from the dashboard.Log in to the Shiipp dashboard
Sign in with your courier account credentials at your Shiipp instance URL.
Using Your API Key
Pass your API key with every request to the Prealert API. The recommended method is theX-API-KEY request header. A query parameter fallback is available but not recommended outside of testing.
- Header (Recommended)
- Query Parameter (Fallback)
Pass your key in the
X-API-KEY header on every request. This is the preferred method for all production integrations.Code Examples
Rotating Your API Key
If you suspect your key has been compromised, or as part of routine key hygiene, you can regenerate it from the dashboard.Regenerate the key
Click Regenerate API Key in the API Configuration section. Shiipp generates a new key and invalidates the old one immediately.
Security Best Practices
Treat your API key like a password. Follow these practices to minimize the risk of unauthorized access.Store keys in environment variables or secret managers
Store keys in environment variables or secret managers
Never hardcode your API key directly in your source code. Instead, read it at runtime from an environment variable (
process.env.SHIIPP_API_KEY, getenv('SHIIPP_API_KEY')) or a dedicated secrets manager such as AWS Secrets Manager, HashiCorp Vault, or your hosting provider’s secret store.Never commit keys to version control
Never commit keys to version control
Add
.env files and any files that might contain secrets to your .gitignore. Scan your repository history for accidentally committed secrets before they are pushed to a remote. Tools like git-secrets or truffleHog can help automate this check.Rotate keys periodically
Rotate keys periodically
Establish a rotation schedule — for example, every 90 days — and rotate immediately if you suspect exposure. Because rotation is instant in Shiipp, the main overhead is updating your downstream systems, so keeping your integration points consolidated makes rotation faster.