API Keys
All requests to the Tartini API are authenticated via an API key. Keys are generated in the Dashboard and associated with a company.Key Format
pyp_live_ prefix followed by 48 hexadecimal characters.
Sending the Key
Include your API key in theAuthorization header of every request:
Security
- Keys are stored as SHA-256 hashes on the server, never in plain text
- Each key is associated with a single company
- All requests are logged with IP, user agent, and timestamp
- Keys can be revoked at any time in the Dashboard
Subscription Validation
In addition to the key being valid, the API checks whether the company’s subscription is active. Companies with an inactive subscription receive:Authentication Errors
Best Practices
Use environment variables
Use environment variables
Never put your API key directly in your code. Use environment variables:
Rotate keys periodically
Rotate keys periodically
Create a new key in the Dashboard, update your systems, and revoke the old key.
Use different keys per environment
Use different keys per environment
Keep separate keys for development, staging, and production.