Time

8 operations. Paths start at your portal’s /api/v1.

Log time on ticket

POST/tickets/{ticketId}/time-entries

Scope write:timeChanges data

Requires the write:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • ticketIdintegerin pathRequired

    Ticket number.

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • minutesintegerRequired

    Number of minutes.

    Min 1. Max 960.

  • descriptionstring

    Description of the time entry.

    Up to 50000 characters.

  • isBillableboolean

    Whether the time is billable to the client.

  • entryDatestring

    Date of the time entry, ISO 8601 date (YYYY-MM-DD); defaults to today.

  • requestIdstring

    Retry key you choose (1 to 200 characters). Sending the same key again returns the entry already made instead of adding a second one.

    Up to 200 characters.

Response 200

  • dataobjectRequired

    The result of the action.

  • data.okbooleanRequired

    True when the action was carried out (or, with dryRun, previewed).

  • data.messagestringRequired

    Plain-words sentence describing what happened.

  • data.entityobject or nullRequired

    The record the action touched, or null when it did not touch one.

  • data.entity.typestring or nullRequired

    Kind of record that was acted on, when there is one.

  • data.entity.idstring or nullRequired

    Id of that record, when there is one.

  • data.entity.hrefstring or nullRequired

    Absolute portal link to that record, when there is one.

  • data.outputobjectRequired

    Anything else the action returned (may be empty).

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

List time entries

GET/time-entries

Scope read:timeRead only

Requires the read:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • limitintegerin query

    Page size, 1 to 100 (default 25).

    Min 1. Max 100. Default 25.

  • cursorstringin query

    Opaque continuation token: pass back the nextCursor you were given. Never construct one.

  • ticketIdintegerin query

    Only the entries on this ticket number.

  • techIdstringin query

    The person whose entries to list (default: the key's user). Naming someone else needs the time-report right.

  • periodstringin query

    Window length around date.

    One of: day, week, month.

  • datestringin query

    YYYY-MM-DD, any day inside the window; defaults to today.

  • windowDaysintegerin query

    Trailing window: the last N calendar days (1 to 366). Overrides period.

Response 200

  • dataobject[]Required

    One page of rows.

  • nextCursorstring or nullRequired

    Opaque cursor for the next page; pass it back as ?cursor=. Null on the last page.

Errors (401, 403, 404, 429)
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Log time entry

POST/time-entries

Scope write:timeChanges data

Requires the write:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • ticketIdnumberRequired

    Ticket number (the number shown in the portal, not an internal id).

  • minutesnumberRequired

    Number of minutes.

    Min 1. Max 960.

  • descriptionstring

    Description of the time entry.

    Up to 50000 characters.

  • isBillableboolean

    Whether the time is billable to the client.

  • requestIdstring

    Retry key you choose (1 to 200 characters). Sending the same key again returns the entry already made instead of adding a second one.

    Up to 200 characters.

  • forUserIdstring

    Technician the time is FOR (id or name) - omit to log it as yourself

Response 200

  • dataobjectRequired

    The result of the action.

  • data.okbooleanRequired

    True when the action was carried out (or, with dryRun, previewed).

  • data.messagestringRequired

    Plain-words sentence describing what happened.

  • data.entityobject or nullRequired

    The record the action touched, or null when it did not touch one.

  • data.entity.typestring or nullRequired

    Kind of record that was acted on, when there is one.

  • data.entity.idstring or nullRequired

    Id of that record, when there is one.

  • data.entity.hrefstring or nullRequired

    Absolute portal link to that record, when there is one.

  • data.outputobjectRequired

    Anything else the action returned (may be empty).

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Time by client (aggregate)

GET/time/by-client

Scope read:timeRead only

Requires the read:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • sinceDaysintegerin query

    Trailing window in days (1 to 365, default 30).

  • limitintegerin query

    Most clients to return (1 to 50, default 15).

  • organizationIdstringin query

    Only this client id.

Response 200

  • countnumberRequired

    Number of client rows in this answer.

  • shownnumberRequired

    Same as count: rows shown.

  • totalnumberRequired

    How many clients have logged time in the window before the row limit.

  • hasMorebooleanRequired

    True when the row limit cut off clients.

  • truncatedbooleanRequired

    Same as hasMore.

  • windowDaysnumberRequired

    Length of the trailing window in days.

  • scopestringRequired

    own = only the key user's entries (view-tier right); all = every technician.

    One of: own, all.

  • unitstringRequired

    Plain-words note on units and how time is attributed to a client.

  • clientsobject[]Required

    Clients ranked by logged time, most first.

  • clients[].organizationIdstringRequired

    Client id.

  • clients[].clientstringRequired

    Client name.

  • clients[].hoursnumberRequired

    Total hours, one decimal.

  • clients[].totalMinutesnumberRequired

    Total logged minutes.

  • clients[].totalstringRequired

    Total as "Xh Ym".

  • clients[].billableHoursnumberRequired

    Billable hours, one decimal.

  • clients[].billableMinutesnumberRequired

    Billable minutes (confirmed, billable-source entries).

  • clients[].billablestringRequired

    Billable as "Xh Ym".

  • clients[].entriesnumberRequired

    Number of time entries.

  • clients[].techsnumberRequired

    Number of distinct technicians.

Errors (401, 403, 404, 429)
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Get today's time breakdown

GET/time/daily-breakdown

Scope read:timeRead only

Requires the read:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • periodstringin query

    today, week or month (default today).

    One of: today, week, month.

  • datestringin query

    YYYY-MM-DD anchor day; defaults to today in the key user's timezone.

Response 200

  • periodstringRequired

    The window that was summed.

    One of: today, week, month.

  • anchorDatestringRequired

    YYYY-MM-DD the window was built around, in the key user's timezone.

  • totalnumberRequired

    Work minutes in the window (live elapsed included).

  • presencenumberRequired

    Presence minutes (idle, break, ambient capture); never summed into total.

  • dayStartstring or nullRequired

    First activity instant in the window, or null.

  • dayEndstring or nullRequired

    Last stop in the window, or null while a slice is running.

  • bucketsobject[]Required

    Minutes per bucket.

  • buckets[].keystringRequired

    Bucket key.

  • buckets[].bucketTypestringRequired

    TICKET, ADMIN, MEETING, IDLE and so on.

  • buckets[].ticketIdnumber or nullRequired

    Ticket number for a ticket bucket.

  • buckets[].ticketSubjectstring

    Ticket subject for a ticket bucket.

  • buckets[].minutesnumberRequired

    Minutes in the bucket.

  • buckets[].activeMinutesnumberRequired

    Minutes from the running slice.

  • buckets[].isActivebooleanRequired

    True while the bucket holds the running slice.

  • buckets[].lockedbooleanRequired

    True when the minutes can no longer be edited.

  • buckets[].declaredbooleanRequired

    False when every slice was passive capture (looked at, not declared).

  • slicesobject[]Required

    The individual slices in the window.

  • slices[].idstringRequired

    Time entry id.

  • slices[].bucketTypestringRequired

    Bucket kind.

  • slices[].ticketIdnumber or nullRequired

    Ticket number, if any.

  • slices[].ticketSubjectstring or nullRequired

    Ticket subject, if any.

  • slices[].minutesnumberRequired

    Minutes.

  • slices[].startedAtstring or nullRequired

    Start instant.

  • slices[].stoppedAtstring or nullRequired

    Stop instant, null while running.

  • slices[].isRunningbooleanRequired

    True while this slice is running.

  • slices[].lockedbooleanRequired

    True when the entry is locked.

  • slices[].lockedReasonstring or nullRequired

    Why it is locked (INVOICED, CONSOLIDATED, PERIOD_CLOSED, MANAGER_LOCK).

  • slices[].descriptionstring or nullRequired

    Entry description.

  • slices[].consumedboolean

    True when a declared entry consumed this raw slice.

  • slices[].consumedByEntryIdstring or null

    The declared entry that consumed it.

  • activeobject or nullRequired

    The running slice, or null.

  • active.sliceIdstringRequired

    Running slice id.

  • active.bucketTypestringRequired

    Bucket kind.

  • active.ticketIdnumber or nullRequired

    Ticket number, if any.

  • active.startedAtstringRequired

    When it started.

  • loggednumberRequired

    Minutes logged against the expected target.

  • expectednumberRequired

    Expected work minutes for the window (0 = no target).

  • pctnumberRequired

    Logged vs expected, percent.

  • hasActiveTimerbooleanRequired

    True while a timer is running.

  • activeTimerStartedAtstring or nullRequired

    When the running timer started.

  • activeTimerTicketIdnumber or nullRequired

    Ticket the running timer is on.

  • observedobjectRequired

    Passively observed minutes by kind.

  • observed.ticketnumberRequired

    Observed ticket minutes.

  • observed.adminnumberRequired

    Observed admin minutes.

  • observed.idlenumberRequired

    Observed idle minutes.

  • observed.totalnumberRequired

    Observed total minutes.

  • currentActivityobject or nullRequired

    What the user is doing in the portal right now, or null.

  • currentActivity.categorystringRequired

    Activity category.

  • currentActivity.pathnamestringRequired

    Portal page.

  • currentActivity.ticketIdnumber or nullRequired

    Ticket number, if any.

  • currentActivity.sincestringRequired

    Since when.

Errors (401, 403, 404, 429)
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Time-tracking report (per-tech aggregation)

GET/time/report

Scope read:timeRead only

Requires the read:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • periodstringin query

    day, week or month (default day).

    One of: day, week, month.

  • datestringin query

    YYYY-MM-DD, any day inside the window; defaults to today.

  • windowDaysintegerin query

    Trailing window of N calendar days (1 to 366); overrides period.

  • techIdstringin query

    Only this technician (needs the time-report right to name someone else).

  • orgIdstringin query

    Only this client id.

Response 200

  • periodstringRequired

    The window kind.

    One of: day, week, month.

  • startDatestringRequired

    Window start instant (ISO).

  • endDatestringRequired

    Window end instant (ISO, inclusive).

  • techsobject[]Required

    One row per technician.

  • techs[].idstringRequired

    Technician id.

  • techs[].namestringRequired

    Technician name.

  • techs[].totalMinutesnumberRequired

    Work minutes.

  • techs[].presenceMinutesnumberRequired

    Presence minutes, never summed into work.

  • techs[].firstStartedAtstring or nullRequired

    First activity instant, or null.

  • techs[].lastStoppedAtstring or nullRequired

    Last stop, or null while running.

  • techs[].timerMinutesnumberRequired

    Minutes from the timer.

  • techs[].manualMinutesnumberRequired

    Minutes entered by hand.

  • techs[].internalMinutesnumberRequired

    Internal work minutes.

  • techs[].externalMinutesnumberRequired

    Client work minutes.

  • techs[].deadMinutesnumberRequired

    Unattributed minutes.

  • techs[].entryCountnumberRequired

    Number of entries.

  • techs[].pctnumberRequired

    Work minutes vs the expected target, percent.

  • techs[].slicesobject[]

    Day reports only: the technician's slices.

  • techs[].slices[].bucketTypestringRequired

    Bucket kind.

  • techs[].slices[].startedAtstring or nullRequired

    Start instant.

  • techs[].slices[].stoppedAtstring or nullRequired

    Stop instant.

  • techs[].slices[].minutesnumberRequired

    Minutes.

  • techs[].slices[].isRunningbooleanRequired

    True while running.

  • techs[].ticketsobject[]Required

    Per-ticket breakdown.

  • techs[].tickets[].ticketIdnumberRequired

    Ticket number.

  • techs[].tickets[].subjectstringRequired

    Ticket subject.

  • techs[].tickets[].orgNamestringRequired

    Client name.

  • techs[].tickets[].orgIdstringRequired

    Client id.

  • techs[].tickets[].minutesnumberRequired

    Minutes on the ticket.

  • techs[].tickets[].entryCountnumberRequired

    Entries on the ticket.

  • techs[].orgsobject[]Required

    Per-client breakdown.

  • techs[].orgs[].orgIdstringRequired

    Client id.

  • techs[].orgs[].orgNamestringRequired

    Client name.

  • techs[].orgs[].minutesnumberRequired

    Ticket-linked work minutes.

  • techs[].orgs[].presentMinutesnumberRequired

    Presence residue minutes.

  • orgTotalsobject[]Required

    Totals per client.

  • orgTotals[].orgIdstringRequired

    Client id.

  • orgTotals[].orgNamestringRequired

    Client name.

  • orgTotals[].totalMinutesnumberRequired

    Work minutes.

  • orgTotals[].presentMinutesnumberRequired

    Presence residue minutes.

  • orgTotals[].techCountnumberRequired

    Technicians who worked for the client.

  • expectedMinutesPerTechnumberRequired

    Expected work minutes per technician for the window (0 = no target).

  • startDaystringRequired

    First day of the window (YYYY-MM-DD).

  • endDaystringRequired

    Last day of the window as the period defines it.

  • throughDaystringRequired

    Last day that has actually happened.

  • workingDaysCountednumberRequired

    Working days the target counts.

  • windowLabelstringRequired

    One sentence naming the window and its target.

  • totalMinutesnumberRequired

    Total work minutes.

  • totalBillableMinutesnumberRequired

    Subset of work minutes that may bill.

  • totalPresenceMinutesnumberRequired

    Total presence minutes.

  • totalInternalMinutesnumberRequired

    Total internal minutes.

  • totalExternalMinutesnumberRequired

    Total client minutes.

  • totalDeadMinutesnumberRequired

    Total unattributed minutes.

  • totalEntriesnumberRequired

    Total entries.

Errors (401, 403, 404, 429)
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Start timer on ticket

POST/timer/start

Scope write:timeChanges data

Requires the write:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • ticketIdnumberRequired

    Ticket number (the number shown in the portal, not an internal id).

Response 200

  • dataobjectRequired

    The result of the action.

  • data.okbooleanRequired

    True when the action was carried out (or, with dryRun, previewed).

  • data.messagestringRequired

    Plain-words sentence describing what happened.

  • data.entityobject or nullRequired

    The record the action touched, or null when it did not touch one.

  • data.entity.typestring or nullRequired

    Kind of record that was acted on, when there is one.

  • data.entity.idstring or nullRequired

    Id of that record, when there is one.

  • data.entity.hrefstring or nullRequired

    Absolute portal link to that record, when there is one.

  • data.outputobjectRequired

    Anything else the action returned (may be empty).

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Pause active work

POST/timer/stop

Scope write:timeChanges data

Requires the write:time scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.

Parameters

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Response 200

  • dataobjectRequired

    The result of the action.

  • data.okbooleanRequired

    True when the action was carried out (or, with dryRun, previewed).

  • data.messagestringRequired

    Plain-words sentence describing what happened.

  • data.entityobject or nullRequired

    The record the action touched, or null when it did not touch one.

  • data.entity.typestring or nullRequired

    Kind of record that was acted on, when there is one.

  • data.entity.idstring or nullRequired

    Id of that record, when there is one.

  • data.entity.hrefstring or nullRequired

    Absolute portal link to that record, when there is one.

  • data.outputobjectRequired

    Anything else the action returned (may be empty).

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

All API areas →