API Authentication Guide
· One min read
Learn how to authenticate with the Tanqory API using OAuth 2.0 and API keys.
Authentication Methods
API Keys
API keys are the simplest way to authenticate requests. Include your API key in the request header:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.tanqory.com/v1/products
OAuth 2.0
For applications that need to act on behalf of users, use OAuth 2.0:
- Register your application
- Redirect users to the authorization URL
- Exchange the code for an access token
Best Practices
- Never expose API keys in client-side code
- Rotate keys regularly
- Use environment variables for key storage