Set the sender identities

PATCH
/advanced/campaigns/{campaignId}/identities

Replaces the identities (sending accounts) of the campaign. Not allowed while RUNNING. For each step Emelia picks automatically, among these identities, the least used one that has an account on the channel. Rules checked at start: every identity needs an email provider if the sequence has an email step; with a LinkedIn step either use a single LinkedIn account or attach one to every identity.

Authorization

apiKey
Authorization<token>

Your 48 character API key, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api.

In: header

Path Parameters

campaignId*string

Identifier of a multichannel campaign (24 hexadecimal characters), as returned by POST /advanced/campaigns or GET /advanced/campaigns.

Match^[0-9a-fA-F]{24}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/advanced/campaigns/6650f1a2b839d80011c5a0f1/identities" \  -H "Authorization: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "identities": [      {        "name": "Marie Martin",        "email": "6650f1a2b839d80011c5a0aa",        "linkedin": "6650f1a2b839d80011c5a0bb"      }    ]  }'
{  "success": true,  "campaign": {    "_id": "6650f1a2b839d80011c5a0f1",    "name": "Q4 outreach: SaaS founders",    "status": "DRAFT",    "tagIds": [      "6650f1a2b839d80011c5a0f1"    ],    "identities": [      {        "_id": "6650f1a2b839d80011c5a0f1",        "userId": "6650f1a2b839d80011c5a0f1",        "name": "Marie Martin",        "email": "6650f1a2b839d80011c5a0f1",        "linkedin": "6650f1a2b839d80011c5a0f1",        "whatsapp": "6650f1a2b839d80011c5a0f1"      }    ],    "schedule": {      "dailyEmailAdded": 35,      "dailyEmailLimit": 100,      "dailyLinkedinAdded": 20,      "dailyWhatsappAdded": 20,      "bcc": "",      "trackLinks": false,      "trackOpens": false,      "timeZone": "Europe/Brussels",      "days": [        0,        1,        2,        3,        4      ],      "start": "08:00",      "end": "17:00",      "blacklistUnsub": false,      "excludeAlreadyMessaged": true,      "eventToStop": [        "VISITED"      ],      "alwaysOn": false,      "ignoreAutoReplies": false    },    "steps": {      "_id": "6650f1a2b839d800a4e02834",      "stepType": "START",      "delay": {        "amount": 1,        "unit": "MINUTES"      },      "identities": [        "6650f1a2b839d80044baeb18"      ],      "versions": [        {          "_id": "6650f1a2b839d80013570f83",          "subject": "Quick question about Nexora",          "message": "Hi Claire, thanks for your reply. Are you free for a call on Thursday?",          "disabled": false,          "rawHtml": true,          "attachments": [            {              "mediaType": "MEDIA"            }          ]        }      ],      "cc": "",      "conditions": {        "field": "MAIL_REPLIED",        "operator": "EQUAL"      },      "next": {        "_id": "6650f1a2b839d800a25c662b",        "stepType": "START",        "delay": {          "amount": 1,          "unit": "MINUTES"        },        "identities": [          "6650f1a2b839d8007164273b"        ],        "versions": [          {            "_id": "6650f1a2b839d800e3cff90e",            "subject": "Quick question about Nexora",            "message": "Hi Claire, thanks for your reply. Are you free for a call on Thursday?",            "disabled": false,            "rawHtml": true,            "attachments": []          }        ],        "cc": "",        "conditions": {          "field": "MAIL_REPLIED",          "operator": "EQUAL"        },        "next": {          "_id": "6650f1a2b839d8000c8b40ee",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d800c97cfdea"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d8000e5ac9e9",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d8005883bad3",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d80061d63f27",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        },        "yes": {          "_id": "6650f1a2b839d800e67c4eaa",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d800738d2716"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d800a9299d9d",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d8009dcb7b8f",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d80015dca463",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        },        "no": {          "_id": "6650f1a2b839d8003f5b7624",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d80031d36b08"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d8004f4341bb",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d800e426b271",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d80045c41fd5",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        }      },      "yes": {        "_id": "6650f1a2b839d8006176ac81",        "stepType": "START",        "delay": {          "amount": 1,          "unit": "MINUTES"        },        "identities": [          "6650f1a2b839d800688e2e89"        ],        "versions": [          {            "_id": "6650f1a2b839d8003873fb5c",            "subject": "Quick question about Nexora",            "message": "Hi Claire, thanks for your reply. Are you free for a call on Thursday?",            "disabled": false,            "rawHtml": true,            "attachments": []          }        ],        "cc": "",        "conditions": {          "field": "MAIL_REPLIED",          "operator": "EQUAL"        },        "next": {          "_id": "6650f1a2b839d800f6c87010",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d800fa504e04"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d8001e6fbabf",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d8001acbc61d",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d800d0a9c1e1",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        },        "yes": {          "_id": "6650f1a2b839d800c23685b0",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d800606da324"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d800d934ec5f",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d800dcd064bd",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d800f5c16001",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        },        "no": {          "_id": "6650f1a2b839d800950dae32",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d800711678de"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d800d24726a5",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d800895e1257",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d800590ca2cb",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        }      },      "no": {        "_id": "6650f1a2b839d8006b649885",        "stepType": "START",        "delay": {          "amount": 1,          "unit": "MINUTES"        },        "identities": [          "6650f1a2b839d800d2be6fad"        ],        "versions": [          {            "_id": "6650f1a2b839d800c7040c20",            "subject": "Quick question about Nexora",            "message": "Hi Claire, thanks for your reply. Are you free for a call on Thursday?",            "disabled": false,            "rawHtml": true,            "attachments": []          }        ],        "cc": "",        "conditions": {          "field": "MAIL_REPLIED",          "operator": "EQUAL"        },        "next": {          "_id": "6650f1a2b839d8003c66838c",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d800223b38d0"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d80041903763",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d800d9b8ce99",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d800fdcd421d",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        },        "yes": {          "_id": "6650f1a2b839d8008390e2f4",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d8007f9038d8"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d800caf55a6b",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d8001f7d0ac1",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d80009d680c5",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        },        "no": {          "_id": "6650f1a2b839d8006e1f3416",          "stepType": "START",          "delay": {            "amount": 1,            "unit": "MINUTES"          },          "identities": [            "6650f1a2b839d80068072332"          ],          "versions": [            {}          ],          "cc": "",          "conditions": {            "field": "MAIL_REPLIED",            "operator": "EQUAL"          },          "next": {            "_id": "6650f1a2b839d800aa7d5d31",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "yes": {            "_id": "6650f1a2b839d8006e15b9fb",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          },          "no": {            "_id": "6650f1a2b839d80076a1078f",            "stepType": "START",            "delay": {              "unit": "MINUTES"            },            "identities": [],            "versions": [],            "cc": "",            "conditions": {              "operator": "EQUAL"            },            "next": {              "stepType": "START"            },            "yes": {              "stepType": "START"            },            "no": {              "stepType": "START"            }          }        }      }    },    "recipients": {      "lists": [        {          "_id": "6650f1a2b839d80011c5a0f1",          "name": "Q4 outreach: SaaS founders",          "contactCount": 1        }      ],      "excludedLists": [        {          "_id": "6650f1a2b839d80011c5a0f1",          "name": "Q4 outreach: SaaS founders",          "contactCount": 1        }      ],      "processing": true    },    "zapierData": [      {        "_id": "6650f1a2b839d80011c5a0f1",        "webhookUrl": "https://hooks.yourcompany.com/emelia",        "events": []      }    ],    "hubspotIntegration": {},    "pipedriveIntegration": {},    "createdAt": "2026-10-06T09:30:00.000Z",    "startAt": "2026-10-06T09:30:00.000Z",    "estimatedEnd": "2026-10-06T09:30:00.000Z",    "plannedStart": "2026-10-06T09:30:00.000Z"  }}