curl -X GET https://app.tracia.io/api/v1/prompts/welcome-email \ -H "Authorization: Bearer tr_your_api_key"
{ "id": "clx1abc123", "slug": "welcome-email", "name": "Welcome Email", "description": "A welcome email template", "model": "gpt-4", "modelConfigurationId": "clx0xyz789", "currentVersion": 3, "content": [ { "id": "msg_1", "role": "system", "content": "You are a helpful assistant that writes professional emails." }, { "id": "msg_2", "role": "user", "content": "Write a welcome email for {{name}} who just signed up for {{product}}." } ], "variables": ["name", "product"], "createdAt": "2024-01-15T10:30:00.000Z", "updatedAt": "2024-01-20T14:22:00.000Z" }
Get a single prompt with its content
Bearer tr_your_api_key
Show Message object
system
user
assistant
{{variables}}