Cattr API (4.4.0)

Download OpenAPI specification:

HTTP API of Cattr, an open-source time tracker.

About

Get Application and Module Information

Retrieves information about the application instance, modules, and image version details.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Get Storage Information

Retrieves information about the storage space, thinning status, and available screenshots.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Request Storage Cleanup

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.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Get Available Report Formats

Retrieves the list of available report formats and their corresponding MIME types.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Attachment

Upload an attachment

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.

Authorizations:
bearerAuth
Request Body schema: multipart/form-data
required
attachment
required
string <binary> <application/octet-stream>

Maximum file size: 2048 kilobytes.

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Download an attachment by a temporary link

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.

path Parameters
attachment
required
string <uuid>

The attachment ID

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Get a temporary download URL of an attachment

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.

Authorizations:
bearerAuth
path Parameters
attachment
required
string <uuid>

The attachment ID

query Parameters
seconds
integer [ 1 .. 604800 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Auth

Logout

Invalidate current token

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Logout from all

Invalidate all user tokens

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Refresh Deprecated

Exists only for compatibility with old Cattr client

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Me

Get authenticated User Entity

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Issue key

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).

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    },
  • "frontend_uri": "string"
}

Key auth

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.

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Login

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.

Request Body schema: application/json
required
email
required
string
password
required
string
recaptcha
string or null

Responses

Request samples

Content type
application/json
{
  • "email": "string",
  • "password": "string",
  • "recaptcha": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

CompanySettings

Get Offline Sync Public Key

Retrieves the public key for offline synchronization.

Any authenticated user may call it.

key is null if no key is stored.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

List

Returns all company settings.

Modules can add their own keys to the settings object.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Update

Updates the specified company settings.

Authorizations:
bearerAuth
Request Body schema: application/json
timezone
string
work_time
integer
auto_thinning
boolean
screenshots_state
integer (ScreenshotsState)
Enum: -1 0 1 2
language
string
default_priority_id
integer

Responses

Request samples

Content type
application/json
{
  • "timezone": "string",
  • "work_time": 0,
  • "auto_thinning": true,
  • "screenshots_state": -1,
  • "language": "string",
  • "default_priority_id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Dashboard

Dashboard Data

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.

Authorizations:
bearerAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "users": [
    ],
  • "projects": [
    ],
  • "start_at": "2019-08-24T14:15:22Z",
  • "end_at": "2019-08-24T14:15:22Z",
  • "user_timezone": "string",
  • "sort_column": "user",
  • "sort_direction": "asc"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Download Dashboard Report

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.

Authorizations:
bearerAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "users": [
    ],
  • "projects": [
    ],
  • "start_at": "2019-08-24T14:15:22Z",
  • "end_at": "2019-08-24T14:15:22Z",
  • "user_timezone": "string",
  • "sort_column": "user",
  • "sort_direction": "asc"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Interval

Upload a screenshot of an interval

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.

Authorizations:
bearerAuth
path Parameters
interval
required
integer
Request Body schema: multipart/form-data
required
screenshot
required
string <binary> <application/octet-stream>

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Screenshot

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.

path Parameters
interval
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

List

Get list of Time Intervals

Required permission (any of): time_intervals_list, time_intervals_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
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

Responses

Request samples

Content type
application/json
{
  • "limit": 0,
  • "offset": 0,
  • "orderBy": [
    ],
  • "with": { },
  • "withCount": { },
  • "withSum": [
    ],
  • "search": {
    },
  • "where": [
    ],
  • "project_id": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Count Deprecated

since 1.0.0

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Create

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

Authorizations:
bearerAuth
Request Body schema: multipart/form-data
required
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>

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Bulk Edit

Multiple Edit TimeInterval to assign tasks to them

Authorizations:
bearerAuth
Request Body schema: application/json
required
required
Array of objects non-empty

Responses

Request samples

Content type
application/json
{
  • "intervals": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Show

Show Time Interval

Required permission (any of): time_intervals_show, time_intervals_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy

Destroy Time Interval

Required permission (any of): time_intervals_remove, time_intervals_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Bulk Destroy

Multiple Destroy TimeInterval

Required permission (any of): time_intervals_bulk_remove, time_intervals_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
intervals
required
Array of integers non-empty

Responses

Request samples

Content type
application/json
{
  • "intervals": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Adds the current user’s ID

Authorizations:
bearerAuth
Request Body schema: application/json
required
title
string or null
executable
required
string

Responses

Request samples

Content type
application/json
{
  • "title": "string",
  • "executable": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Upload offline intervals

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.

Authorizations:
bearerAuth
Request Body schema: multipart/form-data
required
file
required
string <binary> <application/octet-stream>

Maximum file size: 12288 kilobytes.

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ]
}

Upload offline screenshots

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.

Authorizations:
bearerAuth
Request Body schema: multipart/form-data
required
file
required
string <binary> <application/octet-stream>

Responses

Response samples

Content type
application/json
202

Offline screenshots upload

The 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).

Authorizations:
bearerAuth
path Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Calculate total time interval

Calculate the total time spent within the specified start and end intervals for a given user.

Authorizations:
bearerAuth
query Parameters
start_at
required
string <date-time>
end_at
required
string <date-time>
user_id
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Calculate total time interval

Calculate the total time spent within the specified start and end intervals for a given user.

Authorizations:
bearerAuth
query Parameters
start_at
string <date-time>
end_at
string <date-time>
project_id
integer
task_id
integer
user_id
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Screenshot URLs

Fresh temporary URLs of the interval screenshot and thumbnail (for pages open longer than the URL lifetime and for report payloads without URLs)

Authorizations:
bearerAuth
path Parameters
interval
required
integer

The interval ID

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Thumbnail

Stream the screenshot thumbnail of an interval, see Screenshot.

path Parameters
interval
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Invitation

List

Get list of invitations.

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Count Invitations

Returns the total count of invitations

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Create

Creates a unique invitation token and sends an email to the users

Authorizations:
bearerAuth
Request Body schema: application/json
required
required
Array of objects non-empty

Responses

Request samples

Content type
application/json
{
  • "users": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ]
}

Resend

Updates the token expiration date and sends an email to the user's email address.

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Show

Show invitation.

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy

Destroy User

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

PasswordReset

Request

Sends email to user with reset link

Request Body schema: application/json
required
email
required
string <email>

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com"
}

Response samples

Content type
application/json
{
  • "message": "Link for restore password has been sent to specified email"
}

Validate

Validates password reset token

Request Body schema: application/json
required
email
required
string <email>
token
required
string

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "token": "string"
}

Response samples

Content type
application/json
{
  • "message": "Password reset data is valid"
}

Process

Resets user password

Request Body schema: application/json
required
email
required
string <email>
token
required
string
password
required
string
password_confirmation
required
string

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "token": "string",
  • "password": "string",
  • "password_confirmation": "string"
}

Response samples

Content type
application/json
{
  • "access_token": "string",
  • "token_type": "bearer",
  • "expires_in": null,
  • "user": null
}

PlannedTimeReport

Planned Time Report

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.

Authorizations:
bearerAuth
Request Body schema: application/json
projects
Array of strings or null

Responses

Request samples

Content type
application/json
{
  • "projects": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Download Planned Time Report

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.

Authorizations:
bearerAuth
Request Body schema: application/json
projects
Array of strings or null

Responses

Request samples

Content type
application/json
{
  • "projects": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Priority

List

Get list of priorities.

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Count Priorities

Returns the total count of priorities

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Create

Creates priority

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string
color
string or null^#[a-f0-9]{6}$

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "color": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Edit

Edit Priority

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer
name
required
string
color
string or null^#[a-f0-9]{6}$

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "color": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Show

Show priority.

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy

Destroy User

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Project

List

Get list of Projects

Required permission (any of): projects_list, projects_full_access

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Count

Count Projects

Required permission (any of): projects_count, projects_full_access

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Create Project

Creates a new project

Authorizations:
bearerAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "description": "string",
  • "important": true,
  • "default_priority_id": 0,
  • "screenshots_state": -1,
  • "statuses": [
    ],
  • "phases": [
    ],
  • "group": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Edit

Edit Project

Required permission (any of): projects_edit, projects_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "description": "string",
  • "default_priority_id": 0,
  • "screenshots_state": -1,
  • "statuses": [
    ],
  • "phases": [
    ],
  • "group": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Project Show

Retrieve project show along with the number of tasks in each phase.

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy

Destroy Project

Required permission (any of): projects_remove, projects_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Gantt Data

Получение данных для диаграммы Ганта по проекту

Authorizations:
bearerAuth
query Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Project Phases

Retrieve project phases along with the number of tasks in each phase.

Authorizations:
bearerAuth
query Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

ProjectGroup

Display a listing of the resource

Paginated unless the X-Paginate: false header is sent; pagination is absent in that case.

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Count

Returns the number of project groups that match the optional filters.

Any authenticated user may call it.

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Show the form for creating a new resource

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string
parent_id
integer or null

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "parent_id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Show the form for editing the specified resource

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer
name
string
parent_id
integer or null

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "parent_id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Display the specified resource

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Remove the specified resource from storage

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

ProjectMember

List Project Members

Get list of project members

Authorizations:
bearerAuth
Request Body schema: application/json
required
project_id
required
integer

Responses

Request samples

Content type
application/json
{
  • "project_id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Bulk Edit Project Members

Edit roles of multiple project members

Authorizations:
bearerAuth
Request Body schema: application/json
required
project_id
required
integer
required
Array of objects unique

Responses

Request samples

Content type
application/json
{
  • "project_id": 0,
  • "user_roles": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

ProjectReport

Project Report

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.

Authorizations:
bearerAuth
Request Body schema: application/json
required
users
Array of strings or null
projects
Array of strings or null
start_at
required
string <date-time>
end_at
required
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "users": [
    ],
  • "projects": [
    ],
  • "start_at": "2019-08-24T14:15:22Z",
  • "end_at": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ]
}

Download Project Report

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.

Authorizations:
bearerAuth
Request Body schema: application/json
required
users
Array of strings or null
projects
Array of strings or null
start_at
required
string <date-time>
end_at
required
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "users": [
    ],
  • "projects": [
    ],
  • "start_at": "2019-08-24T14:15:22Z",
  • "end_at": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Registration

Get Form

Returns invitation form data by a invitation token

path Parameters
key
required
string

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Creates a new user

path Parameters
key
required
string
Request Body schema: application/json
required
email
required
string <email>
full_name
required
string
password
required
string >= 6 characters

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "full_name": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Role

Get Roles List

Retrieves the list of roles available in the system.

The role id is what role_id of a user holds: ANY is -1, ADMIN 0, MANAGER 1, USER 2, AUDITOR 3.

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ]
}

Status

Status

Check API status

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

List

Get list of statuses.

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Count Invitations

Get the count of invitations

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Create

Creates status

Authorizations:
bearerAuth
Request Body schema: application/json
required
name
required
string
order
integer
active
boolean
color
string or null^#[a-f0-9]{6}$

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "order": 0,
  • "active": true,
  • "color": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Edit

Edit Status

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer
name
required
string
order
integer
active
boolean
color
string or null^#[a-f0-9]{6}$

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "order": 0,
  • "active": true,
  • "color": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Show

Show status.

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy

Destroy User

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Task

List

Get list of Tasks

Required permission (any of): tasks_list, tasks_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
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

Responses

Request samples

Content type
application/json
{
  • "limit": 0,
  • "offset": 0,
  • "orderBy": [
    ],
  • "with": { },
  • "withCount": { },
  • "withSum": [
    ],
  • "search": {
    },
  • "where": [
    ],
  • "project_id": [
    ]
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Count

Count Tasks

Required permission (any of): tasks_count, tasks_full_access

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Create

Create Task

Required permission (any of): tasks_create, tasks_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "project_id": 0,
  • "project_phase_id": 0,
  • "task_name": "string",
  • "description": "string",
  • "users": [
    ],
  • "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
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Edit

Edit Task

Required permission (any of): tasks_edit, tasks_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "project_id": 0,
  • "project_phase_id": 0,
  • "task_name": "string",
  • "description": "string",
  • "users": [
    ],
  • "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
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Show

Show Task

Required permission (any of): tasks_show, tasks_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "limit": 0,
  • "offset": 0,
  • "orderBy": [
    ],
  • "with": { },
  • "withCount": { },
  • "withSum": [
    ],
  • "search": {
    },
  • "where": [
    ],
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy

Destroy Task

Required permission (any of): tasks_remove, tasks_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Calendar

Get calendar report data

Authorizations:
bearerAuth
Request Body schema: application/json
required
project_id
integer or null
start_at
required
string <date-time>
end_at
required
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "project_id": 0,
  • "start_at": "2019-08-24T14:15:22Z",
  • "end_at": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Create Relation

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

Authorizations:
bearerAuth
Request Body schema: application/json
required
task_id
required
integer
related_task_id
required
integer
relation_type
required
string (TaskRelationType)
Enum: "follows" "precedes"

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "related_task_id": 0,
  • "relation_type": "follows"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy Relation

Removes a relation between two tasks.

Required permission (any of): tasks_destroy_relation, tasks_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
parent_id
required
integer
child_id
required
integer

Responses

Request samples

Content type
application/json
{
  • "parent_id": 0,
  • "child_id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Download Projects and Tasks

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.

Authorizations:
bearerAuth
path Parameters
user
required
integer

The user ID

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

TaskActivity

Task activity

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.

Authorizations:
bearerAuth
Request Body schema: application/json
required
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"

Responses

Request samples

Content type
application/json
{
  • "limit": 0,
  • "offset": 0,
  • "orderBy": [
    ],
  • "with": { },
  • "withCount": { },
  • "withSum": [
    ],
  • "search": {
    },
  • "where": [
    ],
  • "page": 0,
  • "task_id": 0,
  • "type": "all"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

TaskComment

List Task Comments

Get list of Task Comments

Required permission (any of): task_comment_list, task_comment_full_access

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Create Task Comment

Create a new task comment

Required permission (any of): task_comment_create, task_comment_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
task_id
required
integer
content
string

Responses

Request samples

Content type
application/json
{
  • "task_id": 0,
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Edit Task Comment

Edit an existing task comment

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer
content
required
string

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "content": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Show Deprecated

since 1.0.0

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy Task Comment Deprecated

since 4.0.0

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
string

Responses

Request samples

Content type
application/json
{
  • "id": "string"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

TimeUseReport

Get User Time Report

Retrieves the time report for specified users within a given time range.

Without users all users are included. Times are in seconds.

Authorizations:
bearerAuth
Request Body schema: application/json
required
users
Array of strings or null
start_at
required
string <date-time>
end_at
required
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "users": [
    ],
  • "start_at": "2019-08-24T14:15:22Z",
  • "end_at": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ]
}

UniversalReport

List report bases

Returns the bases a universal report can be built on: project, user and task.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ]
}

Get fields and data objects of a base

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.

Authorizations:
bearerAuth
query Parameters
base
required
string (UniversalReportBase)
Enum: "project" "user" "task"

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

List universal reports

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.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Save a universal report

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.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Get a universal report

Returns the saved settings of the report with the given id.

Any authenticated user may call it.

Authorizations:
bearerAuth
query Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Update a universal report

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.

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Generate a universal report

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.

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer
start_at
string or null <date-time>
end_at
string or null <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "start_at": "2019-08-24T14:15:22Z",
  • "end_at": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Delete a universal report

Deletes the report with the given id. The response has no body.

Any authenticated user may call it.

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Download a universal report

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.

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer
start_at
string or null <date-time>
end_at
string or null <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 0,
  • "start_at": "2019-08-24T14:15:22Z",
  • "end_at": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

User

List

Get list of Users with any params

Required permission (any of): users_list, users_full_access

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": [
    ],
  • "pagination": {
    }
}

Count

Count Users

Required permission (any of): users_count, users_full_access

Authorizations:
bearerAuth
query Parameters
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 ]

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Create

Create User Entity

Required permission (any of): users_create, users_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "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
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Edit

Edit User

Required permission (any of): users_edit, users_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer
full_name
string
email
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

Responses

Request samples

Content type
application/json
{
  • "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": [
    ],
  • "projects_roles": [
    ],
  • "type": "string",
  • "web_and_app_monitoring": true
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Show User

Retrieves detailed information about a specific user.

Required permission (any of): users_show, users_full_access

Authorizations:
bearerAuth
query Parameters
id
required
integer

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": true,
  • "data": {
    }
}

Destroy

Destroy User

Required permission (any of): users_remove, users_full_access

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Send User Invitation

Sends an invitation to a user by generating a password, marking the invitation as sent, and dispatching relevant events.

Required permission: users_invite

Authorizations:
bearerAuth
Request Body schema: application/json
required
id
required
integer

Responses

Request samples

Content type
application/json
{
  • "id": 0
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}

Activity

Updates the time of the user's last activity

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "status": 0,
  • "success": false,
  • "error": {
    }
}