Skip to main content
GET
/
api
/
v1
/
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",
      "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"
    }
  ]
}

Request

Authorization
string
required
Bearer token with your API key: Bearer tr_your_api_key

Response

prompts
array
Array of prompt objects
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"
    }
  ]
}