---
title: "Endpoint Stats"
method: GET
path: "/endpoint/{endpoint_id}/stats"
tags: ["Endpoint"]
---

# Endpoint Stats

`GET /endpoint/{endpoint_id}/stats`

Get basic statistics for the endpoint, since max 28 days. Will return amount of messages sent with success, failed or still in progress.

## Path parameters

- `endpoint_id` string, required — The ep's ID or UID To retrieve your endpoints ids, use GET /endpoint.

## Query parameters

- `since` string, date-time, nullable — Filter the range to data starting from this date
- `until` string, date-time, nullable — Filter the range to data ending by this date

## Response `200`

- EndpointStats
  - `success` integer, required — Number of successful messages sent to this endpoints in the time period.
  - `pending` integer, required — Number of messages sent to this endpoints in the time period, that are still pending.
  - `sending` integer, required — Number of messages sent to this endpoints in the time period, that are still in sending state (messages can be retried several times).
  - `fail` integer, required — Number of failed messages sent to this endpoints in the time period (messages have been retried several time before being failed).

## Other responses

- `400` — Bad request
- `403` — Forbidden
- `404` — Not Found. Endpoint not found.
- `429` — Too Many Requests
- `500` — Internal Error

---

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