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",
"model": "gpt-4",
"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,
"model": "gpt-3.5-turbo",
"currentVersion": 1,
"variables": ["customerName", "issue"],
"createdAt": "2024-01-18T09:15:00.000Z",
"updatedAt": "2024-01-18T09:15:00.000Z"
}
]
}
Get all prompts for the authenticated user
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",
"model": "gpt-4",
"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,
"model": "gpt-3.5-turbo",
"currentVersion": 1,
"variables": ["customerName", "issue"],
"createdAt": "2024-01-18T09:15:00.000Z",
"updatedAt": "2024-01-18T09:15:00.000Z"
}
]
}
Bearer tr_your_api_keyShow Prompt object
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",
"model": "gpt-4",
"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,
"model": "gpt-3.5-turbo",
"currentVersion": 1,
"variables": ["customerName", "issue"],
"createdAt": "2024-01-18T09:15:00.000Z",
"updatedAt": "2024-01-18T09:15:00.000Z"
}
]
}