TryzenAPI
Campaigns

Retry a failed lead

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

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

Failed → Pending: the lead runs again from the step that failed, now (no delay). Pass senderId to run it on another of the campaign's senders (required when its sender left the campaign). 409 lead_outcome_unknown when the failed step may have reached LinkedIn (unknown_outcome): retrying could send it twice, so those leads are never retried. 409 lead_step_completed when that step went through, lead_not_failed, campaign_not_running. Sending it again while the retry waits re-starts the workflow (the recovery path).

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
Default{}
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"
Example Request
curl -X POST 'https://api.tryzen.co/v1/campaigns/string/leads/string/retry' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "status": "pending",  "previousStatus": "pending"}