A cap allows limiting the number of leads sent to a flow. If a lead is
successful, it will be counted against the maximum
configured leads.
If configured, the rule set will be evaluated to determine whether a lead
will be counted against the cap.
Get the counters for all active caps. Caps that haven't received lead traffic during the current interval will not be included.
OK
curl -i -X GET \ 'https://app.leadconduit.com/caps?flow_id=string'
[- {
- "id": "string",
- "cap_ids": [
- "string"
], - "caps": [
- { }
], - "count": 0,
- "duration": 1,
- "duration_units": "month",
- "expires_at": "2020-11-23T11:41:52Z",
- "failed_count": 0,
- "flow_id": "string",
- "maximum": 1200,
- "name": "Monthly leads from TX",
- "source_id": "string",
- "started_at": "2020-11-23T11:41:52Z",
- "step_id": "string",
- "time_zone": "America/New_York",
- "type": "volume",
- "updated_at": "2020-11-23T11:41:52Z"
}
]
curl -i -X GET \ https://app.leadconduit.com/caps/:id
{- "id": "string",
- "cap_ids": [
- "string"
], - "caps": [
- { }
], - "count": 0,
- "duration": 1,
- "duration_units": "month",
- "expires_at": "2020-11-23T11:41:52Z",
- "failed_count": 0,
- "flow_id": "string",
- "maximum": 1200,
- "name": "Monthly leads from TX",
- "source_id": "string",
- "started_at": "2020-11-23T11:41:52Z",
- "step_id": "string",
- "time_zone": "America/New_York",
- "type": "volume",
- "updated_at": "2020-11-23T11:41:52Z"
}