Docs menu
Quick Start
From API key to your first post.
The API gives your code the same content creation as the app. It is a JSON REST API you can call from any language.
Step 1: Get an API key
In the app, go to Brand & Accounts → API & SDK and make a key. It is shown once.
Step 2: Set a webhook
On the same page, add your webhook address to the key. When each post is finished — or fails — we POST it there. See Configuring Webhooks.
Step 3: Your Brand ID
Posts are made for a brand. Copy the Brand ID from the top of the API & SDK page. See Setting Up Your Brand.
Step 4: Make posts
Python
import requests
url = "https://gnraisolutions.com/api/v1/create_content"
payload = {
"brand_id": "YOUR_BRAND_ID",
"text": "3 tips for a calmer Monday morning at the salon",
"media_type": "single_image",
}
headers = {"Authorization": "YOUR_API_KEY"}
response = requests.post(url, data=payload, headers=headers)
print(response.json())
# {"post_ids": ["..."], "post_status": "inProgress", "errors": []}The response says the post is inProgress. When it is done you get a call on your webhook. Read more about the parameters and the webhook.