---
title: "Report Web Inbox Message metrics"
method: POST
path: "/api/v1/messages/metrics"
tags: ["Message"]
---

# Report Web Inbox Message metrics

`POST /api/v1/messages/metrics`

## Request body

- MessageMetricCollectionRequest
  - `tenantId` integer — TenantId Id
  - `brandId` string, uuid — Brand Id.
  - `messageMetrics` MetricRequest[], nullable
    - `customerId` string, nullable
    - `now` string, date-time, nullable
    - `event` 0 | 1 | 2 | 3 | 4 — 0 = open (Message metrics event that the message was 'opened'.) 1 = click (Message metrics event that the message was 'clicked'.) 2 = deleted (Message metrics event that the message was 'deleted'.) 3 = processed 4 = delivered
    - `engagementId` string, nullable
    - `executionDateTime` string, date-time, nullable
    - `campaignKind` 0 | 1 | 2 — 0 = None (No campaign (default).) 1 = Scheduled (Scheduled campaign.) 2 = Triggered (Triggered campaign.)
    - `messageId` string, nullable

## Response `200`

If the request is successful.

## Other responses

- `400` — This response will be returned if the request cannot be fulfilled.
- `401` — This response will be returned if the request is not authorized to access this resource.
- `500` — This response will be returned if there is an error in the system that prevents the operation from being completed.

---

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