Retrieves information about the application instance, modules, and image version details.
{- "status": 0,
- "success": true,
- "data": {
- "app": {
- "version": "string",
- "instance_id": "string",
- "vulnerable": "string",
- "last_version": "string",
- "message": "string"
}, - "modules": [
- null
], - "image": {
- "version": [ ],
- "vulnerable": "string",
- "last_version": "string",
- "message": "string"
}
}
}Retrieves information about the storage space, thinning status, and available screenshots.
{- "status": 0,
- "success": true,
- "data": {
- "space": {
- "left": 0,
- "used": 0,
- "total": "string"
}, - "threshold": "string",
- "need_thinning": true,
- "rotation_supported": true,
- "screenshots_available": 0,
- "thinning": {
- "now": true,
- "last": "string",
- "status": null,
- "requested_at": null,
- "finished_at": null
}
}
}Queues the screenshot thinning. The request is accepted, not started: follow thinning.status of GET /storage. Nothing is queued while a thinning is already queued or running.
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Retrieves the list of available report formats and their corresponding MIME types.
{- "status": 0,
- "success": true,
- "data": {
- "types": {
- "csv": "text/csv",
- "xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
- "pdf": "application/pdf",
- "xls": "application/vnd.ms-excel",
- "ods": "application/vnd.oasis.opendocument.spreadsheet",
- "html": "text/html"
}
}
}Uploads the file from the attachment field (multipart/form-data) on behalf of the current user and
returns its record. The file stays unattached (status is 0) until the returned id is passed in
attachmentsRelation when a task or a task comment is created or edited. The maximum file size is
set in the server configuration.
Any authenticated user may upload files.
| attachment required | string <binary> <application/octet-stream> Maximum file size: 2048 kilobytes. |
{- "status": 0,
- "success": true,
- "data": {
- "id": "string",
- "attachmentable_id": 0,
- "attachmentable_type": "string",
- "original_name": "string",
- "mime_type": "string",
- "extension": "string",
- "size": 0,
- "hash": "string",
- "project_id": 0,
- "user_id": 0,
- "status": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Streams the attachment file as a download (Content-Disposition: attachment) with the MIME type of the
attachment. Needs no token: access is granted by the signature of the link issued by
GET /attachment/{attachment}/temporary-url. A missing, tampered or expired signature gives 403.
Only verified attachments (status is 2) with an existing file can be downloaded, otherwise 404.
| attachment required | string <uuid> The attachment ID |
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Returns a link for downloading the attachment without a token. seconds sets the lifetime of the link
(3600 by default, 7 days at most). Only verified attachments (status is 2) are available, otherwise 404.
With the local disk the link is a path relative to the host (/api/tmp-attachment-link/{id}?expires=...&signature=...),
with S3 it is an absolute presigned URL.
Allowed to the users who can view the project of the attachment. The body of the response is the bare URL string, not the JSON envelope.
| attachment required | string <uuid> The attachment ID |
| seconds | integer [ 1 .. 604800 ] |
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Exists only for compatibility with old Cattr client
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
}Issues key for desktop auth
data.access_token is a desktop key (not a bearer token) that is bound to the IP address of the
request and expires at data.expires_in. Exchange it with PUT /auth/desktop-key.
frontend_uri is the configured address of the web application (may be null).
{- "status": 0,
- "success": true,
- "data": {
- "access_token": "string",
- "token_type": "string",
- "expires_in": "string",
- "user": {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
}, - "frontend_uri": "string"
}Exchange desktop key to JWT
Send the key from GET /auth/desktop-key as Authorization: desktop <key> from the same IP address.
Returns a bearer token of the key's user. The key is single-use: it is consumed by the exchange, a repeated
exchange answers 401.
{- "status": 0,
- "success": true,
- "data": {
- "access_token": "string",
- "token_type": "string",
- "expires_in": "string",
- "user": {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
}
}Get user Token
data.user is the authenticated user, data.expires_in is null.
After failed attempts a reCAPTCHA token (recaptcha) may be required, see the 429 response.
| email required | string |
| password required | string |
| recaptcha | string or null |
{- "email": "string",
- "password": "string",
- "recaptcha": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "access_token": "string",
- "token_type": "string",
- "expires_in": "string",
- "user": {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
}
}Returns all company settings.
Modules can add their own keys to the settings object.
{- "status": 0,
- "success": true,
- "data": {
- "timezone": "string",
- "language": "string",
- "work_time": 0,
- "color": [
- null
], - "internal_priorities": [
- {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string"
}
], - "heartbeat_period": 0,
- "auto_thinning": true,
- "screenshots_state": 0,
- "env_screenshots_state": 0,
- "default_priority_id": 0
}
}Updates the specified company settings.
| timezone | string |
| work_time | integer |
| auto_thinning | boolean |
| screenshots_state | integer (ScreenshotsState) Enum: -1 0 1 2 |
| language | string |
| default_priority_id | integer |
{- "timezone": "string",
- "work_time": 0,
- "auto_thinning": true,
- "screenshots_state": -1,
- "language": "string",
- "default_priority_id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Retrieve dashboard data based on provided parameters.
Without users all users are included, without projects all projects.
data is keyed by user ID; each value lists the time intervals of that user in the period.
| users | Array of strings or null |
| projects | Array of strings or null |
| start_at required | string <date-time> |
| end_at required | string <date-time> |
| user_timezone required | string |
DashboardSortBy (string) or null | |
SortDirection (string) or null |
{- "users": [
- "string"
], - "projects": [
- "string"
], - "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z",
- "user_timezone": "string",
- "sort_column": "user",
- "sort_direction": "asc"
}{- "status": 0,
- "success": true,
- "data": {
- "property1": [
- {
- "start_at": "string",
- "activity_fill": 0,
- "mouse_fill": 0,
- "keyboard_fill": 0,
- "end_at": "string",
- "is_manual": 0,
- "user_email": "string",
- "id": 0,
- "project_id": 0,
- "project_name": "string",
- "task_id": 0,
- "task_name": "string",
- "user_id": 0,
- "full_name": "string",
- "duration": 0,
- "from_midnight": 0,
- "durationByDay": {
- "property1": 0,
- "property2": 0
}, - "durationAtSelectedPeriod": 0
}
], - "property2": [
- {
- "start_at": "string",
- "activity_fill": 0,
- "mouse_fill": 0,
- "keyboard_fill": 0,
- "end_at": "string",
- "is_manual": 0,
- "user_email": "string",
- "id": 0,
- "project_id": 0,
- "project_name": "string",
- "task_id": 0,
- "task_name": "string",
- "user_id": 0,
- "full_name": "string",
- "duration": 0,
- "from_midnight": 0,
- "durationByDay": {
- "property1": 0,
- "property2": 0
}, - "durationAtSelectedPeriod": 0
}
]
}
}Generate and download a dashboard report
Any authenticated user may call it; the data is limited by the role's scope.
The file format is chosen by the Accept header of the request: text/csv (csv), application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (xlsx), application/pdf (pdf), application/vnd.ms-excel (xls), application/vnd.oasis.opendocument.spreadsheet (ods), text/html (html). Any other value gives 422.
| users | Array of strings or null |
| projects | Array of strings or null |
| start_at required | string <date-time> |
| end_at required | string <date-time> |
| user_timezone required | string |
DashboardSortBy (string) or null | |
SortDirection (string) or null |
{- "users": [
- "string"
], - "projects": [
- "string"
], - "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z",
- "user_timezone": "string",
- "sort_column": "user",
- "sort_direction": "asc"
}{- "status": 0,
- "success": true,
- "data": {
- "url": "string"
}
}Saves the image from the screenshot field (multipart/form-data) as the screenshot of an existing time
interval. The image is stored as JPEG and its thumbnail is generated in the background.
Allowed to the users who may create the interval: administrators, the interval owner (with the user or manager role in the project, or assigned to the task) and managers for the intervals of other users.
Responds with 409 if the interval already has a screenshot or if screenshots are not allowed for it: they are disabled for the project of the interval, or optional for the project and not required for the user.
| interval required | integer |
| screenshot required | string <binary> <application/octet-stream> |
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Stream the screenshot of an interval. Not authenticated: access is granted by the
temporary signature (10 min) of the URL from screenshot_url or screenshot-urls.
Used only with the local disk; on S3 the URLs point to the bucket directly.
| interval required | integer |
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Get list of Time Intervals
Required permission (any of): time_intervals_list, time_intervals_full_access
| limit | integer |
| offset | integer |
Array of items [ 1 .. 2 ] items | |
| with | object |
| withCount | object |
| withSum | Array of strings[ items ] |
object | |
| where | Array of strings |
| project_id | string |
{- "limit": 0,
- "offset": 0,
- "orderBy": [
- "string",
- "string"
], - "with": { },
- "withCount": { },
- "withSum": [
- [
- "string"
]
], - "search": {
- "query": "string",
- "fields": [
- "string"
]
}, - "where": [
- "string"
], - "project_id": "string"
}{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "task_id": 0,
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "is_manual": true,
- "activity_fill": 0,
- "mouse_fill": 0,
- "keyboard_fill": 0,
- "location": [
- null
], - "screenshot_id": "string"
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}since 1.0.0
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "total": 0
}
}Create Time Interval
The interval is created together with its screenshot: if the screenshot cannot be stored, nothing is created and the request fails with a server error, so it can be retried as is. A failure to queue the follow-up jobs (thumbnail, apps) after the commit is reported but does not fail the request: the interval is already persisted and is returned.
Required permission (any of): time_intervals_create, time_intervals_full_access
| task_id required | integer |
| user_id required | integer |
| start_at required | string <date-time> |
| end_at required | string <date-time> |
| activity_fill | integer or null [ 0 .. 100 ] |
| mouse_fill | integer or null [ 0 .. 100 ] |
| keyboard_fill | integer or null [ 0 .. 100 ] |
| is_manual | boolean |
| location | Array of strings |
| screenshot | string <binary> <application/octet-stream> |
{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "task_id": 0,
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "is_manual": true,
- "activity_fill": 0,
- "mouse_fill": 0,
- "keyboard_fill": 0,
- "location": [
- null
], - "screenshot_id": "string"
}
}Multiple Edit TimeInterval to assign tasks to them
required | Array of objects non-empty |
{- "intervals": [
- {
- "id": 0,
- "task_id": 0
}
]
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Show Time Interval
Required permission (any of): time_intervals_show, time_intervals_full_access
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "task_id": 0,
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "is_manual": true,
- "activity_fill": 0,
- "mouse_fill": 0,
- "keyboard_fill": 0,
- "location": [
- null
], - "screenshot_id": "string"
}
}Destroy Time Interval
Required permission (any of): time_intervals_remove, time_intervals_full_access
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Multiple Destroy TimeInterval
Required permission (any of): time_intervals_bulk_remove, time_intervals_full_access
| intervals required | Array of integers non-empty |
{- "intervals": [
- 0
]
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}| title | string or null |
| executable required | string |
{- "title": "string",
- "executable": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "title": "string",
- "executable": "string",
- "time_interval_id": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "user_id": 0
}
}Imports the intervals recorded while the desktop application was offline. The file field
(multipart/form-data) is a ZIP archive named *.cattr, up to 12 MB, with two entries: Intervals
(MessagePack list of intervals) and EncryptedDigest (SHA-256 digest of Intervals, encrypted with the key
from GET /offline-sync/public-key).
An archive that cannot be opened or read, with a digest mismatch, without intervals or for an unknown user is
rejected with 400. Otherwise the response is 200 and reports each interval separately: an interval is added only
if it passes the same validation as POST /time-intervals/create and the current user may create it,
for the rest message explains why (a text or validation messages per field).
Any authenticated user may call it.
| file required | string <binary> <application/octet-stream> Maximum file size: 12288 kilobytes. |
{- "status": 0,
- "success": true,
- "data": [
- {
- "interval": {
- "property1": null,
- "property2": null
}, - "message": "string",
- "success": true
}
]
}Queues the screenshots recorded while the desktop application was offline for attaching to their intervals. The
file field (multipart/form-data) is a ZIP archive named *.cattr with a flat list of files named
<user_id>_<screenshot_id> (the screenshot ID is a UUID). An archive that exceeds the configured number of
files or unpacked size, contains directories or duplicate names, or unpacks to more than the unpacked size, is
rejected with 422; an archive that cannot be read, or a file with another name, with 400.
A valid archive is stored on the default disk and processed by a queue worker: the response is 202 with the
upload to poll with GET /offline-sync/uploads/{id} (a private-offline-sync.{user_id} broadcast event
offline-sync.upload reports its progress as well). Each file is attached to the interval of that user with
that screenshot_id, if the current user may create such an interval.
Any authenticated user may call it.
| file required | string <binary> <application/octet-stream> |
202The status, progress and per-screenshot results of an upload from POST /offline-sync/upload-screenshots. The
results are the files processed so far: interval is null if no suitable interval was found.
Only the user who uploaded the archive may read it, for anyone else the upload does not exist (404).
| id required | integer |
{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "status": "pending",
- "total": 0,
- "processed": 0,
- "results": [
- {
- "interval": {
- "id": 0,
- "task_id": 0,
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "user_id": 0,
- "is_manual": true,
- "activity_fill": 0,
- "mouse_fill": 0,
- "keyboard_fill": 0,
- "location": [
- null
], - "screenshot_id": "string"
}, - "user_id": 0,
- "screenshot_id": "string",
- "message": "string",
- "success": true
}
]
}
}Calculate the total time spent within the specified start and end intervals for a given user.
| start_at required | string <date-time> |
| end_at required | string <date-time> |
| user_id required | integer |
{- "status": 0,
- "success": true,
- "data": {
- "time": "string",
- "start": "string",
- "end": "string"
}
}Calculate the total time spent within the specified start and end intervals for a given user.
| start_at | string <date-time> |
| end_at | string <date-time> |
| project_id | integer |
| task_id | integer |
| user_id required | integer |
{- "status": 0,
- "success": true,
- "data": {
- "tasks": "string",
- "total": {
- "time": "string",
- "start": "string",
- "end": "string"
}
}
}Fresh temporary URLs of the interval screenshot and thumbnail (for pages open longer than the URL lifetime and for report payloads without URLs)
| interval required | integer The interval ID |
{- "status": 0,
- "success": true,
- "data": {
- "screenshot_url": "string",
- "thumbnail_url": "string",
- "expires_in": 600
}
}Stream the screenshot thumbnail of an interval, see Screenshot.
| interval required | integer |
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Get list of invitations.
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "key": "string",
- "email": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "role_id": 0
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Returns the total count of invitations
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "total": 0
}
}Creates a unique invitation token and sends an email to the users
required | Array of objects non-empty |
{- "users": [
- {
- "email": "user@example.com",
- "role_id": -1
}
]
}{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "key": "string",
- "email": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "role_id": 0
}
]
}Updates the token expiration date and sends an email to the user's email address.
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "key": "string",
- "email": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "role_id": 0
}
}Show invitation.
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "key": "string",
- "email": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "role_id": 0
}
}Destroy User
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Sends email to user with reset link
| email required | string <email> |
{- "email": "user@example.com"
}{- "message": "Link for restore password has been sent to specified email"
}Validates password reset token
| email required | string <email> |
| token required | string |
{- "email": "user@example.com",
- "token": "string"
}{- "message": "Password reset data is valid"
}Resets user password
| email required | string <email> |
| token required | string |
| password required | string |
| password_confirmation required | string |
{- "email": "user@example.com",
- "token": "string",
- "password": "string",
- "password_confirmation": "string"
}{- "access_token": "string",
- "token_type": "bearer",
- "expires_in": null,
- "user": null
}Generate a report on planned tasks and associated time for a given project
Any authenticated user may call it; the data is limited by the role's scope.
Without projects all projects are included.
reportDate is the time when the worked time of the tasks was last calculated (null if it never was).
Times are in seconds.
| projects | Array of strings or null |
{- "projects": [
- "string"
]
}{- "status": 0,
- "success": true,
- "data": {
- "reportData": [
- {
- "id": 0,
- "company_id": 0,
- "name": "string",
- "description": "string",
- "deleted_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "important": 0,
- "source": "string",
- "default_priority_id": 0,
- "group": 0,
- "screenshots_state": 0,
- "total_spent_time": 0,
- "tasks": [
- {
- "id": 0,
- "task_name": "string",
- "due_date": "string",
- "estimate": 0,
- "project_id": 0,
- "total_spent_time": 0,
- "workers": [
- {
- "id": 0,
- "user_id": 0,
- "task_id": 0,
- "duration": 0,
- "user": {
- "id": 0,
- "full_name": "string",
- "email": "string"
}
}
]
}
]
}
], - "reportDate": "string"
}
}Generate and download a report on planned time for specific projects.
Any authenticated user may call it; the data is limited by the role's scope.
The file format is chosen by the Accept header of the request: text/csv (csv), application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (xlsx), application/pdf (pdf), application/vnd.ms-excel (xls), application/vnd.oasis.opendocument.spreadsheet (ods), text/html (html). Any other value gives 422.
| projects | Array of strings or null |
{- "projects": [
- "string"
]
}{- "status": 0,
- "success": true,
- "data": {
- "url": "string"
}
}Get list of priorities.
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string"
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Returns the total count of priorities
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "total": 0
}
}Creates priority
| name required | string |
| color | string or null^#[a-f0-9]{6}$ |
{- "name": "string",
- "color": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string"
}
}Edit Priority
| id required | integer |
| name required | string |
| color | string or null^#[a-f0-9]{6}$ |
{- "id": 0,
- "name": "string",
- "color": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string"
}
}Show priority.
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string"
}
}Destroy User
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Get list of Projects
Required permission (any of): projects_list, projects_full_access
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "company_id": 0,
- "name": "string",
- "description": "string",
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "important": 0,
- "source": "string",
- "default_priority_id": 0,
- "group": 0,
- "screenshots_state": -1
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Count Projects
Required permission (any of): projects_count, projects_full_access
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "total": 0
}
}Creates a new project
| name required | string |
| description required | string |
| important | boolean |
| default_priority_id | integer |
| screenshots_state required | integer (ScreenshotsState) Enum: -1 0 1 2 |
Array of objects | |
Array of objects | |
| group | integer or null |
{- "name": "string",
- "description": "string",
- "important": true,
- "default_priority_id": 0,
- "screenshots_state": -1,
- "statuses": [
- {
- "id": 0,
- "color": "string"
}
], - "phases": [
- {
- "name": "string"
}
], - "group": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "company_id": 0,
- "name": "string",
- "description": "string",
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "important": 0,
- "source": "string",
- "default_priority_id": 0,
- "group": 0,
- "screenshots_state": -1
}
}Edit Project
Required permission (any of): projects_edit, projects_full_access
| id required | integer |
| name | string |
| description | string |
| default_priority_id | integer |
| screenshots_state | integer (ScreenshotsState) Enum: -1 0 1 2 |
Array of objects | |
Array of objects | |
| group | integer or null |
{- "id": 0,
- "name": "string",
- "description": "string",
- "default_priority_id": 0,
- "screenshots_state": -1,
- "statuses": [
- {
- "id": 0,
- "color": "string"
}
], - "phases": [
- {
- "id": 0,
- "name": "string"
}
], - "group": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "company_id": 0,
- "name": "string",
- "description": "string",
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "important": 0,
- "source": "string",
- "default_priority_id": 0,
- "group": 0,
- "screenshots_state": -1
}
}Retrieve project show along with the number of tasks in each phase.
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| id required | integer |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "company_id": 0,
- "name": "string",
- "description": "string",
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "important": 0,
- "source": "string",
- "default_priority_id": 0,
- "group": 0,
- "screenshots_state": -1
}
}Destroy Project
Required permission (any of): projects_remove, projects_full_access
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Получение данных для диаграммы Ганта по проекту
| id required | integer |
{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "company_id": 0,
- "name": "string",
- "description": "string",
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "important": 0,
- "source": "string",
- "default_priority_id": 0,
- "group": 0,
- "screenshots_state": -1
}
}Retrieve project phases along with the number of tasks in each phase.
| id required | integer |
{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "company_id": 0,
- "name": "string",
- "description": "string",
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "important": 0,
- "source": "string",
- "default_priority_id": 0,
- "group": 0,
- "screenshots_state": -1
}
}Paginated unless the X-Paginate: false header is sent; pagination is absent in that case.
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "_lft": 0,
- "_rgt": 0,
- "parent_id": 0
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Returns the number of project groups that match the optional filters.
Any authenticated user may call it.
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "total": 0
}
}| name required | string |
| parent_id | integer or null |
{- "name": "string",
- "parent_id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "_lft": 0,
- "_rgt": 0,
- "parent_id": 0
}
}| id required | integer |
| name | string |
| parent_id | integer or null |
{- "id": 0,
- "name": "string",
- "parent_id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "_lft": 0,
- "_rgt": 0,
- "parent_id": 0
}
}| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| id required | integer |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "_lft": 0,
- "_rgt": 0,
- "parent_id": 0
}
}| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Get list of project members
| project_id required | integer |
{- "project_id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "users": [
- {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
]
}
}Edit roles of multiple project members
| project_id required | integer |
required | Array of objects unique |
{- "project_id": 0,
- "user_roles": [
- {
- "user_id": 0,
- "role_id": -1
}
]
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Retrieve detailed project report data including user tasks and time intervals.
Any authenticated user may call it; the data is limited by the role's scope.
Without users all users are included, without projects all projects.
Times are in seconds. items of a day are the intervals grouped by hour, each hour is reduced to a few
sample intervals.
| users | Array of strings or null |
| projects | Array of strings or null |
| start_at required | string <date-time> |
| end_at required | string <date-time> |
{- "users": [
- "string"
], - "projects": [
- "string"
], - "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "time": 0,
- "users": [
- {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "time": 0,
- "tasks": [
- {
- "id": 0,
- "task_name": "string",
- "time": 0,
- "intervals": [
- {
- "date": "string",
- "time": 0,
- "items": [
- [ ]
]
}
]
}
]
}
]
}
]
}Downloads a project report in the specified file format.
The file format is chosen by the Accept header of the request: text/csv (csv), application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (xlsx), application/pdf (pdf), application/vnd.ms-excel (xls), application/vnd.oasis.opendocument.spreadsheet (ods), text/html (html). Any other value gives 422.
| users | Array of strings or null |
| projects | Array of strings or null |
| start_at required | string <date-time> |
| end_at required | string <date-time> |
{- "users": [
- "string"
], - "projects": [
- "string"
], - "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}{- "status": 0,
- "success": true,
- "data": {
- "url": "string"
}
}| key required | string |
| email required | string <email> |
| full_name required | string |
| password required | string >= 6 characters |
{- "email": "user@example.com",
- "full_name": "string",
- "password": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "user_id": 0
}
}Get list of statuses.
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "name": "string",
- "active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string",
- "order": 0
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Get the count of invitations
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "total": 0
}
}Creates status
| name required | string |
| order | integer |
| active | boolean |
| color | string or null^#[a-f0-9]{6}$ |
{- "name": "string",
- "order": 0,
- "active": true,
- "color": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string",
- "order": 0
}
}Edit Status
| id required | integer |
| name required | string |
| order | integer |
| active | boolean |
| color | string or null^#[a-f0-9]{6}$ |
{- "id": 0,
- "name": "string",
- "order": 0,
- "active": true,
- "color": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string",
- "order": 0
}
}Show status.
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "name": "string",
- "active": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "color": "string",
- "order": 0
}
}Destroy User
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Get list of Tasks
Required permission (any of): tasks_list, tasks_full_access
| limit | integer |
| offset | integer |
Array of items [ 1 .. 2 ] items | |
| with | object |
| withCount | object |
| withSum | Array of strings[ items ] |
object | |
| where | Array of strings |
| project_id | Array of strings |
{- "limit": 0,
- "offset": 0,
- "orderBy": [
- "string",
- "string"
], - "with": { },
- "withCount": { },
- "withSum": [
- [
- "string"
]
], - "search": {
- "query": "string",
- "fields": [
- "string"
]
}, - "where": [
- "string"
], - "project_id": [
- "string"
]
}{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "project_id": 0,
- "project_phase_id": 0,
- "task_name": "string",
- "description": "string",
- "assigned_by": 0,
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "priority_id": 0,
- "important": 0,
- "status_id": 0,
- "relative_position": 0,
- "estimate": 0,
- "start_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Count Tasks
Required permission (any of): tasks_count, tasks_full_access
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| project_id[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "total": 0
}
}Create Task
Required permission (any of): tasks_create, tasks_full_access
| project_id required | integer |
| project_phase_id | integer or null |
| task_name required | string |
| description | string |
| users | Array of integers |
| active | boolean |
| important | boolean |
| priority_id | integer or null |
| status_id | integer |
| relative_position | integer |
| start_date | string or null <date-time> |
| due_date | string or null <date-time> |
| estimate | integer or null |
{- "project_id": 0,
- "project_phase_id": 0,
- "task_name": "string",
- "description": "string",
- "users": [
- 0
], - "active": true,
- "important": true,
- "priority_id": 0,
- "status_id": 0,
- "relative_position": 0,
- "start_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "estimate": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "project_id": 0,
- "project_phase_id": 0,
- "task_name": "string",
- "description": "string",
- "assigned_by": 0,
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "priority_id": 0,
- "important": 0,
- "status_id": 0,
- "relative_position": 0,
- "estimate": 0,
- "start_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z"
}
}Edit Task
Required permission (any of): tasks_edit, tasks_full_access
| id required | integer |
| project_id | integer |
| project_phase_id | integer or null |
| task_name | string |
| description | string |
| users | Array of integers |
| active | boolean |
| important | boolean |
| priority_id | integer or null |
| status_id | integer |
| relative_position | number |
| start_date | string or null <date-time> |
| due_date | string or null <date-time> |
| estimate | integer or null |
{- "id": 0,
- "project_id": 0,
- "project_phase_id": 0,
- "task_name": "string",
- "description": "string",
- "users": [
- 0
], - "active": true,
- "important": true,
- "priority_id": 0,
- "status_id": 0,
- "relative_position": 0,
- "start_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "estimate": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "project_id": 0,
- "project_phase_id": 0,
- "task_name": "string",
- "description": "string",
- "assigned_by": 0,
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "priority_id": 0,
- "important": 0,
- "status_id": 0,
- "relative_position": 0,
- "estimate": 0,
- "start_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z"
}
}Show Task
Required permission (any of): tasks_show, tasks_full_access
| limit | integer |
| offset | integer |
Array of items [ 1 .. 2 ] items | |
| with | object |
| withCount | object |
| withSum | Array of strings[ items ] |
object | |
| where | Array of strings |
| id required | integer |
{- "limit": 0,
- "offset": 0,
- "orderBy": [
- "string",
- "string"
], - "with": { },
- "withCount": { },
- "withSum": [
- [
- "string"
]
], - "search": {
- "query": "string",
- "fields": [
- "string"
]
}, - "where": [
- "string"
], - "id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "project_id": 0,
- "project_phase_id": 0,
- "task_name": "string",
- "description": "string",
- "assigned_by": 0,
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "priority_id": 0,
- "important": 0,
- "status_id": 0,
- "relative_position": 0,
- "estimate": 0,
- "start_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z"
}
}Destroy Task
Required permission (any of): tasks_remove, tasks_full_access
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Get calendar report data
| project_id | integer or null |
| start_at required | string <date-time> |
| end_at required | string <date-time> |
{- "project_id": 0,
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}{- "status": 0,
- "success": true,
- "data": {
- "tasks": "string",
- "tasks_by_day": [
- null
], - "tasks_by_week": [
- null
]
}
}Creates a relation between two tasks, ensuring they belong to the same project and no cyclic dependencies exist.
Required permission (any of): tasks_create_relation, tasks_full_access
| task_id required | integer |
| related_task_id required | integer |
| relation_type required | string (TaskRelationType) Enum: "follows" "precedes" |
{- "task_id": 0,
- "related_task_id": 0,
- "relation_type": "follows"
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "project_id": 0,
- "project_phase_id": 0,
- "task_name": "string",
- "description": "string",
- "assigned_by": 0,
- "url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "priority_id": 0,
- "important": 0,
- "status_id": 0,
- "relative_position": 0,
- "estimate": 0,
- "start_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z"
}
}Removes a relation between two tasks.
Required permission (any of): tasks_destroy_relation, tasks_full_access
| parent_id required | integer |
| child_id required | integer |
{- "parent_id": 0,
- "child_id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Downloads all projects and tasks associated with a specific user.
Any authenticated user may call it; users without access to other users' data can only download their own.
The response is not JSON: it is the file ProjectsAndTasks.cattr, a MessagePack document with the id
of the user and the projects and tasks assigned to them.
| user required | integer The user ID |
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Returns a page (up to 30 records) of the activity of the task task_id: the comments (type is comments),
the history of changes (history) or both merged into one stream sorted by creation time (all); the
pagination describes that stream. Comments come with their attachments.
Allowed to the users who can view the task.
| limit | integer |
| offset | integer |
Array of items [ 1 .. 2 ] items | |
| with | object |
| withCount | object |
| withSum | Array of strings[ items ] |
object | |
| where | Array of strings |
| page required | integer |
| task_id required | integer |
| type required | string (ActivityType) Enum: "all" "comments" "history" |
{- "limit": 0,
- "offset": 0,
- "orderBy": [
- "string",
- "string"
], - "with": { },
- "withCount": { },
- "withSum": [
- [
- "string"
]
], - "search": {
- "query": "string",
- "fields": [
- "string"
]
}, - "where": [
- "string"
], - "page": 0,
- "task_id": 0,
- "type": "all"
}{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "task_id": 0,
- "user_id": 0,
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Get list of Task Comments
Required permission (any of): task_comment_list, task_comment_full_access
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "task_id": 0,
- "user_id": 0,
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Create a new task comment
Required permission (any of): task_comment_create, task_comment_full_access
| task_id required | integer |
| content | string |
{- "task_id": 0,
- "content": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "task_id": 0,
- "user_id": 0,
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z"
}
}Edit an existing task comment
| id required | integer |
| content required | string |
{- "id": 0,
- "content": "string"
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "task_id": 0,
- "user_id": 0,
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z"
}
}since 1.0.0
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "task_id": 0,
- "user_id": 0,
- "content": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z"
}
}since 4.0.0
| id required | string |
{- "id": "string"
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Retrieves the time report for specified users within a given time range.
Without users all users are included. Times are in seconds.
| users | Array of strings or null |
| start_at required | string <date-time> |
| end_at required | string <date-time> |
{- "users": [
- "string"
], - "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}{- "status": 0,
- "success": true,
- "data": [
- {
- "time": 0,
- "user": {
- "id": 0,
- "email": "string",
- "full_name": "string"
}, - "tasks": [
- {
- "time": 0,
- "task_id": 0,
- "task_name": "string",
- "project_id": 0,
- "project_name": "string"
}
]
}
]
}Returns what a universal report with the given base can include: the available fields (grouped by
section), the selectable dataObjects (id and name, plus extra user attributes for the user base) and the
available charts.
Administrators can select any data object, other users only their own projects and tasks. For the user
base dataObjects is null unless the user is an administrator.
| base required | string (UniversalReportBase) Enum: "project" "user" "task" |
{- "status": 0,
- "success": true,
- "data": {
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "dataObjects": [
- {
- "property1": null,
- "property2": null
}
], - "charts": [
- "string"
]
}
}Returns the saved universal reports (id, name and type only) grouped by type.
Administrators get all company reports and their own personal reports. Other users get only the reports whose data objects (projects or tasks) they have access to; reports based on users are not listed for them.
{- "status": 0,
- "success": true,
- "data": {
- "company": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
], - "personal": [
- {
- "id": 0,
- "name": "string",
- "type": "string"
}
]
}
}Saves the report settings (base, selected data objects, fields and charts) as a company report (type is
company, administrators only) or as a personal report of the current user.
Any authenticated user may call it. Saving a company report without administrator rights is rejected with 403.
{- "status": 0,
- "success": true,
- "data": {
- "message": "string",
- "id": 0
}
}Returns the saved settings of the report with the given id.
Any authenticated user may call it.
| id required | integer |
{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "user_id": 0,
- "name": "string",
- "type": "string",
- "base": "string",
- "data_objects": [
- 0
], - "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "charts": [
- "string"
], - "created_at": "string",
- "updated_at": "string"
}
}Replaces the settings of the report with the given id. The body of the response is empty.
Any authenticated user may call it. Saving a company report (type is company) without administrator
rights is rejected with 403.
{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Builds the report with the given id for the period from start_at to end_at, both interpreted in the
company timezone.
Any authenticated user may call it. reportData is keyed by the ID of the data object (project, user or
task, depending on the base of the report), the shape of its values depends on the base and the selected fields.
reportCharts is keyed by the selected chart (an empty list if none is selected), each chart has datasets
with the label, colors and data by date of the project, user or task.
| id required | integer |
| start_at | string or null <date-time> |
| end_at | string or null <date-time> |
{- "id": 0,
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}{- "status": 0,
- "success": true,
- "data": {
- "reportData": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "reportName": "string",
- "reportCharts": {
- "property1": {
- "datasets": {
- "property1": null,
- "property2": null
}
}, - "property2": {
- "datasets": {
- "property1": null,
- "property2": null
}
}
}, - "periodDates": [
- "string"
]
}
}Deletes the report with the given id. The response has no body.
Any authenticated user may call it.
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Generates the report with the given id as a file and returns its URL.
Any authenticated user may call it.
The file format is chosen by the Accept header of the request: text/csv (csv), application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (xlsx), application/pdf (pdf), application/vnd.ms-excel (xls), application/vnd.oasis.opendocument.spreadsheet (ods), text/html (html). Any other value gives 422.
| id required | integer |
| start_at | string or null <date-time> |
| end_at | string or null <date-time> |
{- "id": 0,
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}{- "status": 0,
- "success": true,
- "data": {
- "url": "string"
}
}Get list of Users with any params
Required permission (any of): users_list, users_full_access
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": [
- {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
], - "pagination": {
- "count": 0,
- "total": 0,
- "perPage": 0,
- "currentPage": 0,
- "totalPages": 0,
- "links": {
- "property1": "string",
- "property2": "string"
}
}
}Count Users
Required permission (any of): users_count, users_full_access
| limit | integer |
| offset | integer |
| orderBy[0] | string |
| orderBy[1] | string^(asc|desc)$ |
| with[] | Array of strings |
| withCount[] | Array of strings |
| search[query] | string or null |
| search[fields][] | Array of strings |
| where[] | Array of strings |
| withSum | Array of strings[ items ] |
{- "status": 0,
- "success": true,
- "data": {
- "total": 0
}
}Create User Entity
Required permission (any of): users_create, users_full_access
| full_name required | string |
| email required | string <email> |
| user_language required | string |
| password | string >= 6 characters |
| important | boolean |
| active required | boolean |
| screenshots_state required | integer (ScreenshotsState) Enum: -1 0 1 2 |
| manual_time | boolean |
| screenshots_interval required | integer [ 1 .. 15 ] |
| computer_time_popup required | integer >= 1 |
| timezone required | string |
| role_id required | integer (Role) Enum: -1 0 1 2 3 |
| type required | string |
| web_and_app_monitoring | boolean |
{- "full_name": "string",
- "email": "user@example.com",
- "user_language": "string",
- "password": "string",
- "important": true,
- "active": true,
- "screenshots_state": -1,
- "manual_time": true,
- "screenshots_interval": 1,
- "computer_time_popup": 1,
- "timezone": "string",
- "role_id": -1,
- "type": "string",
- "web_and_app_monitoring": true
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
}Edit User
Required permission (any of): users_edit, users_full_access
| id required | integer |
| full_name | string |
string <email> | |
| user_language | string |
| password | string >= 6 characters |
| important | boolean |
| active | boolean |
| screenshots_state | integer (ScreenshotsState) Enum: -1 0 1 2 |
| manual_time | boolean |
| screenshots_interval | integer [ 1 .. 15 ] |
| computer_time_popup | integer >= 1 |
| timezone | string |
| role_id | integer (Role) Enum: -1 0 1 2 3 |
Array of objects | |
Array of objects | |
| type | string |
| web_and_app_monitoring | boolean |
{- "id": 0,
- "full_name": "string",
- "email": "user@example.com",
- "user_language": "string",
- "password": "string",
- "important": true,
- "active": true,
- "screenshots_state": -1,
- "manual_time": true,
- "screenshots_interval": 1,
- "computer_time_popup": 1,
- "timezone": "string",
- "role_id": -1,
- "project_roles": [
- {
- "role_id": -1,
- "projects_ids": [
- [
- "string"
]
]
}
], - "projects_roles": [
- {
- "project_ids": [
- {
- "id": 0
}
]
}
], - "type": "string",
- "web_and_app_monitoring": true
}{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
}Retrieves detailed information about a specific user.
Required permission (any of): users_show, users_full_access
| id required | integer |
{- "status": 0,
- "success": true,
- "data": {
- "id": 0,
- "full_name": "string",
- "email": "string",
- "url": "string",
- "company_id": 0,
- "avatar": "string",
- "screenshots_state": -1,
- "manual_time": 0,
- "computer_time_popup": 0,
- "blur_screenshots": true,
- "web_and_app_monitoring": true,
- "screenshots_interval": 0,
- "active": 0,
- "deleted_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "timezone": "string",
- "important": 0,
- "change_password": 0,
- "role_id": 0,
- "user_language": "string",
- "type": "string",
- "invitation_sent": true,
- "nonce": 0,
- "client_installed": 0,
- "permanent_screenshots": 0,
- "last_activity": "2019-08-24T14:15:22Z",
- "screenshots_state_locked": true,
- "efficiency": 0,
- "online": true,
- "can_view_team_tab": true,
- "can_create_task": true
}
}Destroy User
Required permission (any of): users_remove, users_full_access
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}Sends an invitation to a user by generating a password, marking the invitation as sent, and dispatching relevant events.
Required permission: users_invite
| id required | integer |
{- "id": 0
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}{- "status": 0,
- "success": false,
- "error": {
- "code": "string",
- "message": "string",
- "fields": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "info": { },
- "trace_id": "string"
}
}