TryzenAPI
Campaigns

Give a lead another of the campaign's senders

POST
/v1/campaigns/{campaignId}/leads/{campaignLeadId}/reassign

Access: an API key (or an org-wide key naming the workspace) with manage on campaigns.

Only a lead nobody has contacted yet moves (no invite or message sent, none that may have gone out, no connection or pending invite with its sender): a contacted lead stays with the sender it knows (409 lead_already_contacted). 409 lead_step_in_flight while a sender performs its step, lead_ended for a finished lead. A failed lead is retried on the new sender (see retry).

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

campaignId*string
Match^[0-9a-f]{24}$
campaignLeadId*string
Match^[0-9a-f]{24}$

Request Body

application/json
  1. body
senderId*string
Match^[0-9a-f]{24}$

Response Body

Default Response

application/json
  1. response
status*string
Value in"pending""in_progress""finished""paused""failed""excluded"
previousStatus*string
Value in"pending""in_progress""finished""paused""failed""excluded"
senderId*string
Match^[0-9a-f]{24}$
Example Request
curl -X POST 'https://api.tryzen.co/v1/campaigns/string/leads/string/reassign' \  -H 'Content-Type: application/json' \  -d '{  "senderId": "string"}'
Example Response
{  "status": "pending",  "previousStatus": "pending",  "senderId": "string"}