Skip to main content

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

All keys start with the pyp_live_ prefix followed by 48 hexadecimal characters.

Sending the Key

Include your API key in the Authorization header of every request:
Never expose your API key in frontend code, public repositories, or logs. Treat it like a password.

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

Never put your API key directly in your code. Use environment variables:
Create a new key in the Dashboard, update your systems, and revoke the old key.
Keep separate keys for development, staging, and production.