2.6 Hyper Post

The HyperPost endpoint generates customized social media posts based on parameters like post type, hashtags, emojis, and character limits. It checks user credits before processing.

Method: POST

https://sdk.hypergpt.ai/hyperPost

Headers:

Bearer Token

new_user_token

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:

Query

HyperGPT

post_type

Twitter Post

hashtags

true

emojies

true

clickbate

true

seo

true

maxCharacter

200

Example Request:

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):

{
    "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):

{
    "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.

Last updated