---
title: "POST /topics/{topicname}"
method: POST
path: "/topics/{topicname}"
tags: ["Topics", "Producer"]
---

# POST /topics/{topicname}

`POST /topics/{topicname}`

Sends one or more records to a given topic, optionally specifying a partition, key, or both.

## Query parameters

- `async` boolean

## Response `200`

Records sent successfully.

## Other responses

- `404` — The specified topic was not found.
- `422` — The record list is not valid.

## Changes

- **2024-07-23** `5b3f60639a50` — 3 info
  - added the new optional request property `records/items/timestamp` (media type: application/vnd.kafka.json.v2+json)
  - added the new optional request property `records/items/timestamp` (media type: application/vnd.kafka.binary.v2+json)
  - added the new optional request property `records/items/timestamp` (media type: application/vnd.kafka.text.v2+json)
- **2024-04-26** `96d250312f18` — 6 info
  - request property `records/items/key` list-of-types was widened by adding types `array` to media type `application/vnd.kafka.binary.v2+json`
  - request property `records/items/key` list-of-types was widened by adding types `array` to media type `application/vnd.kafka.json.v2+json`
  - request property `records/items/key` list-of-types was widened by adding types `array` to media type `application/vnd.kafka.text.v2+json`
  - request property `records/items/value` list-of-types was widened by adding types `array` to media type `application/vnd.kafka.binary.v2+json`
  - …2 more
- **2024-03-04** `49b1d59e2cd4` — 1 info
  - added the media type `application/vnd.kafka.text.v2+json` to the request body
- **2023-05-09** `8f164cc993c9` — 1 info
  - added the new optional `query` request parameter `async`
- …earlier changes not shown

[Full history](https://skmtc.dev/strimzi/apis/http-bridge-api-reference/changes/topics/:topicname/post.md)

---

[API](https://skmtc.dev/strimzi/apis/http-bridge-api-reference.md) · [All operations](https://skmtc.dev/strimzi/apis/http-bridge-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/strimzi/http-bridge-api-reference/revisions/f949bf0fadb1/schema)
