# 2.6 Hyper Post

**Method:** `POST`

```
https://sdk.hypergpt.ai/hyperPost
```

**Headers:**

<table data-header-hidden><thead><tr><th width="343">Key</th><th>Value</th></tr></thead><tbody><tr><td>Bearer Token</td><td>new_user_token</td></tr></tbody></table>

**Parameters:**

* **Query** (str): The text query provided by the user for generating the post.
* **post\_type** (str): The type of post to generate. Valid options are:
  * "Twitter Post"
  * "Twitter Flood"
  * "Twitter Poll"
  * "Twitter Ads"
  * "Facebook Post"
  * "Facebook Flood"
  * "Facebook Poll"
  * "Facebook Ads"
  * "Instagram Post"
  * "Instagram Flood"
  * "Instagram Poll"
  * "Instagram Ads"
  * "Telegram Post"
  * "Telegram Poll"
  * "Email"
* **hashtags** (bool): Whether to include hashtags in the post.
* **emojies** (bool): Whether to include emojis in the post.
* **clickbate** (bool): Whether to include clickbait elements in the post.
* **seo** (bool): Whether to optimize the post for SEO.
* **maxCharacter** (int): The maximum character limit for the post.

**Example Params:**

<table data-header-hidden><thead><tr><th width="356"></th><th></th></tr></thead><tbody><tr><td>Query</td><td>HyperGPT</td></tr><tr><td>post_type</td><td>Twitter Post</td></tr><tr><td>hashtags</td><td>true</td></tr><tr><td>emojies</td><td>true</td></tr><tr><td>clickbate</td><td>true</td></tr><tr><td>seo</td><td>true</td></tr><tr><td>maxCharacter</td><td>200</td></tr></tbody></table>

**Example Request:**

```python
headers = {
    "Authorization": "Bearer " + bearer_token,

}
data = {
    "Query": Query,
    "post_type": post_type,
    "hashtags": hashtags,
    "emojies": emojies,
    "clickbate": clickbate,
    "seo": seo,
    "maxCharacter": maxCharacter
}
response = requests.post(
    "https://sdk.hypergpt.ai/hyperPost",
    headers=headers,
    params=data
)

return response.json()
```

**Example Response (Success):**

```json
{
    "content": "Are you ready to take your writing to the next level? 🚀 HyperGPT is the game-changer you've been waiting for! 📝 With advanced AI technology, you can write faster, better, and smarter than ever before."
}
```

**Example Response (Error):**

```json
{
    "error": "Insufficient credits"
}
```

This endpoint allows users to generate social media posts tailored to specific platforms and parameters, ensuring they meet the user's requirements and constraints. It validates the user's token, checks their credits, and logs the API usage. If the user has enough credits, the post is generated and returned; otherwise, an error message is returned.
