Webhooks

Get Webhook Events

Get a list of the recent Webhook items (defaults to the last day). The dashboard will show events raised in the last day. Timetastic retains 30 days of Webhook event history and you can access this via the API.

daysHistory is optional and defaults to 1. It is capped at 30 — a larger value is silently reduced rather than rejected.

get/api/webhooks/list/{daysHistory}

Request

  • Base URL: https://app.timetastic.co.uk (the document declares no server; this is the origin it was published from)
  • URL: https://app.timetastic.co.uk/api/webhooks/list/{daysHistory}
  • Auth: none declared

Query parameters

daysHistoryinteger

Response

The recent webhook events. An empty list if there were none in that window.

idinteger

The Event ID

organisationIdinteger

Your Organisation ID

recordIdinteger

The recordID associated with this event

userIdinteger

The UserID that raised this event

retryCountinteger

How many attempts to deliver this event there have been

eventType0 | 1 | 2 | 3 | 4 | 5 | 6

The Event Type ID

  • 0 — TestEvent
  • 1 — AbsenceRequested
  • 2 — AbsenceApproved
  • 3 — AbsenceDeclined
  • 4 — AbsenceCancelled
  • 5 — AbsenceBooked
  • 6 — AbsenceUpdated
expiresAtstring date-time

The Expiry Date and Time (UTC)

timestampstring date-time

When the Event was raised (UTC)

isProcessedboolean

true if your server has responded success, otherwise false

lastProcessedAtstring date-time nullable

The UTC Time that the event was last attempted

lastResponseCodeinteger

The HTTP Code we last received from your server (trimmed to 4000 characters)

lastResponseDetailstring nullable

The HTTP Content we last received from your server

nextAttemptstring date-time

The scheduled time this event will be next attempted (there may be a short delay if many events are queued)

urlstring nullable

The URL assigned to this event

type0

Used internally for the type of webhook we're sending. For your requests this will always be 0

  • 0 — Timetastic

Changes

No recorded changes to this operation across all 1 revision of this API.