solarOS Organization API

Organization API

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.

/api/v1/sales-appointments

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

sales_appointments:writeIdempotency-Key required

Parameters

No path or query parameters.

Request body

objectrequired
FieldTypeDescription
appointmentTypeIdrequiredstringOne of the organization's Appointment Types.
formatrequiredIN_HOME | VIDEO | PHONEOne of the type's formats.
startsAtrequiredstringISO 8601 date-time with Z or a UTC offset.
hostIdstringThe Team Member to host it. Leave out to route it.
opportunityIdstringOptional unless marked required.
leadIdstringA Lead, converted to an Opportunity before booking.
answersobjectAnswers to the type's booking questions, by question key.
notesForHoststringOptional unless marked required.
createsalesappointmentRequest
{
  "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

201

Booked Sales Appointment envelope

#/components/schemas/SalesAppointmentEnvelope

400

Validation error or a missing Idempotency-Key

#/components/schemas/OrgApiError

401

Missing or invalid organization API key

#/components/schemas/OrgApiError

402

Organization billing access or an endpoint-specific business quota denied the request

#/components/schemas/OrgApiError

403

Sales scheduling is not turned on for this organization

#/components/schemas/OrgApiError

404

Appointment type, Opportunity, Lead or host not found

#/components/schemas/OrgApiError

409

CONFLICT: the host was just booked at that time, or an idempotency conflict

#/components/schemas/OrgApiError

422

VALIDATION_FAILED: outside the host’s hours, too soon, too far ahead, or nobody free to route to

#/components/schemas/OrgApiError

429

Rate limit exceeded

#/components/schemas/OrgApiError

Errors

400 Validation error or a missing Idempotency-Key401 Missing or invalid organization API key402 Organization billing access or an endpoint-specific business quota denied the request403 Sales scheduling is not turned on for this organization404 Appointment type, Opportunity, Lead or host not found409 CONFLICT: the host was just booked at that time, or an idempotency conflict422 VALIDATION_FAILED: outside the host’s hours, too soon, too far ahead, or nobody free to route to429 Rate limit exceeded

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}}'