Docs menu
Create Posts Using Own Images/Videos
Your pictures in the post.
Pass public links to your images in media_urls. They are fetched when the post is drawn — https only, JPG, PNG or WebP, 15 MB or less.
Python
import requests
url = "https://gnraisolutions.com/api/v1/create_content"
payload = {
"brand_id": "YOUR_BRAND_ID",
"text": "Our new autumn menu is here",
"media_type": "single_image",
"media_urls": '["https://example.com/menu-photo.jpg"]',
}
headers = {"Authorization": "YOUR_API_KEY"}
response = requests.post(url, data=payload, headers=headers)
print(response.json())
# {"post_ids": ["..."], "post_status": "inProgress", "errors": []}The finished post arrives on your webhook, or with Get All Posts.