TryzenAPI
Leads

The campaigns a lead is in, with its status in each

GET
/v1/leads/{leadId}/campaigns

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

Newest enrollment first, at most 200. leadStatus is the lead's own status in that campaign (pending, in_progress, finished, paused, failed, excluded). 404 lead_not_found when it isn't in this workspace.

Authorization

apiKey
headerx-api-key<token>

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

Path Parameters

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

Response Body

Default Response

application/json
  1. response
leadId*string
Match^[0-9a-f]{24}$
campaigns*array<>
Example Request
curl -X GET 'https://api.tryzen.co/v1/leads/string/campaigns'
Example Response
{  "leadId": "string",  "campaigns": [    {      "campaignId": "string",      "name": "string",      "campaignStatus": "draft",      "leadStatus": "pending",      "replied": true,      "senderId": "string",      "failureCode": "string",      "enrolledAt": "2019-08-24T14:15:22Z",      "finishedAt": "2019-08-24T14:15:22Z"    }  ]}