The Tracia API is a RESTful API that allows you to manage prompts and run them programmatically.Documentation Index
Fetch the complete documentation index at: https://docs.tracia.io/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
Authentication
All API requests require authentication using a Bearer token. Include your API key in theAuthorization 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_)
Request Format
All request bodies should be JSON with theContent-Type: application/json header.
Response Format
All responses are JSON. Successful responses return the requested data:Error Responses
Error responses include acode and message:
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Invalid or missing API key |
NOT_FOUND | 404 | Resource not found |
CONFLICT | 409 | Resource already exists |
INVALID_REQUEST | 400 | Invalid request format |
MISSING_VARIABLES | 400 | Missing required template variables |
MISSING_PROVIDER_KEY | 400 | No LLM provider key configured |
PROVIDER_ERROR | 500 | Error from the LLM provider |
Endpoints
Prompts
| Method | Endpoint | Description |
|---|---|---|
GET | /prompts | List all prompts |
GET | /prompts/:slug | Get a prompt |
POST | /prompts | Create a prompt |
PUT | /prompts/:slug | Update a prompt |
DELETE | /prompts/:slug | Delete a prompt |
POST | /prompts/:slug/run | Run a prompt |
Rate Limits
The API has rate limits to ensure fair usage. If you exceed the rate limit, you’ll receive a429 Too Many Requests response.

