---
title: "GET /v2/messages"
method: GET
path: "/v2/messages"
tags: ["messages"]
---

# GET /v2/messages

`GET /v2/messages`

Returns the list of messages for current user according to given parameters/filter

## Query parameters

- `discussion_id` string
- `limit` integer
- `offset` integer
- `msg_id` string
- `range[]` string

## Headers

- `X-Caliopen-PI` string, required
- `X-Caliopen-IL` string, required

## Response `200`

Messages returned

- object
  - `total` integer — number of messages found for user for the given parameters
  - `messages` MessageV2[]
    - `attachments` Attachment[]
      - `content_type` string
      - `is_inline` boolean
      - `file_name` string
      - `size` integer
      - `temp_id` string
      - `url` string
      - `mime_boundary` string
    - `body` string
    - `body_is_plain` boolean
    - `date` string, date-time
    - `date_delete` string, date-time
    - `date_insert` string, date-time
    - `date_sort` string, date-time
    - `discussion_id` string
    - `external_references` ExternalReferences
      - `ancestors_id` string
      - `message_id` string
      - `parent_id` string
    - `excerpt` string
    - `user_identities` string[]
    - `importance_level` integer
    - `is_answered` boolean
    - `is_draft` boolean
    - `is_unread` boolean
    - `is_received` boolean
    - `message_id` string
    - `parent_id` string
    - `participants` Participant[]
      - `address` string, required
      - `contact_ids` string[]
      - `label` string
      - `protocol` string, required
      - `type` 'To' | 'Cc' | 'Bcc' | 'From' | 'Reply-To' | 'Sender', required
    - `privacy_features` PrivacyFeatures
    - `pi` PI
      - `technic` integer
      - `context` integer
      - `comportment` integer
      - `version` integer
    - `pi_message` PIMessage
      - `content` integer
      - `transport` integer
      - `social` integer
    - `raw_msg_id` string
    - `subject` string
    - `tags` string[]
    - `protocol` string
    - `user_id` string

## Other responses

- `400` — malform request
- `401` — Unauthorized access

---

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