List organization activities
/v2/organizations/{organization_id}/activitiesReturns a collection of activities (10-minute time blocks) for the given organization.
Results can be filtered by user, task, project, and time range (time_slot[start], time_slot[stop]).
For aggregated daily data, use the daily_activities endpoint instead.
Note: Data may be delayed up to 20 minutes. Note: Date range limit is 7 days. Earliest date is 6 months ago.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
organization_idrequired | path | integer (int32) | |
page_start_id | query | integer (int32) | The page start ID. |
page_limit | query | integer (int32) | The default page size |
time_slot[start]required | query | string (date-time) | Start time (ISO 8601) |
time_slot[stop]required | query | string (date-time) | Stop time (ISO 8601, Exclusive) |
user_ids | query | array integer[] | List of user IDs |
task_ids | query | array integer[] | List of task IDs |
global_todo_ids | query | array integer[] | List of global todo IDs |
project_ids | query | array integer[] | List of project IDs |
include | query | array string[] | Specify related data to side load. Possible values usersprojectstasks |
time_zone | query | string | The time zone name for the activity |
Responses
200A list of activities
- activitiesarrayarray<object>itemsobject
Activity model
- idinteger required
Activity ID
- datestring required
Organization date
- created_atstring required
When the record was created
- updated_atstring required
When the record was last updated
- time_slotstring required
Time slot
- starts_atstring required
Date and time tracking was started within time slot
- user_idinteger required
User ID
- project_idinteger required
Project ID
- task_idinteger required
Task ID
- keyboardinteger required
The amount of time the keyboard was active within the time worked in seconds
- mouseinteger required
The amount of time the mouse was active within the time worked in seconds
- overallinteger required
The amount of time the keyboard or mouse was active within the time worked in seconds
- trackedinteger required
Total time worked in seconds
- input_trackedinteger required
Total time worked in seconds with input tracking enabled (keyboard, mouse)
- tracks_inputboolean required
Whether the source can and had input tracking enabled activities (keyboard, mouse)
- location_typestring required
Remote vs in-office status: unknown, remote, or on_site
- billableboolean required
Whether the time is billable
- paidboolean required
Whether the time has been marked paid
- client_invoicedboolean required
Whether the time has been invoiced to a client
- team_invoicedboolean required
Whether the time has been invoiced for a team member
- immutableboolean required
Whether the time is locked
- timesheet_idinteger
The timesheet for this activity
- timesheet_lockedboolean
Whether the timesheet is locking this activity
- time_typestring required
The type of activity this is
- clientstring required
Which client the activity originated from
{
"activities": [
{
"id": 0,
"date": "2024-01-15",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"time_slot": "2024-01-15T10:30:00Z",
"starts_at": "2024-01-15T10:30:00Z",
"user_id": 0,
"project_id": 0,
"task_id": 0,
"keyboard": 0,
"mouse": 0,
"overall": 0,
"tracked": 0,
"input_tracked": 0,
"tracks_input": false,
"location_type": "string",
"billable": false,
"paid": false,
"client_invoiced": false,
"team_invoiced": false,
"immutable": false,
"timesheet_id": 0,
"timesheet_locked": false,
"time_type": "string",
"client": "string"
}
]
}400Invalid parameters
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}401Unauthorized
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}403API access is only for organizations on an active plan
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}404Could not find record
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}429Rate limit exceeded
Hubstaff_Public_V2_Entities_Error model
- codestring required
Legacy string error code for backward compatibility
- error_codeinteger
Numeric error code for i18n/programmatic handling. Ranges: 10000-10999 (Auth), 11000-11999 (Validation), 12000-12999 (Resource), 13000-13999 (Rate Limit), 14000-14999 (Time Entry/Activity), 15000-15999 (System). See GET /v2/error_codes for full reference.
- errorstring required
Human-readable error message
- detailsarray
Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
array<string>Per-attribute validation errors: [{attribute, error}]. Present on validation failures.
itemsstring
{
"code": "string",
"error_code": 0,
"error": "string",
"details": [
"string"
]
}