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

# /email/v_1/relational-campaign/create/

```json
```

<br />

# 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": {
    "/email/v_1/relational-campaign/create/": {
      "post": {
        "description": "",
        "operationId": "post_emailv_1relational-campaigncreate",
        "responses": {
          "200": {
            "description": ""
          }
        },
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Campaign name – a short, unique title used to identify the campaign in CallHub."
                  },
                  "brief": {
                    "type": "string",
                    "description": "short description of the campaign"
                  },
                  "contact_list_ids\t": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "List of Phonebook IDs that hold the contacts to text"
                  },
                  "tag_ids": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "UserTag IDs to filter contacts before sending."
                  },
                  "banner_id": {
                    "type": "integer",
                    "description": "ID of a MediaFile (image/video) to attach as the campaign’s banner"
                  },
                  "banner_url": {
                    "type": "string",
                    "description": "Direct URL to a banner image if you don’t have a MediaFile ID"
                  },
                  "survey_id": {
                    "type": "integer"
                  },
                  "initial_scripts": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "script_text": {
                          "type": "string"
                        },
                        "script_type": {
                          "type": "integer",
                          "enum": [
                            2,
                            3
                          ],
                          "description": "MESSAGE = 1     CALL = 2     SHARE = 3",
                          "default": "1"
                        },
                        "is_required": {
                          "type": "boolean",
                          "default": "true"
                        }
                      },
                      "type": "object",
                      "required": [
                        "script_text",
                        "script_type"
                      ]
                    }
                  },
                  "survey_scripts": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "question": {
                          "type": "string"
                        },
                        "type": {
                          "type": "number",
                          "enum": [
                            4,
                            1,
                            3
                          ],
                          "description": "1 = Multiple Choice ; 2 = Short Answer ; 3= Numeric ; 4 = Notes",
                          "default": "2"
                        },
                        "order_number": {
                          "type": "integer",
                          "default": "1"
                        },
                        "is_required": {
                          "type": "boolean",
                          "default": "true"
                        },
                        "multi_choice_options": {
                          "type": "array",
                          "items": {
                            "properties": {
                              "answer": {
                                "type": "string"
                              }
                            },
                            "type": "object",
                            "required": [
                              "answer"
                            ]
                          }
                        }
                      },
                      "type": "object",
                      "required": [
                        "type",
                        "order_number"
                      ]
                    }
                  },
                  "default_outreach_medium": {
                    "type": "integer",
                    "default": "1",
                    "enum": [
                      2,
                      3
                    ],
                    "description": "MESSAGE = 1     CALL = 2     SHARE = 3"
                  },
                  "agent_assignment_choice": {
                    "type": "integer",
                    "enum": [
                      2,
                      3
                    ],
                    "default": "1",
                    "description": "ALL=1 SELECTED = 2     TEAM = 3"
                  },
                  "selected_agents": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Explicit list of Agent IDs to use when agent_assignment_choice is not ALL"
                  },
                  "selected_team": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Explicit list of Team IDs to use when agent_assignment_choice is not ALL."
                  },
                  "start_date": {
                    "type": "string",
                    "description": "Campaign start date ( YYYY‑MM‑DD )"
                  },
                  "start_time": {
                    "type": "string",
                    "description": "Campaign start time (HH:MM:SS )"
                  },
                  "end_date": {
                    "type": "string",
                    "description": "Campaign end date ( YYYY‑MM‑DD )"
                  },
                  "end_time": {
                    "type": "string",
                    "description": "Campaign end time (HH:MM:SS )"
                  },
                  "timezone": {
                    "type": "string",
                    "default": "UTC",
                    "description": "Timezone"
                  }
                },
                "required": [
                  "name",
                  "contact_list_ids\t",
                  "default_outreach_medium",
                  "end_time",
                  "end_date",
                  "start_time",
                  "start_date",
                  "initial_scripts",
                  "survey_scripts",
                  "agent_assignment_choice"
                ]
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```