Get Recent Appointments
Retrieve the 5 most recent appointments for providing sample data in the Zap Editor. Returns formatted appointment data including attendees, schedule, and lead information.
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/appointments?org_id=org_1234&user_id=usr_1234"[
{
"id": "456 - 2023-01-01T00:00:00.000Z",
"originalId": "456",
"title": "Customer Meeting",
"description": "Meeting with customer to discuss project",
"attendees": "john.doe@example.com,team@company.com",
"start": "2023-01-01T10:00:00.000Z",
"end": "2023-01-01T11:00:00.000Z",
"leadId": "123",
"leadAddressId": 789,
"formattedLeadAddress": "123 Main St, Downtown, NY 10001",
"leadName": "John Doe",
"leadDetails": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"businessName": "Acme Corp",
"address": "123 Main St, Downtown, NY 10001"
},
"summary": "Discussed project requirements and timeline",
"status": "scheduled",
"createdAt": "2023-01-01T00:00:00.000Z",
"updatedAt": "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"
}
}