---
title: "Get App Attempt Stats"
method: GET
path: "/api/v1/stats/app/{app_id}/attempt"
tags: ["Statistics"]
---

# Get App Attempt Stats

`GET /api/v1/stats/app/{app_id}/attempt`

Returns application-level statistics on message attempts

## Path parameters

- `app_id` string, required — The Application's ID or UID.

## Query parameters

- `startDate` string, date-time, nullable — Filter the range to data starting from this date.
- `endDate` string, date-time, nullable — Filter the range to data ending by this date.
- `period` 'OneDay' | 'OneHour' | 'FiveMinutes' — Period length for a statistics data point.
- `event_types` string[], nullable — Filter response based on the event type

## Response `200`

- AttemptStatisticsResponse
  - `startDate` string, date-time, required
  - `endDate` string, date-time, required
  - `period` 'OneDay' | 'OneHour' | 'FiveMinutes', required — Period length for a statistics data point.
  - `data` AttemptStatisticsData, required
    - `successCount` integer[], nullable
    - `failureCount` integer[], nullable
    - `canceledCount` integer[], nullable

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation Error
- `429` — Too Many Requests

---

[API](https://skmtc.net/svix/apis/svix-api.md) · [All operations](https://skmtc.net/svix/apis/svix-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/svix/svix-api/versions/16dbcc056c48/schema)
