Skip to main content

API Authentication Guide

· One min read
Tanqory Team
Development Team @ Tanqory

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:

  1. Register your application
  2. Redirect users to the authorization URL
  3. 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