Authentication
The Truedy API supports two authentication methods depending on your use case.Public API (API key)
Use API keys for server-to-server integration and the Public API at base path/api/public/v1.
Sending your API key
Send your API key in the Authorization header as a Bearer token:Creating an API key
- Log in to the Truedy Dashboard.
- Go to Settings → API Keys.
- Click Create API Key, give it a name, and copy the key (shown once).
Security
- Do not commit API keys to source control or expose them in client-side code.
- Use IP whitelisting and rate limits per key when possible.
- Keys can be revoked at any time from the dashboard.
Frontend API (JWT)
The frontend API at/api/v1 uses Clerk JWT tokens for browser-based apps. Use the Clerk SDK to obtain a session token and send it in the Authorization header.
Error responses
All Public API endpoints may return these status codes. The API reference documents them for every endpoint.
Errors follow this shape:

