Skip to main content

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.

Required scope: customers:read

Grant 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​

OK

Response Headers
    Content-Type