---
title: "GET /api/social/chat/{id}/history/"
method: GET
path: "/api/social/chat/{id}/history/"
tags: ["api"]
---

# GET /api/social/chat/{id}/history/

`GET /api/social/chat/{id}/history/`

## Request

- Base URL: `https://api.jeuxcracks.fr`
- URL: `https://api.jeuxcracks.fr/api/social/chat/{id}/history/`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/jeuxcracks/apis/jeuxcracks-api/docs/api/social/chat/:id/history/get.ts> (a function with typed inputs; its response is checked against the schema)

Récupérer l'historique avec un ami (PK = User ID de l'ami).

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

OK

- ChatMessage[]
  - `id` integer
  - `sender` ChatParticipant
    - `id` integer
    - `pseudo` string, required
  - `receiver` ChatParticipant
    - `id` integer
    - `pseudo` string, required
  - `content` string, required
  - `timestamp` string, date-time
  - `is_read` boolean
  - `client_id` string, uuid, nullable, required

---

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