KlockworkKlockworkAPI
Agency

Time

Agency time request and response fields.

Base URL https://api.klockwork.org. Send X-Klockwork-Key or Authorization: Bearer kw_…. An agency key acts as the agency that created it. JSON bodies use these fields. A missing required field returns 400 with { "error": "Validation failed", "details": {} }.

from must be earlier than to. Otherwise the response is 400 { "error": "from must be before to" }.

List time

GET /api/public/agency/time

Query:

FieldTypeRequired
fromstring, min 1yes
tostring, min 1yes

Response 200: TimeReport

FieldTypeRequired
summaryobjectyes
byTalentarray of objectyes
entriesarray of objectyes

summary object:

FieldTypeRequired
finishedHoursnumber, min 0yes
openTimerCountinteger, min 0yes
estimatedPaynumber, min 0yes
currencystringyes

byTalent items:

FieldTypeRequired
talentIdstring (uuid)yes
talentDisplayNamestringyes
hourlyRatenumber, min 0yes
currencystringyes
finishedHoursnumber, min 0yes
estimatedPaynumber, min 0yes
openStatus"working" or "break" or "pending" or nullyes
entryCountinteger, min 0yes

entries items:

FieldTypeRequired
idstring, min 1yes
source"timer" or "manual"yes
talentIdstring (uuid)yes
talentDisplayNamestringyes
clientIdstring (uuid) or nullyes
clientDisplayNamestring or nullyes
startedAtstringyes
endedAtstring or nullyes
billableHoursnumber, min 0yes
notesstring or nullyes
breaksarray of objectyes
openStatus"working" or "break" or "pending" or nullyes

entries[].breaks items:

FieldTypeRequired
startedAtstringyes
endedAtstring or nullyes
labelstringyes

Create a time entry

POST /api/public/agency/time

Request body:

FieldTypeRequired
talentIdstring (uuid)yes
clientIdstring (uuid) or nullno
startedAtstring, min 1yes
endedAtstring, min 1yes
notesstring, max 4000 or nullno

Response 201: { entry: TimeEntry }

FieldTypeRequired
idstring, min 1yes
source"timer" or "manual"yes
talentIdstring (uuid)yes
talentDisplayNamestringyes
clientIdstring (uuid) or nullyes
clientDisplayNamestring or nullyes
startedAtstringyes
endedAtstring or nullyes
billableHoursnumber, min 0yes
notesstring or nullyes
breaksarray of objectyes
openStatus"working" or "break" or "pending" or nullyes

breaks items:

FieldTypeRequired
startedAtstringyes
endedAtstring or nullyes
labelstringyes

On this page