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

- **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/574cafef42d9/schema)
