Skip to main content
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

  1. Log in to tracia.io
  2. Navigate to Settings > API Keys
  3. Click Create API Key
  4. Copy your key (starts with tr_)
Keep your API key secure. It provides full access to your Tracia account.

Request Format

All request bodies should be JSON with the Content-Type: application/json header.

Response Format

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: