List Lead Activities
Retrieve a paginated list of activities for a specific lead. Returns activity data including event types, timestamps, and associated data. Results are filtered by the organization associated with the API key.
Authorization
bearerAuth Bearer token authentication for API access.
In: header
Path Parameters
The unique identifier of the lead
Query Parameters
Page number for pagination
11 <= valueNumber of items per page (max 100)
501 <= value <= 100Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.sophiie.ai/v1/leads/ld_abc123/activities"{
"activities": [
{
"id": 456,
"event": "LEAD_CREATED",
"data": "Status changed from pending to active",
"referenceId": "apt_abc123",
"userId": "usr_abc123",
"leadId": "ld_abc123",
"createdAt": "2023-01-01T00:00:00.000Z"
}
],
"totalPages": 5,
"currentPage": 1,
"totalCount": 42
}{
"success": false,
"message": "Invalid or expired token",
"error": {
"status": 401,
"message": "Invalid or expired token"
}
}{
"success": false,
"message": "Not found",
"error": {
"status": 404,
"message": "Not found"
}
}{
"success": false,
"message": "Internal server error",
"error": {
"status": 500,
"message": "Internal server error"
}
}Get Lead Details GET
Retrieve detailed information for a specific lead and address information. Results are filtered by the organization associated with the API key.
List Lead Notes GET
Retrieve a paginated list of notes for a specific lead. Returns note data including content, creation timestamps, and associated user information. Results are filtered by the organization associated with the API key.