curl -X GET https://app.tracia.io/api/v1/prompts \
-H "Authorization: Bearer tr_your_api_key"
const { prompts } = await tracia.prompts.list();
{
"prompts": [
{
"id": "clx1abc123",
"slug": "welcome-email",
"name": "Welcome Email",
"description": "A welcome email template",
"provider": "OPENAI",
"model": "gpt-4",
"temperature": 0.7,
"topP": null,
"maxOutputTokens": null,
"currentVersion": 3,
"variables": ["name", "product"],
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-20T14:22:00.000Z"
},
{
"id": "clx2def456",
"slug": "support-reply",
"name": "Support Reply",
"description": null,
"provider": "OPENAI",
"model": "gpt-3.5-turbo",
"temperature": null,
"topP": null,
"maxOutputTokens": null,
"currentVersion": 1,
"variables": ["customerName", "issue"],
"createdAt": "2024-01-18T09:15:00.000Z",
"updatedAt": "2024-01-18T09:15:00.000Z"
}
]
}
{
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
Prompts
List Prompts
Get all prompts for the authenticated user
GET
/
prompts
curl -X GET https://app.tracia.io/api/v1/prompts \
-H "Authorization: Bearer tr_your_api_key"
const { prompts } = await tracia.prompts.list();
{
"prompts": [
{
"id": "clx1abc123",
"slug": "welcome-email",
"name": "Welcome Email",
"description": "A welcome email template",
"provider": "OPENAI",
"model": "gpt-4",
"temperature": 0.7,
"topP": null,
"maxOutputTokens": null,
"currentVersion": 3,
"variables": ["name", "product"],
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-20T14:22:00.000Z"
},
{
"id": "clx2def456",
"slug": "support-reply",
"name": "Support Reply",
"description": null,
"provider": "OPENAI",
"model": "gpt-3.5-turbo",
"temperature": null,
"topP": null,
"maxOutputTokens": null,
"currentVersion": 1,
"variables": ["customerName", "issue"],
"createdAt": "2024-01-18T09:15:00.000Z",
"updatedAt": "2024-01-18T09:15:00.000Z"
}
]
}
{
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
Request
string
required
Bearer token with your API key:
Bearer tr_your_api_keyResponse
array
Array of prompt objects
Show Prompt object
Show Prompt object
string
Unique identifier for the prompt
string
URL-friendly identifier
string
Display name of the prompt
string | null
Description of the prompt
string | null
Model provider:
OPENAI, ANTHROPIC, GOOGLE, or AMAZON_BEDROCKstring | null
Default model for this prompt
number | null
Temperature setting for the model (0-2)
number | null
Top-p (nucleus) sampling setting (0-1)
number | null
Maximum output tokens limit
number
Current version number
string[]
List of template variables used in the prompt
string
ISO 8601 timestamp of creation
string
ISO 8601 timestamp of last update
curl -X GET https://app.tracia.io/api/v1/prompts \
-H "Authorization: Bearer tr_your_api_key"
const { prompts } = await tracia.prompts.list();
{
"prompts": [
{
"id": "clx1abc123",
"slug": "welcome-email",
"name": "Welcome Email",
"description": "A welcome email template",
"provider": "OPENAI",
"model": "gpt-4",
"temperature": 0.7,
"topP": null,
"maxOutputTokens": null,
"currentVersion": 3,
"variables": ["name", "product"],
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-20T14:22:00.000Z"
},
{
"id": "clx2def456",
"slug": "support-reply",
"name": "Support Reply",
"description": null,
"provider": "OPENAI",
"model": "gpt-3.5-turbo",
"temperature": null,
"topP": null,
"maxOutputTokens": null,
"currentVersion": 1,
"variables": ["customerName", "issue"],
"createdAt": "2024-01-18T09:15:00.000Z",
"updatedAt": "2024-01-18T09:15:00.000Z"
}
]
}
{
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
⌘I

