Skip to main content
GET
/
webhooks
/
{id}
/
logs
curl --request GET \
  --url 'https://api.autosend.com/v1/webhooks/60d5ec49f1b2c72d9c8b1234/logs?page=1&limit=50' \
  --header 'Authorization: Bearer AS_your-api-key'
{
  "success": true,
  "data": {
    "logs": [
      {
        "_id": "60d5ec49f1b2c72d9c8b9999",
        "webhookId": "60d5ec49f1b2c72d9c8b1234",
        "projectId": "60d5ec49f1b2c72d9c8b1111",
        "event": "email.delivered",
        "url": "https://example.com/webhooks/autosend",
        "statusCode": 200,
        "success": true,
        "attempts": 1,
        "duration": 142,
        "deliveredAt": "2026-06-12T10:15:00.000Z",
        "createdAt": "2026-06-12T10:15:00.000Z",
        "updatedAt": "2026-06-12T10:15:00.000Z"
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 50,
    "totalPages": 1
  }
}
This endpoint accepts a project API key (AS_ prefix). Returns the delivery attempt history for a webhook, most recent first.
curl --request GET \
  --url 'https://api.autosend.com/v1/webhooks/60d5ec49f1b2c72d9c8b1234/logs?page=1&limit=50' \
  --header 'Authorization: Bearer AS_your-api-key'
{
  "success": true,
  "data": {
    "logs": [
      {
        "_id": "60d5ec49f1b2c72d9c8b9999",
        "webhookId": "60d5ec49f1b2c72d9c8b1234",
        "projectId": "60d5ec49f1b2c72d9c8b1111",
        "event": "email.delivered",
        "url": "https://example.com/webhooks/autosend",
        "statusCode": 200,
        "success": true,
        "attempts": 1,
        "duration": 142,
        "deliveredAt": "2026-06-12T10:15:00.000Z",
        "createdAt": "2026-06-12T10:15:00.000Z",
        "updatedAt": "2026-06-12T10:15:00.000Z"
      }
    ],
    "total": 1,
    "page": 1,
    "limit": 50,
    "totalPages": 1
  }
}

Authorizations

Authorizations
string | header
required
Project API key header of the form Bearer AS_<key>.

Path Parameters

id
string
required
The unique identifier of the webhook.Example: "60d5ec49f1b2c72d9c8b1234"

Query Parameters

page
integer
Page number for pagination.Default: 1
limit
integer
Number of logs to return per page.Default: 50Range: 1100

Response

Delivery logs retrieved successfully (200)
success
boolean
Indicates if the request was successful
data
object
Paginated delivery logs

Error Responses

404 - Webhook not found
object
Returned when no webhook with the given ID exists in the project.
{
  "success": false,
  "error": {
    "message": "Webhook not found",
    "code": "WEBHOOK_NOT_FOUND",
  }
}