> ## Documentation Index
> Fetch the complete documentation index at: https://www.artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get latest Kafka topic message

> Retrieves the newest message from partition 0, including its contents. Results are not cached. Only available when the company allows reading Kafka messages.

`GET /kafka-clusters/{uuid}/topics/{topic}/latest-message`

## Authorization

* `Authorization` (header): API key passed as a Bearer token in the Authorization header.

## Path parameters

* `topic` (string, required)
* `uuid` (string, required)

## Example request

```bash
curl --request GET \
  --url https://api.artie.com/kafka-clusters/{uuid}/topics/{topic}/latest-message \
  --header 'Authorization: Bearer <token>'
```

## Responses

### 200 OK

* `headers` (Record<string, string<base64>> | null)
* `key` (string<base64> | null)
* `offset` (integer<int64>, required)
* `partition` (integer, required)
* `timestamp` (string<date-time>, required)
* `topic` (string, required)
* `value` (string<base64> | null)

```json
{
  "headers": {
    "key": "<string>"
  },
  "key": "<string>",
  "offset": 123,
  "partition": 123,
  "timestamp": "2023-11-07T05:31:56Z",
  "topic": "<string>",
  "value": "<string>"
}
```

### 204 No Content

### 403 Forbidden

### 404 Not Found

### 500 Internal Server Error