---
title: "Analytics"
description: "Delivery counts for one app and environment."
canonical: https://docs.notifiable.sh/api/analytics
source: https://docs.notifiable.sh/api/analytics.md
---

# Analytics

Delivery counts for one app and environment.

These routes are the public API. Send `Authorization: Bearer` with a workspace server API key. The key can act on every app in the workspace. A route that names an app uses that app id. `environment` is `development` or `production`.

## `GET /api/v1/public/apps/{app}/environments/{environment}/analytics`

The analytics were found.

Path

- `app` — App id in this workspace.
- `environment` — `development` or `production`.

Query

- `from` (date)
- `to` (date)

Responses

- `200` `ANALYTICS_FETCHED` — The analytics were found.
  - `targeted` (integer, required)
  - `delivered` (integer, required)
  - `failed` (integer, required)
  - `skipped` (integer, required)
  - `opened` (integer, required)
  - `openRate` (string, required)
- `401` `INVALID_API_KEY` — The API key is invalid.
- `404` `APP_NOT_FOUND` — The app could not be found.
- `422` `VALIDATION_FAILED` — The request contains invalid fields.
- `429` `RATE_LIMIT_EXCEEDED` — Too many requests. Please try again later.
- `500` `SERVER_ERROR` — Something went wrong. Please try again.
