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

- **2025-05-29** `426d9b9215e9` — 3 breaking, 6 info
  - the request property `records/items/value` became not nullable (media type: application/vnd.kafka.json.v2+json)
  - the request property `records/items/value` became not nullable (media type: application/vnd.kafka.binary.v2+json)
  - the request property `records/items/value` became not nullable (media type: application/vnd.kafka.text.v2+json)
  - request property `records/items/value` list-of-types was widened by adding types `null` to media type `application/vnd.kafka.binary.v2+json`
  - …5 more
- **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)
- …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/426d9b9215e9/schema)
