API Keys
Using Your API Key
Include your API key in the X-API-Key
header with every request:
X-API-Key: your_api_key_here
Example using cURL:
curl -X POST https://api.medicare.healthsherpa.com/v1/contacts \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"first_name": "Alex", "last_name": "Lee", ...}'
API Key Management Best Practices
Secure Storage
Store API keys in environment variables or secure secret management systems
Never commit API keys to version control
Rotate keys immediately if they are accidentally exposed
Access Control
Limit access to API keys to only necessary personnel
Use different API keys for different environments (test vs production)
Implementation
Use HTTPS for API requests
Don't log API keys in error messages
Troubleshooting
If you receive a 401 Unauthorized
response:
Verify the API key is correctly formatted
Confirm you're using the correct key for your environment
Contact support if issues persist
Last updated