# Creating a Topic using Ruby

**URL:** https://meta.discourse.org/t/creating-a-topic-using-ruby/167556
**Category:** Development
**Created:** [October 18, 2020, 10:57pm UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556 "2020-10-18T22:57:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [October 18, 2020, 10:57pm UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556/1 "2020-10-18T22:57:08Z")

</div>

G’day

I’m looking for some sample ruby code to create a topic with tags, in a category with one boxing of links where possible.

Is there a repository of example ruby code to use with Discourse?

Cheers and thanks!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 18, 2020, 11:59pm UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556/2 "2020-10-18T23:59:13Z")

</div>

See:

> **[Discourse API Docs](https://docs.discourse.org/)**

---

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [October 19, 2020, 12:03am UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556/3 "2020-10-19T00:03:18Z")

</div>

That looks like the API documentation - is there Ruby documentation?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 19, 2020, 12:05am UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556/4 "2020-10-19T00:05:08Z")

</div>

There is the Discourse API gem see: [GitHub - discourse/discourse\_api: Ruby API for Discourse · GitHub](https://github.com/discourse/discourse_api)

---

<div class="post-metadata">

### Author: ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)
#### Post date: [October 20, 2020, 1:21am UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556/5 "2020-10-20T01:21:27Z")

</div>

Is there a Python version / SDK?

---

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [October 20, 2020, 2:05am UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556/6 "2020-10-20T02:05:51Z")

</div>

There is no official Python API/SDK for Discourse. There might be something unofficial out there but I’m not aware.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 20, 2020, 6:22am UTC](https://meta.discourse.org/t/creating-a-topic-using-ruby/167556/7 "2020-10-20T06:22:32Z")

</div>

> [@csmu](#):
>
> some sample ruby code to create a topic with tags, in a category with one boxing of links where possible.

You might want to take a look at the [collection of import scripts](https://github.com/discourse/discourse/tree/master/script/import_scripts), they contain pretty clear code on the basics.
