List all events

GET /api/v1/events

Returns a list of events with pagination (20 events per page). The events are sorted by creation date, with the most recent event appearing first.

Query parameters

  • limit integer

    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

    Minimum value is 1, maximum value is 100. Default value is 10.

Responses

  • 200 application/json

    Returns an array of event objects. If no more events are available, the resulting array will be empty.

    Hide response attributes Show response attributes object
    • created integer(int64)

      Time at which the object was created. Measured in seconds since the Unix epoch.

    • data object

      Object containing data associated with the event.

    • id object
    • type string

      Description of the event (e.g., application.started or policy.active).

GET /api/v1/events
curl \
 -X GET https://api.1099policy.com/api/v1/events
Response examples (200)
[
  {
    "created": 1646818364,
    "data": {
      "created": 1646818364,
      "effective_date": 1646818364,
      "expiration_date": 1678334737,
      "id": "pl_WzFRszJhoY",
      "object": "policy",
      "pdf_url": "http://ten99policy.s3.amazonaws.com/1099policy-coi-sample.pdf",
      "quote": "qt_5DciVga8Kt",
      "status": "active"
    },
    "id": "ev_Q2kA9Nsub9jKcFJqcBSv2u",
    "type": "policy.active"
  }
]