SmileCloudDocs

Availability

The availability endpoint returns free appointment slots for a branch over a date range, optionally narrowed to a single provider. Use it to answer "when is the next opening?" or to render a booking calendar. It requires the availability:read scope.

#The slot object

FieldTypeDescription
provider_idstringThe provider this slot is free for.
branch_idstringThe branch the slot is at.
startstring | nullISO 8601 earliest start of the slot.
endstring | nullISO 8601 end of the slot window.
latest_startstring | nullISO 8601 latest a visit can start and still fit.

#Find availability

GET

Returns a bounded list (no cursor) of slots in the window.

ParameterInRequiredDescription
fromqueryyesStart date, ISO YYYY-MM-DD.
toqueryyesEnd date, ISO YYYY-MM-DD.
branch_idqueryyesThe branch to search.
provider_idquerynoRestrict to one provider.
cURL
curl -G https://api.smile-app.co.il/v1/availability \
  -H "Authorization: Bearer sk_live_..." \
  --data-urlencode "from=2026-07-01" \
  --data-urlencode "to=2026-07-07" \
  --data-urlencode "branch_id=1"
sc CLI
sc availability --branch 1 --from 2026-07-01 --to 2026-07-07
json
{
  "data": [
    {
      "provider_id": "12",
      "branch_id": "1",
      "start": "2026-07-01T09:00:00+03:00",
      "end": "2026-07-01T17:00:00+03:00",
      "latest_start": "2026-07-01T16:30:00+03:00"
    }
  ]
}

from, to, and branch_id are required

Unlike most list endpoints, availability requires from, to, and branch_id. Omitting any of them returns 400 Bad Request.