KlockworkKlockworkAPI

Company

Read-only client portal request and response fields.

Base URL https://api.klockwork.org. Send the agency key and X-Klockwork-Client (a client UUID). The call acts as that linked company. Anything outside the portal returns 404.

List invoices

GET /api/public/company/invoices

Response 200: { invoices: Invoice[] }

FieldTypeRequired
idstring (uuid)yes
kind"studio_talent" or "agency_client"yes
talentIdstring (uuid) or nullyes
talentDisplayNamestring or nullyes
clientIdstring (uuid) or nullyes
clientDisplayNamestring or nullyes
fromAtstringyes
toAtstringyes
currencystringyes
status"draft" or "paid" or "void"yes
invoicePrefixstringyes
invoiceNumberintegeryes
displayNumberstringyes
subtotalCentsinteger, min 0yes
totalCentsinteger, min 0yes
notesstring or nullyes
createdAtstringyes
lineItemsarray of objectno

lineItems items:

FieldTypeRequired
idstring (uuid)yes
sourceKind"timer" or "manual"yes
sourceIdstring (uuid) or nullyes
descriptionstringyes
talentIdstring (uuid) or nullyes
talentDisplayNamestring or nullyes
quantityHoursnumber, min 0yes
unitRateCentsinteger, min 0yes
amountCentsinteger, min 0yes
sortOrderinteger, min 0yes

Get an invoice

GET /api/public/company/invoices/{id}

Response 200: { invoice: Invoice }

FieldTypeRequired
idstring (uuid)yes
kind"studio_talent" or "agency_client"yes
talentIdstring (uuid) or nullyes
talentDisplayNamestring or nullyes
clientIdstring (uuid) or nullyes
clientDisplayNamestring or nullyes
fromAtstringyes
toAtstringyes
currencystringyes
status"draft" or "paid" or "void"yes
invoicePrefixstringyes
invoiceNumberintegeryes
displayNumberstringyes
subtotalCentsinteger, min 0yes
totalCentsinteger, min 0yes
notesstring or nullyes
createdAtstringyes
lineItemsarray of objectno

lineItems items:

FieldTypeRequired
idstring (uuid)yes
sourceKind"timer" or "manual"yes
sourceIdstring (uuid) or nullyes
descriptionstringyes
talentIdstring (uuid) or nullyes
talentDisplayNamestring or nullyes
quantityHoursnumber, min 0yes
unitRateCentsinteger, min 0yes
amountCentsinteger, min 0yes
sortOrderinteger, min 0yes

List talents

GET /api/public/company/talents

Response 200: { talents: Talent[] }

FieldTypeRequired
assignmentIdstring (uuid)yes
talentIdstring (uuid)yes
displayNamestring, min 1yes
status"active" or "pending"yes
clientDisplayNamestring, min 1yes

List time

GET /api/public/company/time

from must be earlier than to.

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

On this page