Stashbase
Webhooks (env. scope)

List logs

List event logs of the selected webhook.

GET
/v1/environment/webhooks/{webhook_id}/logs

List event logs of the selected webhook.

Path Parameters

webhook_id*string

The id of the webhook.

Query Parameters

page?number

The selected page number.

Range1 <= value <= 1000
page_size?number

The number of items per page, between 2 and 30, default is 10.

Default10
Range2 <= value <= 30

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/environment/webhooks/string/logs"
{
  "data": [
    {
      "id": "whlog_1Ve7ijuUMuwh9fb1j7CyBq",
      "processed_at": "2024-03-01T10:10:00Z",
      "attempt": 1,
      "status": 200,
      "error": null
    },
    {
      "id": "whlog_2Ve7ijuUMuwh9fb1j7CyBq",
      "processed_at": "2024-03-21T09:10:00Z",
      "attempt": 1,
      "status": 200,
      "error": null
    },
    {
      "id": "whlog_3Ve7ijuUMuwh9fb1j7CyBq",
      "processed_at": "2024-03-21T09:05:00Z",
      "attempt": 1,
      "status": 200,
      "error": null
    },
    {
      "id": "whlog_4Ve7ijuUMuwh9fb1j7CyBq",
      "processed_at": "2024-03-20T12:25:36Z",
      "attempt": 2,
      "status": null,
      "error": "ECONNABORTED"
    },
    {
      "id": "whlog_5Ve7ijuUMuwh9fb1j7CyBq",
      "processed_at": "2024-03-20T12:24:36Z",
      "attempt": 1,
      "status": null,
      "error": "ECONNABORTED"
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 10,
    "total_items": 20,
    "total_pages": 2,
    "next_page": 2,
    "prev_page": null
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}