Book a Sales Appointment
Books a Sales Appointment for an Opportunity (opportunityId) or a Lead (leadId), which is converted to an Opportunity first as it is in solarOS. Leave hostId out to route it by the organization's Routing Rules; the time must be open for the host. The API never emails or texts the customer. Requires Idempotency-Key and sales_appointments:write.
Books a Sales Appointment for an Opportunity (opportunityId) or a Lead (leadId), which is converted to an Opportunity first as it is in solarOS. Leave hostId out to route it by the organization's Routing Rules; the time must be open for the host. The API never emails or texts the customer. Requires Idempotency-Key and sales_appointments:write.
Book a Sales Appointment. Use an organization API key with sales_appointments:write. Check the response envelope and meta.requestId before triggering dependent workflow steps.
Required scopes
Parameters
No path or query parameters.
Request body
| Field | Type | Description |
|---|---|---|
| appointmentTypeIdrequired | string | One of the organization's Appointment Types. |
| formatrequired | IN_HOME | VIDEO | PHONE | One of the type's formats. |
| startsAtrequired | string | ISO 8601 date-time with Z or a UTC offset. |
| hostId | string | The Team Member to host it. Leave out to route it. |
| opportunityId | string | Optional unless marked required. |
| leadId | string | A Lead, converted to an Opportunity before booking. |
| answers | object | Answers to the type's booking questions, by question key. |
| notesForHost | string | Optional unless marked required. |
{
"appointmentTypeId": "appointment_type_123",
"format": "IN_HOME",
"startsAt": "2026-11-04T10:00:00-08:00",
"opportunityId": "opportunity_123",
"answers": {
"average_electric_bill": 310,
"roof_age": 12
}
}Responses
Booked Sales Appointment envelope
#/components/schemas/SalesAppointmentEnvelope
Validation error or a missing Idempotency-Key
#/components/schemas/OrgApiError
Missing or invalid organization API key
#/components/schemas/OrgApiError
Organization billing access or an endpoint-specific business quota denied the request
#/components/schemas/OrgApiError
Sales scheduling is not turned on for this organization
#/components/schemas/OrgApiError
Appointment type, Opportunity, Lead or host not found
#/components/schemas/OrgApiError
CONFLICT: the host was just booked at that time, or an idempotency conflict
#/components/schemas/OrgApiError
VALIDATION_FAILED: outside the host’s hours, too soon, too far ahead, or nobody free to route to
#/components/schemas/OrgApiError
Rate limit exceeded
#/components/schemas/OrgApiError
Errors
Static examples
curl -X POST "$SOLAROS_BASE_URL/api/v1/sales-appointments" \
-H "Authorization: Bearer $SOLAROS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SOLAROS_IDEMPOTENCY_KEY" \
--data '{"appointmentTypeId":"appointment_type_123","format":"IN_HOME","startsAt":"2026-11-04T10:00:00-08:00","opportunityId":"opportunity_123","answers":{"average_electric_bill":310,"roof_age":12}}'