DocumentationAPI Reference
DocumentationAPI Reference
Book a meeting
Linkedin
Github
  1. Analysis Templates
  • Agents
    • List all agents
      GET
    • Create a new agent
      POST
    • Get an agent
      GET
    • Update an agent
      PATCH
    • Delete an agent
      DELETE
  • Tool Templates
    • List all tool templates
      GET
    • Create a new tool template
      POST
    • Get a tool template
      GET
    • Update a tool template
      PATCH
    • Delete a tool template
      DELETE
  • Numbers
    • List all phone numbers
      GET
    • Register a phone number
      POST
    • Get a phone number
      GET
    • Update a phone number
      PATCH
    • Delete a phone number
      DELETE
  • Calls
    • List calls
      GET
    • Get call by ID
      GET
    • Initiate outbound call
      POST
  • Call Control
    • Send control command to active call
      POST
  • Usage
    • Get usage logs
  • SIP Trunks
    • List SIP trunks
    • Create a SIP trunk
    • Get a SIP trunk
    • Delete a SIP trunk
  • Voices
    • List available voices
  • BYOK
    • Get BYOK configurations
    • Add BYOK configuration
    • Delete BYOK configuration
    • Get BYOK provider configurations
  • Domains
    • Get your domain
    • Add a domain
    • Delete your domain
    • List available Resend domains
    • Select and sync a Resend domain
    • Verify domain DNS records
    • Refresh domain status
  • Webhooks
    • Dynamic assistant configuration webhook
    • Tool/Function Call
    • Call Status Update
    • End of Call Report
  • Analysis Templates
    • List analysis templates
      GET
    • Create analysis template
      POST
    • Get analysis template
      GET
    • Update analysis template
      PATCH
    • Delete analysis template
      DELETE
  • Organization
    • Get organization information
    • Create organization
    • Get organization information (deprecated)
  • Campaigns
    • List all campaigns
    • Create a campaign
    • Get a campaign
    • Update a campaign
    • Delete a campaign
    • List campaign leads
    • Add a lead
    • Remove a lead
  • Schemas
    • Error
    • Pagination
    • UUID
    • Timestamp
    • SuccessResponse
    • STTConfig
    • LLMConfig
    • TTSConfig
    • XAIRealtimeConfig
    • Agent
    • AgentCreate
    • AgentUpdate
    • PhoneNumber
    • PhoneNumberCreate
    • PhoneNumberUpdate
    • Call
    • CallControlCommand
    • InjectContextCommand
    • SayCommand
    • EndCallCommand
    • TransferCommand
    • CallControlResponse
    • OutboundCallRequest
    • Account
    • UsageLog
    • OutboundCallResponse
    • UsageSummary
    • Organization
    • SipTrunk
    • SipTrunkCreate
    • OrganizationChild
    • Voice
    • OrganizationCreate
    • OrganizationCreated
    • AssistantRequestPayload
    • CallObject
    • Customer
    • AssistantRequestResponse
    • XAIRealtimeVoice
    • AssistantConfigOverride
    • AnalysisPlan
    • AssistantWebhookObject
    • ToolCallsPayload
    • ToolCall
    • ToolCallsResponse
    • StatusUpdatePayload
    • EndOfCallReportPayload
    • ToolDefinition
    • EndCallTool
    • TransferCallTool
    • WebhookHeaders
    • XAIRealtimeWebhookNotes
    • ToolFunctionConfig
    • ToolTransferConfig
    • ToolTemplate
    • ToolTemplateCreate
    • ToolTemplateUpdate
    • AnalysisTemplate
    • CreateAnalysisTemplate
    • UpdateAnalysisTemplate
    • AnalysisTemplateListResponse
    • CampaignLead
    • Campaign
    • CampaignCreate
    • CampaignUpdate
    • CampaignLeadCreate
DocumentationAPI Reference
DocumentationAPI Reference
Book a meeting
Linkedin
Github
  1. Analysis Templates

Create analysis template

POST
https://api.hmsovereign.com/api/v1/analysis-templates
Analysis Templates
Last modified:2026-01-30 13:43:45
Maintainer:Jesper Rietbergen
Create a new analysis template for your organization

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Examples

Responses

🟢201
application/json
Analysis template created successfully
Body

🟠400
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.hmsovereign.com/api/v1/analysis-templates' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Lead Qualification",
    "description": "Qualify sales leads based on call content",
    "system_prompt": "You are a sales analyst. Extract lead qualification information from sales calls.",
    "user_prompt": "Analyze this sales call and extract: budget mentioned, timeline, decision maker involvement, and pain points.\n\nTranscript: {transcript}",
    "schema": {
        "type": "object",
        "properties": {
            "budget_mentioned": {
                "type": "boolean",
                "description": "Whether budget was discussed"
            },
            "timeline": {
                "type": "string",
                "description": "Expected timeline for purchase"
            },
            "decision_maker": {
                "type": "boolean",
                "description": "Whether speaking with decision maker"
            }
        }
    },
    "is_active": true
}'
Response Response Example
201 - Example 1
{
    "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"
            }
        }
    },
    "is_active": true,
    "created_at": "2024-01-15T10:00:00Z",
    "updated_at": "2024-01-15T10:00:00Z"
}
Modified at 2026-01-30 13:43:45
Previous
List analysis templates
Next
Get analysis template
Built with