---
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.

## Response `200`

Records sent successfully.

## Other responses

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

## Changes

- **2020-09-16** `fbc1a0d00670` — 2 info
  - request property `records/items/value` list-of-types was widened by adding types `null` to media type `application/vnd.kafka.binary.v2+json`
  - request property `records/items/value` list-of-types was widened by adding types `null` to media type `application/vnd.kafka.json.v2+json`
- **2020-08-31** `ba212c8bc53f` — 2 info
  - added the new optional request property `records/items/headers` (media type: application/vnd.kafka.json.v2+json)
  - added the new optional request property `records/items/headers` (media type: application/vnd.kafka.binary.v2+json)
- **2019-05-27** `574cafef42d9` — 1 breaking, 5 info
  - added required request body
  - api tag `Producer` added
  - api tag `Topics` added
  - media type `application/json` was changed to a more specific media type `application/vnd.kafka.v2+json` for the response status `200`
  - …2 more
- **2019-05-21** `c10758b73ea6` — 2 breaking, 1 warning, 4 info
  - removed the request body
  - media type `application/vnd.kafka.v2+json` was changed to a more general media type `application/json` for the response status `200`
  - deleted the `query` request parameter `async`
  - api tag `Producer` removed
  - …3 more

[Change 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/6fa041660d32/schema)
