---
title: "Get all Viber Session Messages by a Phone Number"
method: POST
path: "/viber/session"
---

# Get all Viber Session Messages by a Phone Number

`POST /viber/session`

## Query parameters

- `page` integer
- `size` integer
- `dateStart` string, date
- `dateEnd` string, date

## Request body

- object
  - `phoneNumber` string — The phone number. Format with a '+' and country code e.g., +3069485xxxxx (E.164 format).

## Response `200`

200

- object
  - `content` object[]
    - `sessionId` string
    - `sessionMessages` object[]
      - `trackingId` string
      - `to` string
      - `from` string
      - `country` string
      - `status` object
        - `status` string
        - `reason` object
          - `detailedStatus` string
          - `description` string
        - `date` string
      - `applicationName` string
      - `direction` string
      - `ttl` string
      - `message` string
      - `imageUrl` string
      - `file` object
        - `fileUrl` string
        - `fileType` string
        - `fileName` string
      - `price` number
  - `last` boolean
  - `totalPages` integer
  - `totalElements` integer
  - `numberOfElements` integer
  - `first` boolean
  - `size` integer
  - `number` integer

## Other responses

- `400` — 400

---

[API](https://skmtc.net/routee/apis/auth.md) · [All operations](https://skmtc.net/routee/apis/auth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/routee/auth/versions/5cef04e8f7d8/schema)
