Skip to main content

Get My Day

GET 

/api/crm/my-day

Get a sales rep's day in the account timezone: today's activities in time order (including tasks due today), open tasks that are overdue, the visit they are checked in to right now (any day), their customers due for a visit, upcoming call trips, and the day's figures.

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:

  • user_id (optional): another user's day. Needs the view-all CRM activities permission (403 otherwise); an unknown user returns 404

Fields: has_sales_rep / sales_rep = the user's active sales rep. kpis: visits_today_done and visits_today_planned (today's visits completed / in total), activities_this_week (completed visits, calls and meetings this week, Monday to Sunday), weekly_goal (from CRM settings), open_tasks, overdue_tasks. today, overdue_tasks and current_visit are activities; due_customers[] (up to 10) has customer, last_visit_at, days_since_last_visit, next_planned_visit_at and coverage (grade, next visit due date and coverage status, as Get Customer Visit Coverage). It lists only customers that are overdue or due soon: customers on track, planned, with no visit interval or set to "Do not schedule visits" are left out, so an account with no grades gets an empty list. Order: graded customers never visited first, then by due date and grade; upcoming_trips[] are trip summaries. busy_blocks[] is today's anonymous busy time from the user's 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), and calendar_status says whether a calendar is connected (connected, needs_reconnect, connections[]; on another user's day connections is always empty, so their connection ids and account emails are never shown); a busy block whose connection has status needs_reconnect may be out of date. working_day is the window free slots are planned in: start (the CRM day start time), end (18:00) and default_visit_minutes.

Activities are included when they overlap the day or range, so one that runs past midnight appears on both days. Trip stop counts include only the stops you may see.

Request​

Responses​

OK

Response Headers
    Content-Type