# Custom Post

If you'd like to display content on your app that cannot be represented by the available text, image, video, and file post types, you can create your own custom post type. Custom post types allow you to include the necessary data for rendering, such as additional metadata and custom data formatting. This is useful if you want to present specific types of content to your users.

To create a custom post type, you can query the user, community, or global feed using our SDK's APIs. Please refer to [Feed](/social-plus-sdk/social/feed.md). For additional information on rendering custom posts with UIKit, please see [Post Rendering](/social-plus-uikit/uikit-3/ios/community/overriding-behavior/feed-ui-settings/post-rendering.md).

* `dataType` - A string that defines the type of the post so you can distinguish your new post from others
* `data` - A free-form JSON object that can be customized based on your use cases.

{% hint style="info" %}
The **`dataType`** parameter should have the **`custom`** prefix.
{% endhint %}

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/76b8b6f601f828ab5d8cab5c8aed4ee5>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/27c6007ae889eeb431de2e7a21b9bf8d>" %}
{% endtab %}

{% tab title="JavaScript" %}
{% embed url="<https://gist.github.com/amythee/e4147f4ec42cf5c1cc5a073473be708d#file-custompost-js>" %}
{% endtab %}

{% tab title="TypeScript" %}
{% embed url="<https://gist.github.com/amythee/266f11a57af3acf065ca1f3531b9d717#file-createcustompost-ts>" %}
{% endtab %}

{% tab title="Flutter" %}
{% embed url="<https://gist.github.com/amythee/39fa10767faec05a50a92123d0282686>" %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/social-plus-sdk/social/posts/create-post/custom-post.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
