> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Import a Customer.io campaign as a journey

POST`/workspace/{orgId}/journeys/import/customerio`

A linear Customer.io campaign (waits and emails in one line) as a DRAFT journey, never a live one. The body is the campaign document as Customer.io answers it: {"campaign": , "templates": \[ per email\], "identities": , "segments"?: }, with "dryRun" (true unless false: answer the mapping and save nothing), "topicMap"? {"": ""} and "segmentMap"? {"": }. Topics map by name and senders by address, or are reported and left empty; a branch, split, webhook, attribute update or per-action condition refuses the import, with a line per action. Importing a campaign again updates its draft. Owners and admins.

## Path Parameters

`orgId`

numberrequired

## Response

200

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/workspace/{orgId}/journeys/import/customerio'
```

**JavaScript**

```javascript
const options = {
  method: 'POST'
};

fetch('https://api.workover.io/workspace/{orgId}/journeys/import/customerio', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/workspace/{orgId}/journeys/import/customerio"

response = requests.post(url)

print(response.text)
```
