Suggest Free Slots
GET/api/crm/calendar/suggest-slot
Suggest up to 5 free slots of the given length in your diary, one per day at most, between the account's day start time (CRM settings) and 18:00 in the account timezone. Slots avoid your planned activities, never start in the past, and start on a quarter hour.
customers:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token with the customers scope and the crm_activities.index permission.
Query parameters:
- duration_minutes (required, 5-600)
- from (optional, YYYY-MM-DD): first day; defaults to today (an earlier date is treated as today)
- to (optional, YYYY-MM-DD, on or after from): last day; defaults to the end of the week. At most 14 days are searched
Response data: an array of {starts_at, ends_at} (ISO-8601 UTC). Empty when no slot fits.
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.