---
title: "Get contact engagement metrics"
method: GET
path: "/v1/contacts/{id}/engagement"
tags: ["Contacts"]
---

# Get contact engagement metrics

`GET /v1/contacts/{id}/engagement`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/contacts/{id}/engagement`
- Auth: API key in header `x-api-key`

Returns aggregated engagement metrics for a contact, including message counts and active conversation totals.

## Path parameters

- `id` string, required

## Response `200`

Success

- object
  - `totalMessages` integer, required
  - `messagesSent` integer, required
  - `messagesReceived` integer, required
  - `activeConversations` integer, required
  - `lastActivityAt` string, nullable, required
  - `channelsUsed` object, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
