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.
dataobjectrequiredFields(9)
lock_versionintegerAt least 0.
created_atstring (date-time)requiredupdated_atstring (date-time)requiredidstring (uuid)requiredaccount_idstring (uuid)requiredmembership_idstring (uuid)requiredreasonstring or nullstarts_atstring (date-time)requiredends_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"