Get Recent Inquiries
Retrieve the 5 most recent inquiries for providing sample data in the Zap Editor. Returns formatted inquiry data including key points, source information, and lead details.
Authorization
bearerAuth AuthorizationBearer <token>
Bearer token authentication for Zapier API access
In: header
Query Parameters
org_id*string
Organization ID
user_id*string
User ID
Response Body
application/json
application/json
application/json
curl -X GET "https://webhooks.sophiie.ai/api/webhooks/zapier/inquiries?org_id=org_1234&user_id=usr_1234"[
{
"id": "789 - 2023-01-01T00:00:00.000Z",
"leadId": "123",
"leadFullName": "John Doe",
"leadAddress": "123 Main St, Downtown, NY 10001",
"leadDetails": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"businessName": "Acme Corp",
"address": "123 Main St, Downtown, NY 10001"
},
"originalId": "789",
"tag": "urgent",
"keyPoints": "Customer interested in new service, budget $5000",
"summary": "Customer inquiry about new service offering",
"source": "CALL",
"sourceId": "call_123",
"sourceData": {
"id": "123",
"summary": "Customer discussed pricing options",
"keyPoints": [
"Budget: $5000",
"Timeline: 3 months"
],
"recordingUrl": "https://recordings.example.com/call_123.mp3",
"transcripts": [
{
"id": "string",
"created_at": "string",
"text": "string",
"user": "assistant"
}
],
"direction": "LEAD_TO_AI",
"duration": 300,
"startedAt": "2023-01-01T10:00:00.000Z",
"endedAt": "2023-01-01T10:05:00.000Z",
"endedBy": "customer"
},
"isFirstInquiry": true,
"isRead": false,
"createdAt": "2023-01-01T00:00:00.000Z"
}
]{
"success": false,
"message": "invalid_token",
"error": {
"status": 401,
"message": "invalid_token"
}
}{
"success": false,
"message": "Oops! Something went wrong",
"error": {
"status": 500,
"message": "Oops! Something went wrong"
}
}Get Recent Appointments GET
Retrieve the 5 most recent appointments for providing sample data in the Zap Editor. Returns formatted appointment data including attendees, schedule, and lead information.
Get Recent Leads GET
Retrieve the 5 most recent leads for providing sample data in the Zap Editor. Returns formatted lead data including contact information and status.