Skip to main content

Get a job time entry

GET/api/v1/time_entries/{id}

  • Needs an API key, and runs with the access of the member who made the key.
  • A connected AI assistant can use it too, as getTimeEntry.

Parameters

In the address

  • idstring (uuid)required

Responses

200Recorded job time, including the current elapsed duration.

  • dataobjectrequired

    Fields(19)
    • lock_versionintegerrequired

      At least 0.

    • created_atstring (date-time)required

    • updated_atstring (date-time)required

    • idstring (uuid)required

    • account_idstring (uuid)required

    • job_idstring (uuid) or nullrequired

    • job_titlestring or nullrequired

    • job_numberstring or nullrequired

    • visit_idstring (uuid) or null

    • visit_titlestring or null

    • purposestring

      `work` for job and work-visit time, `quote_assessment` for quote visit time.

      One of: work, quote_assessment.

    • membership_idstring (uuid)required

    • membership_namestringrequired

    • recorded_by_idstring (uuid)required

    • updated_by_idstring (uuid)required

    • started_atstring (date-time)required

    • ended_atstring (date-time) or nullrequired

    • duration_secondsintegerrequired

      At least 0.

    • notesstring or null

A refusal answers in the one error shape every operation shares.

Example

A request our own tests send. The ids are made up: put your own in their place.

curl "https://app.tradesender.co.uk/api/v1/time_entries/21042635-6632-5bec-b911-37a6f2d79870" \
  -H "Authorization: Bearer $TRADESENDER_KEY"