---
title: "Get message history"
method: GET
path: "/messages/{messageId}/history"
tags: ["Messages"]
---

# Get message history

`GET /messages/{messageId}/history`

## Request

- Base URL: `https://inboxapp.com/api/v2`
- URL: `https://inboxapp.com/api/v2/messages/{messageId}/history`
- Auth: HTTP bearer

Every version of the message's content, from its edits.

## Path parameters

- `messageId` string, required

## Response `200`

OK

- MessageHistory
  - `versions` object[], required: The original first, at the message's `createdAt`, then each edit.
    - `content` string, required
    - `createdAt` string, date-time, required
    - `origin` 'inbox' | 'platform' | 'api', nullable, required: Where the change was made: `inbox` in the app, `api` through this API, `platform` directly on the platform. Null on older records.
  - `deletion` object, nullable, required: Null while the message isn't deleted.
    - `deletedAt` string, date-time, required
    - `scope` 'self' | 'all', required: `self` deletes for the account link only, which needs `message:delete:self`. `all` unsends for every participant, which needs `message:unsend`.
    - `origin` 'inbox' | 'platform' | 'api', nullable, required: Where the change was made: `inbox` in the app, `api` through this API, `platform` directly on the platform. Null on older records.
  - `times` 'platform' | 'observed', required: Whether edit and deletion times come from the platform, or are when Inboxapp noticed the change.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

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