Docs menu
Create Posts using Custom Headlines / Subheadings
Your own words on the slides.
Pass headlines to use your words instead of the written ones — one entry per carousel slide. They go through the same checks.
Python
import requests
url = "https://gnraisolutions.com/api/v1/create_content"
payload = {
"brand_id": "YOUR_BRAND_ID",
"text": "Five questions to ask before hiring a contractor",
"media_type": "carousel",
"headlines": '[{"headline": "Are you licensed?", "subheading": "Ask for the number."}, {"headline": "Who does the work?", "subheading": "You or a sub?"}]',
}
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.