---
title: "Retrieve messages by AI contact with pagination"
method: GET
path: "/api/public/contact/v2/{aiContactId}/messages"
tags: ["Contact"]
---

# Retrieve messages by AI contact with pagination

`GET /api/public/contact/v2/{aiContactId}/messages`

Replaces the old endpoint /public/ai-message/:aiContactId

## Path parameters

- `aiContactId` string, required

## Query parameters

- `page` number, required

## Headers

- `x-api-key` string, required

## Response `200`

Messages retrieved successfully.

## Other responses

- `404` — AI contact not found.

---

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