# Attach Hidden Data to Topics or Posts via API

**URL:** <https://meta.discourse.org/t/attach-hidden-data-to-topics-or-posts-via-api/190332>\
**Category:** Development\
**Created:** [May 13, 2021, 5:50pm UTC](https://meta.discourse.org/t/attach-hidden-data-to-topics-or-posts-via-api/190332 "2021-05-13T17:50:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stujo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stujo/32/220574_2.png) [@stujo](https://meta.discourse.org/u/stujo)\
**Post date:** [May 13, 2021, 5:50pm UTC](https://meta.discourse.org/t/attach-hidden-data-to-topics-or-posts-via-api/190332/1 "2021-05-13T17:50:39Z")

</div>

Is there a way to attach (hidden) extra data to a topic or post that can be read and written via the API

We’re looking to sync information about posts to another system and want to ‘tag’ topics and posts with a unique id from the other system as they are synced

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [May 14, 2021, 1:06am UTC](https://meta.discourse.org/t/attach-hidden-data-to-topics-or-posts-via-api/190332/3 "2021-05-14T01:06:25Z")

</div>

You could write a plugin that has a post custom field and adds it to the serializer.

I would think it easier to have the other system use the post id or url.

---

<div class="post-metadata">

**Author:** ![stujo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stujo/32/220574_2.png) [@stujo](https://meta.discourse.org/u/stujo)\
**Post date:** [May 14, 2021, 4:39am UTC](https://meta.discourse.org/t/attach-hidden-data-to-topics-or-posts-via-api/190332/4 "2021-05-14T04:39:01Z")

</div>

Thanks Jay, I’m looking into the plugin approach
