curl --request GET \
--url https://{host}/lucca-api/webhook-delivery-attempts \
--header 'Api-Version: <api-version>' \
--header 'Authorization: Bearer <token>'{
"type": "webhook-delivery-attempts",
"url": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts?limit=25",
"totalCount": 29,
"items": [
{
"id": "874",
"type": "webhook-delivery-attempt",
"url": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts/874",
"signature": "9087FD897DSF87D67F78SD6F876SD78F6SD7886F78SD6F87SD678F6SD78F6SD786FS876F78SD6F786FYJHXWYCV78C6FV7868S7FDS78",
"webhookDelivery": {
"id": "87",
"type": "webhook-delivery",
"url": "https://example.ilucca.net/lucca-api/webhook-deliveries/87"
},
"isSuccessful": true,
"responseStatusCode": 202,
"errorResponseBody": "",
"createdAt": "2024-04-03T09:23:56.235Z",
"links": {}
}
],
"links": {
"prev": null,
"next": {
"href": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts?page=!43df&limit=25"
}
},
"embedded": {
"webhook-delivery": {
"87": {
"id": "87",
"type": "webhook-delivery",
"url": "https://example.ilucca.net/lucca-api/webhook-deliveries/87",
"nextAttemptAt": "2023-08-29T09:12:33.001Z",
"attemptsCount": 2,
"status": "delivered",
"event": {
"id": "123",
"type": "leave.created",
"url": "https://example.ilucca.net/lucca-api/events/123"
},
"webhookEndpoint": {
"id": "12",
"type": "webhook-endpoint",
"url": "https://example.ilucca.net/lucca-api/webhook-endpoints/12"
},
"links": {
"attempts": {
"href": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts?webhookDelivery.id=87"
}
}
}
},
"event": {
"123": {
"id": "123",
"type": "event",
"url": "https://example.ilucca.net/lucca-api/events/123",
"apiVersion": "2024-01-01",
"topic": "leave.updated",
"occurredAt": "2024-02-01T09:34:23.001Z",
"source": "https://example.ilucca.net",
"businessEstablishment": {
"id": "12",
"type": "business-establishment",
"url": "https://example.ilucca.net/lucca-api/business-establishments/12"
},
"data": {
"id": "875",
"type": "leave",
"url": "https://example.ilucca.net/lucca-api/leaves/875",
"startsOn": "2024-02-01",
"startPosition": "firstHalfDay",
"endsOn": "2024-02-02",
"endPosition": "secondHalfDay",
"employee": {
"id": "416",
"type": "employee",
"url": "https://example.ilucca.net/lucca-api/employees/416"
},
"leaveAccount": {
"id": "56",
"type": "leave-account",
"url": "http://example.ilucca.net/lucca-api/leave-account/56"
},
"days": [
{
"date": "2024-02-01",
"range": "allDay",
"duration": {
"iso": "P1D",
"value": 1,
"unit": "days"
}
},
{
"date": "2024-02-02",
"range": "allDay",
"duration": {
"iso": "P1D",
"value": 1,
"unit": "days"
}
}
],
"totalDuration": {
"iso": "P2D",
"value": 2,
"unit": "days"
},
"status": "tentative",
"details": null,
"createdAt": "2024-01-01T08:23:56.234Z",
"lastUpdatedAt": "2024-01-01T08:23:56.234Z"
},
"previousAttributes": {
"status": "confirmed"
},
"links": {
"retry": {
"href": "https://example.ilucca.net/lucca-api/webhook-deliveries"
}
}
}
}
}
}Retrieve a paginated list of webhook-delivery-attempts.
curl --request GET \
--url https://{host}/lucca-api/webhook-delivery-attempts \
--header 'Api-Version: <api-version>' \
--header 'Authorization: Bearer <token>'{
"type": "webhook-delivery-attempts",
"url": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts?limit=25",
"totalCount": 29,
"items": [
{
"id": "874",
"type": "webhook-delivery-attempt",
"url": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts/874",
"signature": "9087FD897DSF87D67F78SD6F876SD78F6SD7886F78SD6F87SD678F6SD78F6SD786FS876F78SD6F786FYJHXWYCV78C6FV7868S7FDS78",
"webhookDelivery": {
"id": "87",
"type": "webhook-delivery",
"url": "https://example.ilucca.net/lucca-api/webhook-deliveries/87"
},
"isSuccessful": true,
"responseStatusCode": 202,
"errorResponseBody": "",
"createdAt": "2024-04-03T09:23:56.235Z",
"links": {}
}
],
"links": {
"prev": null,
"next": {
"href": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts?page=!43df&limit=25"
}
},
"embedded": {
"webhook-delivery": {
"87": {
"id": "87",
"type": "webhook-delivery",
"url": "https://example.ilucca.net/lucca-api/webhook-deliveries/87",
"nextAttemptAt": "2023-08-29T09:12:33.001Z",
"attemptsCount": 2,
"status": "delivered",
"event": {
"id": "123",
"type": "leave.created",
"url": "https://example.ilucca.net/lucca-api/events/123"
},
"webhookEndpoint": {
"id": "12",
"type": "webhook-endpoint",
"url": "https://example.ilucca.net/lucca-api/webhook-endpoints/12"
},
"links": {
"attempts": {
"href": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts?webhookDelivery.id=87"
}
}
}
},
"event": {
"123": {
"id": "123",
"type": "event",
"url": "https://example.ilucca.net/lucca-api/events/123",
"apiVersion": "2024-01-01",
"topic": "leave.updated",
"occurredAt": "2024-02-01T09:34:23.001Z",
"source": "https://example.ilucca.net",
"businessEstablishment": {
"id": "12",
"type": "business-establishment",
"url": "https://example.ilucca.net/lucca-api/business-establishments/12"
},
"data": {
"id": "875",
"type": "leave",
"url": "https://example.ilucca.net/lucca-api/leaves/875",
"startsOn": "2024-02-01",
"startPosition": "firstHalfDay",
"endsOn": "2024-02-02",
"endPosition": "secondHalfDay",
"employee": {
"id": "416",
"type": "employee",
"url": "https://example.ilucca.net/lucca-api/employees/416"
},
"leaveAccount": {
"id": "56",
"type": "leave-account",
"url": "http://example.ilucca.net/lucca-api/leave-account/56"
},
"days": [
{
"date": "2024-02-01",
"range": "allDay",
"duration": {
"iso": "P1D",
"value": 1,
"unit": "days"
}
},
{
"date": "2024-02-02",
"range": "allDay",
"duration": {
"iso": "P1D",
"value": 1,
"unit": "days"
}
}
],
"totalDuration": {
"iso": "P2D",
"value": 2,
"unit": "days"
},
"status": "tentative",
"details": null,
"createdAt": "2024-01-01T08:23:56.234Z",
"lastUpdatedAt": "2024-01-01T08:23:56.234Z"
},
"previousAttributes": {
"status": "confirmed"
},
"links": {
"retry": {
"href": "https://example.ilucca.net/lucca-api/webhook-deliveries"
}
}
}
}
}
}Security: OAuth 2.0
webhook-deliveries.readonlywebhook-deliveries.readwriteThe Lucca API implements the oAuth 2 protocol with the client-credentials-flow. Refer to RFC8725.
Set the API version.
2024-11-01 "2024-11-01"10Only execute the request if current cached version of the resource does not match the one given here.
Only execute the request if current cached version of the resource matches the one given here. Useful to avoid concurrency conflicts.
List of compression algorithms you support.
Include metadata:
embedded: the partial or complete representations of related resources
(e.g. the employee the resource belongs to).links: links to related resources or actions (e.g. approving a leave-request).
May be null when you do not have access to the resource (or action).totalCount: only applicable on collections (i.e. lists of resources), gives
the total number of items across all pages.Read more about expanding responses.
embedded, links, totalCount OK
A collection of webhook-delivery-attempt resources.
"webhook-delivery-attempts"100Show child attributes
1"webhook-delivery-attempt"1Reference to a webhook-deliver resource.
100 <= x <= 599Total number of webhook-delivery-attempt resources across all pages that satisfy query parameters.
x >= 0Links to related resources
Show child attributes
Show child attributes
Dictionary of webhook-deliveries objects indexed by ID.
Show child attributes
A webhook-delivery is the object that represents the job to send an event to a webhook-endpoint. It will lead to one or more webhook-delivery-attempt.
Show child attributes
Reference to an (webhook-)event resource.
Reference to a webhook-endpoint resource.
Uniquely identifies the webhook-delivery.
"webhook-delivery"Timestamp of the next planned webhook-delivery-attempt (UTC).
Number of times this event has been attempted to be delivered.
x >= 0Indicates whether the event has been delivered or not.
delivered, undelivered, failed {
"id": "78fa5d8c-3436-49aa-82cc-ab1a64c48ed9",
"type": "webhook-delivery",
"url": "https://example.ilucca.net/lucca-api/webhook-deliveries/78fa5d8c-3436-49aa-82cc-ab1a64c48ed9",
"nextAttemptAt": "2023-08-29T09:12:33.001Z",
"attemptsCount": 2,
"status": "delivered",
"event": {
"id": "2455623",
"type": "leave.created",
"url": "https://example.ilucca.net/lucca-api/events/2455623"
},
"webhookEndpoint": {
"id": "12",
"type": "webhook-endpoint",
"url": "https://example.ilucca.net/lucca-api/webhook-endpoints/12"
},
"links": {
"attempts": {
"href": "https://example.ilucca.net/lucca-api/webhook-delivery-attempts?webhookDelivery.id=78fa5d8c-3436-49aa-82cc-ab1a64c48ed9"
}
}
}Dictionary of (webhook-)events objects indexed by ID.
Show child attributes
Represents a change made to the state of a resource.
Show child attributes
Indicates which type of event occurred. Usually concatenates the name of the object type with the kind of change ("created", "updated" or "deleted").
"confirmation""employee.created"
Timezoned timestamp of the moment when this event occurred.
URL of the tenant. Ensures unicity of {source} + {id}.
Representation of the resource whose change triggered the event. Please note that this is the representation of the resource just after the change, and it may have changed again since then.
Unique string identifier of this event.
"event"Absolute URL for the event resource.
API version of the resource representation contained in data. Not to be confused with the API version of the representation of this present event, which is indicated in the Api-Version HTTP header.
Business Establishment of the Resource in the Event, if there is one.
Show child attributes
Only sent on *.updated event topics. Keys are the list of modified attributes. Values are the values of these attributes before the change.
This is only available for some resources. If a value in the dictionary is NULL, then it can either mean that the original value was NULL or that we can't retrieve them for this Resource.
{
"id": "123",
"type": "event",
"url": "https://example.ilucca.net/lucca-api/events/123",
"apiVersion": "2024-01-01",
"topic": "leave.updated",
"occurredAt": "2024-02-01T09:34:23.001Z",
"source": "https://example.ilucca.net",
"businessEstablishment": {
"id": "12",
"type": "business-establishment",
"url": "https://example.ilucca.net/lucca-api/business-establishments/12"
},
"data": {
"id": "875",
"type": "leave",
"url": "https://example.ilucca.net/lucca-api/leaves/875",
"startsOn": "2024-02-01",
"startPosition": "firstHalfDay",
"endsOn": "2024-02-02",
"endPosition": "secondHalfDay",
"employee": {
"id": "416",
"type": "employee",
"url": "https://example.ilucca.net/lucca-api/employees/416"
},
"leaveAccount": {
"id": "56",
"type": "leave-account",
"url": "http://example.ilucca.net/lucca-api/leave-account/56"
},
"days": [
{
"date": "2024-02-01",
"range": "allDay",
"duration": { "iso": "P1D", "value": 1, "unit": "days" }
},
{
"date": "2024-02-02",
"range": "allDay",
"duration": { "iso": "P1D", "value": 1, "unit": "days" }
}
],
"totalDuration": { "iso": "P2D", "value": 2, "unit": "days" },
"status": "tentative",
"details": null,
"createdAt": "2024-01-01T08:23:56.234Z",
"lastUpdatedAt": "2024-01-01T08:23:56.234Z"
},
"previousAttributes": { "status": "confirmed" },
"links": {
"retry": {
"href": "https://example.ilucca.net/lucca-api/webhook-deliveries"
}
}
}Was this page helpful?