---
title: "Retrieve inbox placement analytics stats by test id"
method: POST
path: "/api/v2/inbox-placement-analytics/stats-by-test-id"
tags: ["InboxPlacementAnalytics"]
---

# Retrieve inbox placement analytics stats by test id

`POST /api/v2/inbox-placement-analytics/stats-by-test-id`

Provides aggregated inbox, spam and category counts for specified test IDs


Requires one of the following scopes: `inbox_placement_analytics:read`, `inbox_placement_analytics:all`, `all:read`, `all:all`

## Request body

- object
  - `test_ids` string[], required
  - `date_from` string
  - `date_to` string
  - `recipient_geo` number[]
  - `recipient_type` number[]
  - `recipient_esp` number[]
  - `sender_email` string

## Response `200`

Default Response

- object[]
  - `test_id` string, uuid, required
  - `count` number, required
  - `spam_count` number, required
  - `spam_percent` number, required
  - `inbox_count` number, required
  - `inbox_percent` number, required
  - `category_count` number, required
  - `category_percent` number, required

## Other responses

- `401` — This request is unauthorized (either the Authorization header is missing or invalid, or the API key has been revoked)
- `402` — This request cannot be fulfilled because the workspace does not have an active paid plan
- `404` — The requested resource was not found
- `429` — You have exceeded the rate limit. Please check the rate limit docs for more information.

---

[API](https://skmtc.net/instantly/apis/api-explorer.md) · [All operations](https://skmtc.net/instantly/apis/api-explorer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/instantly/api-explorer/revisions/378d1e253fe7/schema)
