The Tracia API is a RESTful API that allows you to manage prompts and run them programmatically.
Base URL
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header:
Getting an API Key
- Log in to tracia.io
- Navigate to Settings > API Keys
- Click Create API Key
- Copy your key (starts with
tr_)
Keep your API key secure. It provides full access to your Tracia account.
All request bodies should be JSON with the Content-Type: application/json header.
All responses are JSON. Successful responses return the requested data:
Error Responses
Error responses include a code and message:
Error Codes
Endpoints
Prompts
Rate Limits
The API has rate limits to ensure fair usage. If you exceed the rate limit, you’ll receive a 429 Too Many Requests response.
SDK
We recommend using the official TypeScript SDK for easier integration: