Path Parameters
The unique identifier of the lead
Response
Array of action log objects
Show actionLogs
Show actionLogs
Unique identifier for the action log
Type of action (e.g.,
MESSAGE, FOLLOW_UP_MESSAGE, TOOL_CALL, MANUAL_UPDATE)Status of the action (e.g.,
COMPLETED, PENDING, CANCELLED, AWAITING_APPROVAL, FAILED)Brief summary of the action
Input data for the action (structure varies by action type)
Output data from the action (structure varies by action type)
Error message if the action failed
ID of the parent action that triggered this action
ISO 8601 timestamp when the action is scheduled (for future actions)
ISO 8601 timestamp when the action was created
ISO 8601 timestamp when the action was completed
Array of messages associated with this action
Show messages
Show messages
Unique identifier for the message
Channel of the message (e.g., “EMAIL”, “SMS”)
Direction of the message (e.g., “INBOUND”, “OUTBOUND”)
Subject of the message (for email messages)
Body content of the message
Copy
const leadId = '4ef30123-90c2-4dc0-bd28-b43eee8664ea';
const options = {
method: 'GET',
headers: {
'x-api-key': '<your-api-key>',
},
};
fetch(`https://api-v2.getomni.ai/api/v1/leads/${leadId}/action-logs`, options)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));
Copy
[
{
"id": "25a6e7dc-2cdf-46b8-b0d5-9f1655ae154a",
"type": "TOOL_CALL",
"status": "COMPLETED",
"summary": "Successfully executed deep research",
"input": {
"toolType": "deep_research",
"companyInfo": "Vital Climbing Gym LLC",
"instructions": "Conduct comprehensive company research"
},
"output": {
"success": true,
"summary": "Completed deep research for VITAL Climbing Gym...",
"researchResult": {
"address": "29990 Technology Dr, Unit 22, Murrieta, CA 92563",
"companyName": "VITAL Climbing Gym (Vital Climbing, LLC)",
"website": "https://www.vitalclimbinggym.com"
}
},
"error": null,
"parentActionId": null,
"scheduledAt": "2025-09-07T23:51:06.209Z",
"createdAt": "2025-09-07T23:51:06.210Z",
"completedAt": "2025-09-07T23:54:29.052Z",
"tool": {
"id": "0a58309e-9657-4f35-a08d-4de9af03a5b7",
"name": "update-checklist-item",
"description": "Update a lead checklist item with a new value"
},
"messages": []
},
{
"id": "e8ff3def-d6fc-40f7-902c-264d18fda1c5",
"type": "FOLLOW_UP_MESSAGE",
"status": "COMPLETED",
"summary": "Requested business details to start loan application process",
"input": {
"channel": "EMAIL",
"attemptNumber": 1,
"adminTriggered": true,
"missingItemsCount": 11
},
"output": {
"isReply": false,
"messageMetadata": {
"to": ["[email protected]"],
"from": "Mark Ding <[email protected]>",
"subject": "Finishing up your application"
}
},
"error": null,
"parentActionId": null,
"scheduledAt": "2025-09-07T23:56:21.587Z",
"createdAt": "2025-09-07T23:56:21.588Z",
"completedAt": "2025-09-07T23:56:45.426Z",
"tool": null,
"messages": [
{
"id": "a261a0ca-c77d-4226-a3f9-5cf63d0e8634",
"channel": "EMAIL",
"direction": "OUTBOUND",
"subject": "Finishing up your application",
"body": "Hi Anna,<br><br>This is Mark with Omni Capital...",
"documents": []
}
]
}
]