VoiceDock Docs
ApiAnalysis Templates

Get analysis template

Retrieve a specific analysis template by ID

GET
/analysis-templates/{template_id}

Retrieve a specific analysis template by ID

Authorization

BearerAuth
AuthorizationBearer <token>

API key authentication. Get your key from the dashboard.

In: header

Path Parameters

template_id*string

UUID of the analysis template

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/analysis-templates/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "org_id": "7461b868-afc1-4fe2-871a-5e7c0f3d5772",
  "name": "Customer Satisfaction Survey",
  "description": "Extract customer satisfaction metrics and feedback from support calls",
  "system_prompt": "You are analyzing a customer service call. Extract key satisfaction indicators and feedback.",
  "user_prompt": "Analyze this call transcript and extract: customer satisfaction level, main issues discussed, and whether the issue was resolved.\n\nTranscript: {transcript}",
  "schema": {
    "type": "object",
    "properties": {
      "satisfaction_level": {
        "type": "string",
        "description": "Overall customer satisfaction",
        "enum": [
          "very_satisfied",
          "satisfied",
          "neutral",
          "dissatisfied",
          "very_dissatisfied"
        ]
      },
      "main_issues": {
        "type": "array",
        "description": "List of issues discussed during the call"
      },
      "issue_resolved": {
        "type": "boolean",
        "description": "Whether the customer's issue was resolved"
      }
    }
  },
  "created_at": "2024-01-15T10:00:00Z",
  "updated_at": "2024-01-15T10:00:00Z"
}
{
  "error": "Invalid API key",
  "message": "string"
}
{
  "error": "Invalid API key",
  "message": "string"
}