---
title: "Create a LinkedIn campaign"
method: POST
path: "/linkedin/campaigns"
tags: ["LinkedIn campaigns (legacy)"]
deprecated: true
---

# Create a LinkedIn campaign

`POST /linkedin/campaigns`

## Request

- Base URL: `https://api.emelia.io`
- URL: `https://api.emelia.io/linkedin/campaigns`
- Auth: API key in header `Authorization`

> **Deprecated.**

Creates an empty LinkedIn campaign in DRAFT with one VISIT step. name must be unique. Returns the full created campaign. New integrations should use the multichannel /advanced campaign endpoints instead.

## Request body

- object
  - `name` string, required

## Response `200`

Campaign created.

- object
  - `success` true, required
  - `campaign` LegacyLinkedinCampaign, required: A full LinkedIn campaign document.
    - `_id` string
    - `userId` string
    - `name` string
    - `status` 'DRAFT' | 'RUNNING' | 'PAUSED' | 'FINISHED' | 'ARCHIVED'
    - `account` string, nullable: LinkedIn account (authe) id.
    - `schedule` LegacyLinkedinScheduleOut
      - `dailyContact` integer
      - `timeZone` string
      - `days` integer[]
      - `start` string
      - `end` string
      - `excludeAlreadyMessaged` boolean
      - `exclude1stConn` boolean
      - `excludeNoPictures` boolean
    - `steps` object[]
      - `_id` string
      - `stepType` 'VISIT' | 'CONNECTION' | 'MESSAGE' | 'LIKE' | 'FOLLOW' | 'INMAIL'
      - `delay` object
        - `amount` integer
        - `unit` string
      - `versions` object[]
        - `_id` string
        - `message` string
        - `disabled` boolean
        - `attachments` object[]
    - `recipients` object
      - `lists` object[]
      - `contacts` string[]
      - `processing` boolean
    - `createdAt` string, date-time
    - `startAt` string, date-time
    - `estimatedEnd` string, date-time
    - `plannedStart` string, date-time

## Other responses

- `400`: Business or validation error. 400 by default; Joi validation errors carry code INVALID_REQUEST.

---

[API](https://skmtc.dev/emelia/apis/emelia-api.md) · [All operations](https://skmtc.dev/emelia/apis/emelia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/emelia/apis/emelia-api/revisions/8c0cb435f2c4?raw)
