Inquiries
List Inquiries
Retrieve a paginated list of inquiries. Supports filtering by lead ID. Results are filtered by the organization associated with the API key.
Authorization
bearerAuth AuthorizationBearer <token>
Bearer token authentication for API access.
In: header
Query Parameters
page?integer
Page number for pagination
Default
1Range
1 <= valuelimit?integer
Number of items per page (max 100)
Default
50Range
1 <= value <= 100leadId?string
Filter inquiries by lead ID
source?string
Filter inquiries by source type
Value in
"CALL" | "EMAIL" | "CHATBOT" | "SMS" | "WEBFORM"expand?string
Expand additional data: 'external' for externalInquiryId, 'lead' for lead info, 'both' for both
Value in
"external" | "lead" | "both"Response Body
application/json
application/json
application/json
curl -X GET "https://api.sophiie.ai/v1/inquiries"{
"inquiries": [
{
"id": "in_xyz789",
"source": "CALL",
"sourceId": "call_abc123",
"tag": "urgent",
"summary": "Customer inquiry about new service offering",
"isFirstInquiry": true,
"isRead": false,
"leadId": "ld_abc123",
"createdAt": "2023-01-01T00:00:00.000Z"
}
],
"totalPages": 3,
"currentPage": 1,
"totalCount": 125
}{
"success": false,
"message": "Invalid or expired token",
"error": {
"status": 401,
"message": "Invalid or expired token"
}
}{
"success": false,
"message": "Internal server error",
"error": {
"status": 500,
"message": "Internal server error"
}
}