curl -X GET https://app.tracia.io/api/v1/prompts \
-H "Authorization: Bearer tr_your_api_key"
{
"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"
}
]
}
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"
{
"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"
}
]
}
Request
Bearer token with your API key:
Bearer tr_your_api_keyResponse
Array of prompt objects
Show Prompt object
Show Prompt object
Unique identifier for the prompt
URL-friendly identifier
Display name of the prompt
Description of the prompt
Model provider:
OPENAI, ANTHROPIC, GOOGLE, or AMAZON_BEDROCKDefault model for this prompt
Temperature setting for the model (0-2)
Top-p (nucleus) sampling setting (0-1)
Maximum output tokens limit
Current version number
List of template variables used in the prompt
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
curl -X GET https://app.tracia.io/api/v1/prompts \
-H "Authorization: Bearer tr_your_api_key"
{
"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"
}
]
}
⌘I

