Skip to main content

Get an absence

GET/api/v1/absences/{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 getAbsence.

Parameters

In the address

  • idstring (uuid)required

Responses

200Absence details.

  • dataobjectrequired

    Fields(9)
    • lock_versioninteger

      At least 0.

    • created_atstring (date-time)required

    • updated_atstring (date-time)required

    • idstring (uuid)required

    • account_idstring (uuid)required

    • membership_idstring (uuid)required

    • reasonstring or null

    • starts_atstring (date-time)required

    • ends_atstring (date-time)required

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/absences/5504b937-9680-5f60-8e97-97b6fff714e6" \
  -H "Authorization: Bearer $TRADESENDER_KEY"