Get CRM Calendar
GET/api/crm/calendar
Get the activities (not cancelled) and call trips of one or more users between two dates, inclusive, in the account timezone. Activities are those owned by the users that start in the range, plus tasks without a start time due in it, ordered by time.
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:
- from (required, YYYY-MM-DD)
- to (required, YYYY-MM-DD, on or after from; at most 62 days in total)
- user_ids[] (optional, up to 50 user IDs): defaults to you. Other users need the view-all CRM activities permission (422 otherwise)
- include_busy (optional, 1): also return busy time read from the users' connected calendars
Response: from, to, activities[] (activities), trips[] (trip summaries overlapping the range) and busy_blocks[] (empty unless include_busy: anonymous busy time from the users' connected calendars, {id, user_id, connection_id, provider, starts_at, ends_at, all_day, show_as}; provideris google or microsoft andconnection_id is the calendar connection the time came from, never a title).
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.