# Can’t produce to Confluent Kafka topic through Kafka REST API

**URL:** <https://forum.confluent.io/t/can-t-produce-to-confluent-kafka-topic-through-kafka-rest-api/6193>\
**Category:** Clients\
**Created:** [5 October 2022 13:53 UTC](https://forum.confluent.io/t/can-t-produce-to-confluent-kafka-topic-through-kafka-rest-api/6193 "2022-10-05T13:53:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mapovoa](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mapovoa](https://forum.confluent.io/u/mapovoa)\
**Post date:** [5 October 2022 13:53 UTC](https://forum.confluent.io/t/can-t-produce-to-confluent-kafka-topic-through-kafka-rest-api/6193/1 "2022-10-05T13:53:05Z")

</div>

Hi,

I have been using cloud confluent kafka. When I produce a record in the topic via RestAPI without the Type=JSON I get the message below:

{

“error\_code”: 422,

“message”: “Error: 42206 : Payload error. Schema Registry must be configured when using schemas.”

}

I want to use kafka registry. How can I do it?

[https://pkc-ymrq7.us-east-2.aws.confluent.cloud:443/kafka/v3/clusters/lkc-o3dw6j/topics/demo\_0/records](https://pkc-ymrq7.us-east-2.aws.confluent.cloud/kafka/v3/clusters/lkc-o3dw6j/topics/demo_0/records)

payload:

{

“value”: {

“data”: “foobar”

}

}

---

<div class="post-metadata">

**Author:** ![SaiJyothsnaHL](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/saijyothsnahl/32/3102_2.png) [@SaiJyothsnaHL](https://forum.confluent.io/u/SaiJyothsnaHL)\
**Post date:** [10 July 2023 06:44 UTC](https://forum.confluent.io/t/can-t-produce-to-confluent-kafka-topic-through-kafka-rest-api/6193/2 "2023-07-10T06:44:38Z")

</div>

@mapovoa Is this issue resolved. I’m also facing same issue.
