Skip to main content
GET
/
lucca-api
/
webhook-delivery-attempts
List 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"
          }
        }
      }
    }
  }
}
Scopes: 
    • webhook-deliveries.readonly
    • webhook-deliveries.readwrite
Business-establishments: Any.

Authorizations

Authorization
string
header
required

The Lucca API implements the oAuth 2 protocol with the client-credentials-flow. Refer to RFC8725.

Headers

Api-Version
enum<string>
required

Set the API version.

Available options:
TitleConst
2024-11-01
Examples:

"2024-11-01"

If-None-Match
string

Only execute the request if current cached version of the resource does not match the one given here.

Examples:

"W/q5sd4w2x1c1gfdg"

If-Match
string

Only execute the request if current cached version of the resource matches the one given here. Useful to avoid concurrency conflicts.

Examples:

"W/q5sd4w2x1c1gfdg"

Accept-Encoding
string

List of compression algorithms you support.

Query Parameters

include
enum<string>[]

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.

Response

OK

webhook-delivery-attempts Embedded resources on a webhook-delivery-attempt(s) response. A collection of webhook-delivery-attempt resources. Links on a collection.

type
string
required
Allowed value: "webhook-delivery-attempts"
url
string<uri>
required
items
webhook-delivery-attempt · object[]
required
Maximum length: 100
embedded
object | null
totalCount
integer | null

Total number of webhook-delivery-attempt resources across all pages that satisfy query parameters.

Required range: x >= 0

Links to related resources