---
updatedAt: 2026-09-09T22:08:03.000Z
agentTools:
  projectIndex: https://developer.callhub.io/llms.txt
---

# /v1/templates/

Get supported question types from [Template API Schema](https://developer.callhub.io/reference/v1templatesapi-schema#/)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2.1"
  },
  "servers": [
    {
      "url": "https://api.callhub.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "x-default": "",
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/templates/": {
      "post": {
        "description": "",
        "operationId": "post_v1templates",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "label": {
                    "type": "string",
                    "description": "For differentiating between scripts"
                  },
                  "questions": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "type": {
                          "type": "string",
                          "default": "12",
                          "enum": [
                            "12",
                            "1"
                          ],
                          "description": "Supported question types"
                        },
                        "question": {
                          "type": "string",
                          "description": "Complete Question for Agent/ Text; Use Merge Tags"
                        },
                        "integration_custom_fields": {
                          "type": "string",
                          "description": "Save answers in Salesforce Custom Fields; use /v1/integrations_fields/"
                        },
                        "media_files": {
                          "type": "array",
                          "description": "List of media file Ids from /v2/media/",
                          "items": {
                            "type": "integer"
                          }
                        },
                        "question_name": {
                          "type": "string",
                          "description": "Identifier for Question"
                        },
                        "question_id": {
                          "type": "string",
                          "description": "VAN/ PDI Question Id from /v1/questions API"
                        },
                        "choices": {
                          "type": "array",
                          "items": {
                            "properties": {
                              "answer": {
                                "type": "string",
                                "description": "Choice Label"
                              },
                              "display_number": {
                                "type": "number",
                                "description": "Choice Order"
                              }
                            },
                            "type": "object",
                            "required": [
                              "answer"
                            ]
                          },
                          "description": "MCQ Choices"
                        },
                        "is_initial_message": {
                          "type": "boolean",
                          "description": "P2P Specific Setting"
                        },
                        "base_short_url": {
                          "type": "string",
                          "description": "Url Shortener Identifier ; Get from v2/shortened-urls/"
                        }
                      },
                      "type": "object",
                      "required": [
                        "type",
                        "question"
                      ]
                    },
                    "description": "List of Questions/Text"
                  }
                },
                "type": "object",
                "required": [
                  "label",
                  "questions"
                ]
              }
            }
          }
        },
        "x-readme": {
          "samples-languages": [
            "shell"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```