---
ai:
  exclude: true
search:
  exclude: true
  tags:
    - Analytics
    - GET
seo:
  description: >-
    Returns message, destination, bandwidth, and error… Reference for the GET
    /api/v2/analytics/delivery endpoint in the Anlyon API: earlier namespaces.
  noindex: true
sidebar:
  label: Get delivery analytics
  badge: GET
title: Get delivery analytics
type: openapi-operation
---
Returns message, destination, bandwidth, and error analytics. The messages are event-webhook deliveries.

`GET /api/v2/analytics/delivery`

**Responses**

- `200` — Message (event-webhook delivery) analytics returned.
- `400` — Bad Request - Invalid input data
- `401` — Unauthorized - Invalid or missing API key
- `403` — Authenticated credential lacks the required scope or workspace access.
- `429` — Too Many Requests - Rate limit exceeded. A workspace's API requests are limited per minute and per UTC clock hour by plan; \`Retry-After\` says when to try again, and an hourly refusal names the limit and when the count resets. Successful responses carry the same limits in \`X-RateLimit-Limit\`, \`X-RateLimit-Remaining\`, \`X-RateLimit-Reset\` (the minute) and \`X-RateLimit-Limit-Hour\`, \`X-RateLimit-Remaining-Hour\`, \`X-RateLimit-Reset-Hour\` (the hour).

Response example, 200:

```json
{
  "success": true,
  "data": {
    "range": {
      "startDate": "2019-08-24T14:15:22Z",
      "endDate": "2019-08-24T14:15:22Z",
      "granularity": "hour",
      "truncated": true,
      "retentionDays": 1
    },
    "scope": {
      "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c",
      "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563"
    },
    "messages": {
      "published": 1000,
      "delivered": 950,
      "failed": 30,
      "pending": 20,
      "successRate": 95,
      "averageDeliveryTime": 0
    },
    "messageSeries": [
      {
        "period": "string",
        "published": 120,
        "delivered": 116,
        "failed": 4
      }
    ],
    "bandwidthBytes": 0,
    "topUrls": [
      {
        "url": "https://example.com/webhook",
        "messageCount": 500,
        "successCount": 490,
        "failureCount": 10,
        "successRate": 98
      }
    ],
    "errors": [
      {
        "errorMessage": "string",
        "count": 0
      }
    ]
  }
}
```

Response example, 400:

```json
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid request data",
    "details": {
      "url": "Invalid URL format"
    }
  }
}
```

Response example, 401:

```json
{
  "success": false,
  "error": {
    "code": "AUTHENTICATION_ERROR",
    "message": "Invalid or missing API key"
  }
}
```

Response example, 429:

```json
{
  "success": false,
  "error": {
    "code": "RATE_LIMIT_EXCEEDED",
    "message": "Rate limit exceeded. Please try again later."
  }
}
```
