Get a lead automation workflow status
curl --request GET \
--url https://api.leadping.ai/leads/{id}/workflow-statusimport requests
url = "https://api.leadping.ai/leads/{id}/workflow-status"
response = requests.get(url)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/leads/{id}/workflow-status");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://api.leadping.ai/leads/{id}/workflow-status")
.asString();const options = {method: 'GET'};
fetch('https://api.leadping.ai/leads/{id}/workflow-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/leads/{id}/workflow-status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/leads/{id}/workflow-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"leadId": "<string>",
"runs": [
{
"id": "<string>",
"businessId": "<string>",
"leadId": "<string>",
"automation": {
"id": "<string>",
"name": "<string>"
},
"triggerType": "<string>",
"triggerDisplay": "<string>",
"status": "<string>",
"statusDisplay": "<string>",
"currentStep": {
"id": "<string>",
"name": "<string>"
},
"currentStepOrder": "<string>",
"nextExecutionAt": "2023-11-07T05:31:56Z",
"lastExecutionAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"retryCount": "<string>",
"maxRetryCount": "<string>",
"nextRetryAt": "2023-11-07T05:31:56Z",
"lastErrorCode": "<string>",
"lastErrorMessage": "<string>",
"skipReasonCode": "<string>",
"skipReasonDisplay": "<string>",
"lastActionSummary": "<string>",
"actions": [
{
"id": "<string>",
"stepId": "<string>",
"stepOrder": "<string>",
"stepDisplayName": "<string>",
"actionType": "<string>",
"actionTypeDisplay": "<string>",
"status": "<string>",
"statusDisplay": "<string>",
"scheduledAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"skippedAt": "2023-11-07T05:31:56Z",
"retryCount": "<string>",
"nextRetryAt": "2023-11-07T05:31:56Z",
"userSummary": "<string>",
"safeReason": "<string>",
"failureCode": "<string>"
}
],
"events": [
{
"id": "<string>",
"stepId": "<string>",
"actionId": "<string>",
"eventType": "<string>",
"status": "<string>",
"statusDisplay": "<string>",
"summary": "<string>",
"reasonCode": "<string>",
"occurredAt": "2023-11-07T05:31:56Z"
}
]
}
]
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Leads
Get a lead automation workflow status
Returns automation workflow status for one lead, including active runs, paused state, and follow-up progress for the current business.
GET
/
leads
/
{id}
/
workflow-status
Get a lead automation workflow status
curl --request GET \
--url https://api.leadping.ai/leads/{id}/workflow-statusimport requests
url = "https://api.leadping.ai/leads/{id}/workflow-status"
response = requests.get(url)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/leads/{id}/workflow-status");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://api.leadping.ai/leads/{id}/workflow-status")
.asString();const options = {method: 'GET'};
fetch('https://api.leadping.ai/leads/{id}/workflow-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/leads/{id}/workflow-status"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/leads/{id}/workflow-status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"leadId": "<string>",
"runs": [
{
"id": "<string>",
"businessId": "<string>",
"leadId": "<string>",
"automation": {
"id": "<string>",
"name": "<string>"
},
"triggerType": "<string>",
"triggerDisplay": "<string>",
"status": "<string>",
"statusDisplay": "<string>",
"currentStep": {
"id": "<string>",
"name": "<string>"
},
"currentStepOrder": "<string>",
"nextExecutionAt": "2023-11-07T05:31:56Z",
"lastExecutionAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"retryCount": "<string>",
"maxRetryCount": "<string>",
"nextRetryAt": "2023-11-07T05:31:56Z",
"lastErrorCode": "<string>",
"lastErrorMessage": "<string>",
"skipReasonCode": "<string>",
"skipReasonDisplay": "<string>",
"lastActionSummary": "<string>",
"actions": [
{
"id": "<string>",
"stepId": "<string>",
"stepOrder": "<string>",
"stepDisplayName": "<string>",
"actionType": "<string>",
"actionTypeDisplay": "<string>",
"status": "<string>",
"statusDisplay": "<string>",
"scheduledAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"skippedAt": "2023-11-07T05:31:56Z",
"retryCount": "<string>",
"nextRetryAt": "2023-11-07T05:31:56Z",
"userSummary": "<string>",
"safeReason": "<string>",
"failureCode": "<string>"
}
],
"events": [
{
"id": "<string>",
"stepId": "<string>",
"actionId": "<string>",
"eventType": "<string>",
"status": "<string>",
"statusDisplay": "<string>",
"summary": "<string>",
"reasonCode": "<string>",
"occurredAt": "2023-11-07T05:31:56Z"
}
]
}
]
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}⌘I

