POST
/
generate
/
post
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"text": "This beautiful new shoe is on sale now. It comes in red, blue, or purple. Check it out today."}' \
-X POST https://api.ayrshare.com/api/generate/post
{
    "status": "success",
    "post": "πŸŽ‰πŸ›οΈ Introducing the stunning new shoes that's now on sale! You can choose from three different colors – red, blue, or purple – and trust us, they're all amazing! Don't miss out on this beauty and grab yours today! πŸ™Œ #newshoe #onSale #fashionable #colormebeautiful 🌈",
    "usage": 98,                // Tokens used for this call
    "totalMonthlyUsage": 733    // Total tokens used for the month
}
Available on Premium, Business, Enterprise plans.Max Pack required
Generate a new social post using AI. You can either provide text or images to create the social media post. Token limits applicable.

Header Parameters

Authorization
string
required
API Key of the Primary Profile.

Format: Authorization: Bearer API_KEY

Body Parameters

text
string
required
Description of what the post should be about. For example: β€œA shoe sale happening Monday with specials on red, blue, and yellow shoes”. Not required if mediaUrls parameter is included.
mediaUrls
array
An array of image URLs to base the post text on. Required if text parameter not included.
hashtags
boolean
default:true
Add hashtags to the post.
emojis
boolean
default:false
Add emojis to the post.
twitter
boolean
default:false
Construct a post with 280 or few characters.
curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"text": "This beautiful new shoe is on sale now. It comes in red, blue, or purple. Check it out today."}' \
-X POST https://api.ayrshare.com/api/generate/post
{
    "status": "success",
    "post": "πŸŽ‰πŸ›οΈ Introducing the stunning new shoes that's now on sale! You can choose from three different colors – red, blue, or purple – and trust us, they're all amazing! Don't miss out on this beauty and grab yours today! πŸ™Œ #newshoe #onSale #fashionable #colormebeautiful 🌈",
    "usage": 98,                // Tokens used for this call
    "totalMonthlyUsage": 733    // Total tokens used for the month
}