---
updatedAt: 2026-08-11T10:25:44.000Z
agentTools:
  projectIndex: https://directiq.readme.io/llms.txt
---

# Create regular campaign

Creates regular, returns created campaign.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Core API",
    "termsOfService": "https://directiq.com/terms",
    "contact": {
      "name": "Baris Ergin",
      "url": "https://directiq.com/contact",
      "email": ""
    },
    "version": "v1-current"
  },
  "servers": [
    {
      "url": "https://rest.directiq.com/core",
      "description": "Production"
    }
  ],
  "paths": {
    "/campaign/create": {
      "post": {
        "tags": [
          "Campaign"
        ],
        "summary": "Create regular campaign",
        "description": "Creates regular, returns created campaign.",
        "parameters": [
          {
            "name": "api-version",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCampaignRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCampaignRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCampaignRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CampaignAdditionalSettings": {
        "type": "object",
        "properties": {
          "gradualSend": {
            "type": "boolean"
          },
          "addGoogleAnalytics": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CampaignDesignModel": {
        "required": [
          "subjectLine"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "minimum": 1,
            "type": "integer",
            "format": "int64"
          },
          "subjectLine": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "preheader": {
            "maxLength": 256,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CampaignRegularFromModel": {
        "required": [
          "address",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "address": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CampaignResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "parentId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "campaignTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagModel"
            },
            "nullable": true
          },
          "lists": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "segments": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "language": {
            "type": "string",
            "nullable": true
          },
          "totalRecipients": {
            "type": "integer",
            "format": "int32"
          },
          "fromName": {
            "type": "string",
            "nullable": true
          },
          "fromEmail": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "integer",
            "format": "int64"
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "timeZoneId": {
            "type": "string",
            "nullable": true
          },
          "scheduleTimeUTC": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CampaignTimingModel": {
        "type": "object",
        "properties": {
          "sendNow": {
            "type": "boolean"
          },
          "scheduleTime": {
            "type": "string",
            "description": "Format: yyyy-MM-ddTHH:mm:ssZ, Example: 2025-02-22T22:22:22+00:00",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CampaignToModel": {
        "required": [
          "language"
        ],
        "type": "object",
        "properties": {
          "listIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "segmentIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "contactTagIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "excludedListIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "excludedSegmentIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "excludedTagIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "excludedDomainIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "hashedSuppressionListIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "language": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CreateCampaignRequest": {
        "required": [
          "design",
          "from",
          "name",
          "recipients",
          "timing"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int64"
            },
            "nullable": true
          },
          "from": {
            "$ref": "#/components/schemas/CampaignRegularFromModel"
          },
          "recipients": {
            "$ref": "#/components/schemas/CampaignToModel"
          },
          "design": {
            "$ref": "#/components/schemas/CampaignDesignModel"
          },
          "timing": {
            "$ref": "#/components/schemas/CampaignTimingModel"
          },
          "additionalSettings": {
            "$ref": "#/components/schemas/CampaignAdditionalSettings"
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "TagModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "description": "Basic Authentication",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ]
}
```