API Keys
Create and manage API keys to authenticate your applications when making API requests to our platform
Your API Keys
Manage the API keys for your account and applications
New API Key Created Successfully
This key will only be displayed once. Please copy it now and store it securely.
new_1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p7q8r9s0t1u2v3w4x5y6z7a8b9c0d
Name | Key Prefix | Permissions | Expires | Last Used | Actions |
---|---|---|---|---|---|
Production BackendCreated 2 months ago | prd_6f7g8h9i | ReadWrite | in 10 months | 2 weeks ago | |
Data Analytics IntegrationCreated 4 weeks ago | dat_7g8h9i0j | Read | Never expires | 2 weeks ago | |
Testing EnvironmentCreated 4 months ago | tst_8h9i0j1k | ReadWriteAdmin | in 2 months | 1 month ago | |
Legacy IntegrationCreated 7 months ago | leg_9i0j1k2l | Read | 3 weeks ago | 3 weeks ago | |
Compromised KeyCreated 3 months ago | rev_0j1k2l3m | ReadWrite | in 9 months | 2 months ago |
Using Your API Keys
Learn how to authenticate your requests with your API keys
Authentication Methods
Bearer Token (Recommended)
Recommended
Pass your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Query Parameter
Include your API key as a query parameter:
https://twarix.com/api/v1/endpoint?api_key=YOUR_API_KEY
This method is less secure as API keys may be logged in server access logs. Use only when Bearer token authentication is not possible.
Example Request
curl -X GET \
https://twarix.com/api/v1/data \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"
API Usage
Requests this month8,254 / 10,000
Requests today345 / 1,000
Security Best Practices
Key Rotation
Regularly rotate your API keys to minimize security risks
Least Privilege
Use the minimum permissions necessary for each API key
Secure Storage
Never store API keys in client-side code or public repositories
API Settings
Configure additional settings for your API access, including rate limits, IP restrictions, and webhook integrations.