Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Kafka clusters

Get latest Kafka topic message

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

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

Authorizations

  • Authorizationstringheaderrequired

    API key passed as a Bearer token in the Authorization header.

Request

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

Path parameters

  • topicstringrequired
  • uuidstringrequired

Responses

200OKapplication/json

  • headersRecord<string, string<base64>> | null
  • keystring<base64> | null
  • offsetinteger<int64>required
  • partitionintegerrequired
  • timestampstring<date-time>required
  • topicstringrequired
  • valuestring<base64> | null

204No Content

403Forbidden

404Not Found

500Internal Server Error

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

Was this page helpful?