Skip to content

Endpoints

The base URL for the Widged API is https://api.widged.io/.

Retrieve a single event by id

Provides information about the event.

GET /v1/events/:id

Path Parameters

id — Unique identifier of the event (evt).

Response

  • HTTP 200 - Returns a JSON object representing the event.
  • HTTP 404 - Event not found.

Example response (200)

json
{
    "id": "evt_s_UsiKbXy_pDhUmVgkAJiN4bba1ihMmixX8iZp55AU",
    "name": "widget_flow_widget_shown",
    "createdAt": "2025-08-02T12:34:56.789Z",
    "widgetId": "qwertyui",
    "sessionId": "ses_c_UsiKaep_2ShcvvEjwZyln1nD9Ycdq0t4hYNvO1Ih",
    "pageloadId": "pgld_c_UsiKaeo_Pj6RxE0XtY2RFKqgWHYGZgmipan0AI8g",
    "leadId": "lead_c_UhgTDnj_TxoTFB5q8kTNR5xZvukWeXdT0SJDVRFh",
    "payload": {
        "url": "https://widged.io/",
        "time": "2025-08-02T12:34:56.789Z"
    }
}

Retrieve a single collected record by id

Provides information about the collected record.

GET /v1/records/:id

Path Parameters

id — Unique identifier of the record (rec).

Response

  • HTTP 200 - Returns a JSON object representing the collected record.
  • HTTP 404 - Event not found.

Example response (200)

json
{
    "id": "rec_s_UsiL2d8_VqVlXCLEHK91xHp4E7NHMZ6bVH34kSzu",
    "createdAt": "2025-08-02T12:34:56.789Z",
    "widgetId": "qwertyui",
    "sessionId": "ses_c_UsiL1Tr_Ms3jWBBg4rcIJazBUSktOezdAhgTPKJu",
    "pageloadId": "pgld_c_UsiL1Tq_2NjALQTlTdSmysNaqytyAW1C03ItYiYq",
    "leadId": "lead_c_UhgTDnj_TxoTFB5q8kTNR5xZvukWeXdT0SJDVRFh",
    "partition": "Fierce Kangaroo 5037",
    "data": {
        "First Name": "John",
        "Last Name": "Doe"
    }
}

Search events

Provides information about the events matching your request.

POST /v1/events/search

Request

See search request.

ParameterSupported operatorsDescription
ideq, neqUnique identifier of the event (evt)
createdAtgt, gte, lt, lteWhen the event was created
sessionIdeq, neqUnique identifier of the session (ses)
pageloadIdeq, neqUnique identifier of the pageload (pgld)
leadIdeq, neqUnique identifier of the lead (lead)
nameeq, neqName of the event (see Events)

Response

  • HTTP 200 - Returns a JSON object with the following fields:
    • objects – a list of matching items;
    • total – the total number of items matching your query.
  • HTTP 400 - Request is not valid (for example, not a valid JSON).
  • HTTP 422 - Something wrong with your request (see error message).

Example response (200)

json
{
    "objects": [
        {
            "id": "evt_s_UsiKbXy_pDhUmVgkAJiN4bba1ihMmixX8iZp55AU",
            "name": "widget_flow_widget_shown",
            "createdAt": "2025-08-02T12:34:56.789Z",
            "widgetId": "qwertyui",
            "sessionId": "ses_c_UsiKaep_2ShcvvEjwZyln1nD9Ycdq0t4hYNvO1Ih",
            "pageloadId": "pgld_c_UsiKaeo_Pj6RxE0XtY2RFKqgWHYGZgmipan0AI8g",
            "leadId": "lead_c_UhgTDnj_TxoTFB5q8kTNR5xZvukWeXdT0SJDVRFh",
            "payload": {
                "url": "https://widged.io/",
                "time": "2025-08-02T12:34:56.789Z"
            }
        },
        ...
    ],
    "total": 999
}

Search collected records

Provides information about the collected records matching your request.

POST /v1/records/search

Request

See search request.

ParameterSupported operatorsDescription
ideq, neqUnique identifier of the record (rec)
createdAtgt, gte, lt, lteWhen the record was created
sessionIdeq, neqUnique identifier of the session (ses)
pageloadIdeq, neqUnique identifier of the pageload (pgld)
leadIdeq, neqUnique identifier of the lead (lead)
partitioneq, neqName of the partition
datalike, nlikeCollected record data
data.*eq, neqCollected record data (one specific property)

Response

  • HTTP 200 - Returns a JSON object with the following fields:
    • objects – a list of matching items;
    • total – the total number of items matching your query.
  • HTTP 400 - Request is not valid (for example, not a valid JSON).
  • HTTP 422 - Something wrong with your request (see error message).

Example response (200)

json
{
    "objects": [
        {
            "id": "rec_s_UsiL2d8_VqVlXCLEHK91xHp4E7NHMZ6bVH34kSzu",
            "createdAt": "2025-08-02T12:34:56.789Z",
            "widgetId": "qwertyui",
            "sessionId": "ses_c_UsiL1Tr_Ms3jWBBg4rcIJazBUSktOezdAhgTPKJu",
            "pageloadId": "pgld_c_UsiL1Tq_2NjALQTlTdSmysNaqytyAW1C03ItYiYq",
            "leadId": "lead_c_UhgTDnj_TxoTFB5q8kTNR5xZvukWeXdT0SJDVRFh",
            "partition": "Fierce Kangaroo 5037",
            "data": {
                "First Name": "John",
                "Last Name": "Doe"
            }
        },
        ...
    ],
    "total": 999
}