Docs menu
Create Posts in Bulk
Several posts in one request.
Set n_posts to up to 10. Each post gets its own id and its own webhook call. At most 10 can be in progress at once.
Python
import requests
url = "https://gnraisolutions.com/api/v1/create_content"
payload = {
"brand_id": "YOUR_BRAND_ID",
"text": "Small habits that make a gym routine stick",
"media_type": "single_image",
"n_posts": 5,
}
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.