# Analytics Source: https://docs.groniz.com/cli/analytics View platform and post-level analytics from the command line ## Platform Analytics Get analytics for a specific integration/channel. Returns metrics like followers, impressions, and engagement over time. ```bash theme={null} groniz analytics platform ``` ### Options | Flag | Description | | ------------ | ---------------------------------------- | | `-d, --date` | Number of days to look back (default: 7) | ### Examples ```bash theme={null} # Last 7 days (default) groniz analytics platform your-integration-id # Last 30 days groniz analytics platform your-integration-id -d 30 # Last 90 days groniz analytics platform your-integration-id -d 90 ``` The response is an array of metrics, each with daily data points: ```json theme={null} [ { "label": "Followers", "data": [ { "total": "1250", "date": "2025-01-01" }, { "total": "1280", "date": "2025-01-02" } ], "percentageChange": 2.4 }, { "label": "Impressions", "data": [ { "total": "5000", "date": "2025-01-01" }, { "total": "5200", "date": "2025-01-02" } ], "percentageChange": 4.0 } ] ``` The metrics returned depend on the platform. For example, X returns followers and impressions, while YouTube may return subscribers and views. ## Post Analytics Get analytics for a specific published post. Returns metrics like likes, comments, shares, and impressions. ```bash theme={null} groniz analytics post ``` ### Options | Flag | Description | | ------------ | ---------------------------------------- | | `-d, --date` | Number of days to look back (default: 7) | ### Examples ```bash theme={null} # Last 7 days (default) groniz analytics post your-post-id # Last 30 days groniz analytics post your-post-id -d 30 ``` The response follows the same format as platform analytics: ```json theme={null} [ { "label": "Likes", "data": [ { "total": "150", "date": "2025-01-01" }, { "total": "175", "date": "2025-01-02" } ], "percentageChange": 16.7 }, { "label": "Comments", "data": [ { "total": "25", "date": "2025-01-01" }, { "total": "30", "date": "2025-01-02" } ], "percentageChange": 20.0 } ] ``` Post analytics are only available for published posts. Draft or queued posts won't return analytics data. ## Scripting with Analytics Extract specific metrics using `jq`: ```bash theme={null} # Get just the follower count trend groniz analytics platform integration-id -d 30 | jq '.[] | select(.label=="Followers")' # Get percentage changes for all metrics groniz analytics platform integration-id | jq '.[] | {label, percentageChange}' # Get the latest total for each post metric groniz analytics post post-id | jq '.[] | {label, latest: .data[-1].total}' ``` # Authentication Source: https://docs.groniz.com/cli/authentication Set up OAuth2 or API key authentication for the Groniz CLI ## OAuth2 (Recommended) Authenticate using the device flow — no client ID or secret needed: ```bash theme={null} groniz auth login ``` This will: 1. Display a one-time code in your terminal 2. Open your browser to authorize 3. Automatically save credentials to `~/.groniz/credentials.json` ### Auth Commands ```bash theme={null} # Check who you're signed in as (verifies the credential is still valid) groniz whoami # Remove stored credentials groniz auth logout ``` ## API Key Alternatively, set your Groniz API key as an environment variable: ```bash theme={null} export GRONIZ_API_KEY=your_api_key_here ``` You can get your API key from the Groniz Settings page. OAuth2 credentials take priority over the API key when both are present. ## Environment Variables | Variable | Required | Default | Description | | -------------------- | -------- | ------------------------ | --------------------- | | `GRONIZ_API_KEY` | No\* | - | Your Groniz API key | | `GRONIZ_API_URL` | No | `https://api.groniz.com` | API endpoint override | | `GRONIZ_AUTH_SERVER` | No | `https://api.groniz.com` | Auth server override | \*Either OAuth2 (via `groniz auth login`) or `GRONIZ_API_KEY` is required. # Integrations Source: https://docs.groniz.com/cli/integrations Discover connected accounts, settings schemas, and dynamic tools ## Listing Integrations List all connected social media accounts to get their IDs: ```bash theme={null} groniz integrations list ``` This returns a JSON array of integrations. Use `jq` to extract specific fields: ```bash theme={null} # Get just the IDs and platform names groniz integrations list | jq '.[] | {id, identifier}' ``` ```bash theme={null} # Find a specific platform groniz integrations list | jq '.[] | select(.identifier=="reddit")' ``` ### Filtering by Group If your channels are organized into groups (customers), filter the list to a single group with `--group`: ```bash theme={null} groniz integrations list --group "customer-id" ``` ## Listing Groups List all groups (customers) for your organization to get their IDs: ```bash theme={null} groniz integrations groups ``` This returns a JSON array of `{id, name}` objects. Use a group's `id` with `integrations list --group` to filter channels: ```bash theme={null} # Find a group by name, then list its integrations GROUP_ID=$(groniz integrations groups | jq -r '.[] | select(.name=="My Company") | .id') groniz integrations list --group "$GROUP_ID" ``` ## Getting Settings Each platform has its own settings schema with character limits, required fields, and available options. Retrieve it with: ```bash theme={null} groniz integrations settings ``` The response tells you: * What fields are available (title, privacy level, subreddit, etc.) * Which fields are required * Character limits and validation rules * Available dynamic tools you can trigger Always check `integrations settings` before posting to a new platform to understand what settings are available. ## Triggering Tools Some platforms expose dynamic tools — for example, fetching Reddit flairs, YouTube playlists, or LinkedIn company pages. These return data you need when constructing platform-specific settings. ```bash theme={null} groniz integrations trigger ``` Pass additional data with `-d`: ```bash theme={null} groniz integrations trigger -d '{"key":"value"}' ``` ### Examples **Get Reddit flairs for a subreddit:** ```bash theme={null} groniz integrations trigger reddit-id restrictions -d '{"subreddit":"/r/programming"}' ``` **Get YouTube playlists:** ```bash theme={null} groniz integrations trigger youtube-id getPlaylists ``` **Get LinkedIn company pages:** ```bash theme={null} groniz integrations trigger linkedin-id getCompanies ``` **Get Pinterest boards:** ```bash theme={null} groniz integrations trigger pinterest-id getBoards ``` **Search Instagram audio for a Reel** (Facebook Business-linked channels only, empty `q` returns trending audio): ```bash theme={null} groniz integrations trigger instagram-id audioSearch -d '{"q":"summer vibes","type":"music"}' ``` ## Discovery Workflow When working with a new platform, follow this workflow: ```bash theme={null} # 1. Find the integration ID INTEGRATION_ID=$(groniz integrations list | jq -r '.[] | select(.identifier=="reddit") | .id') # 2. Check what settings and tools are available groniz integrations settings "$INTEGRATION_ID" # 3. Use tools to fetch dynamic data (e.g., flairs) groniz integrations trigger "$INTEGRATION_ID" restrictions -d '{"subreddit":"/r/programming"}' # 4. Create a post with the discovered settings groniz posts create \ -c "My post" \ -s "2025-01-15T10:00:00Z" \ --settings '{"subreddit":[{"value":{"subreddit":"programming","title":"Post Title","type":"text"}}]}' \ -i "$INTEGRATION_ID" ``` # Introduction Source: https://docs.groniz.com/cli/introduction Automate social media posting from the command line with the Groniz CLI For your AI agent to work best with Groniz, install the skill by running: ```bash theme={null} npx skills add groniz/groniz-cli ``` Or load the SKILL md file from [github.com/groniz/groniz-cli](https://github.com/groniz/groniz-cli). The Groniz CLI is a command-line tool for automating social media posting across 32+ platforms. It wraps the [Public API](/public-api/introduction) so you can schedule posts, manage integrations, and upload media directly from your terminal or shell scripts. ## Installation ```bash theme={null} curl -fsSL https://groniz.com/install.sh | sh ``` Installs a self-contained native `groniz` binary — no Node, npm, or pnpm required. It detects your OS/arch, verifies the download's SHA-256 against the signed manifest, installs to `~/.groniz/bin/groniz`, and adds that dir to `PATH`. Supported: Linux/macOS on x64/arm64 (glibc). Ideal for a fresh box or a coding agent. Verify the installation: ```bash theme={null} groniz --help ``` ## Authentication ### Option 1: OAuth2 (Recommended) Authenticate using the device flow — no client ID or secret needed: ```bash theme={null} groniz auth login ``` This will: 1. Display a one-time code in your terminal 2. Open your browser to authorize 3. Automatically save credentials to `~/.groniz/credentials.json` ```bash theme={null} # Check who you're signed in as groniz whoami # Remove stored credentials groniz auth logout ``` ### Option 2: API Key Set your Groniz API key as an environment variable. You can get your API key from the Groniz Settings page. ```bash theme={null} export GRONIZ_API_KEY=your_api_key_here ``` Add this to your shell profile (`~/.bashrc`, `~/.zshrc`, etc.) so it persists across sessions. OAuth2 credentials take priority over the API key when both are present. ## Quick Start ```bash theme={null} # 1. List your connected social media accounts groniz integrations list # 2. Create a scheduled post groniz posts create \ -c "Hello from the Groniz CLI!" \ -s "2025-01-15T10:00:00Z" \ -i "your-integration-id" # 3. List your scheduled posts groniz posts list ``` ## Commands Overview | Command | Description | | ----------------------- | ----------------------------------------------------------------------- | | `auth login` | Authenticate via OAuth2 device flow | | `whoami` | Show who you're signed in as, and verify the credential | | `auth logout` | Remove stored credentials | | `integrations list` | List all connected social media accounts | | `integrations settings` | Get the settings schema for an integration | | `integrations trigger` | Trigger a dynamic tool on an integration | | `posts create` | Create a new post | | `posts list` | List posts with optional date filtering | | `posts delete` | Delete a post by ID | | `posts missing` | List available content from provider for a post with missing release ID | | `posts connect` | Connect a post to its published content by release ID | | `analytics platform` | Get analytics for an integration/channel | | `analytics post` | Get analytics for a specific post | | `reads x profile` | Read any public X account's profile | | `reads x posts` | Read an X account's recent posts | | `reads x post` | Read a single X post by id | | `reads x search` | Search recent X posts by query | | `reads x metrics` | Aggregate an X account's post performance over a window | | `upload` | Upload a media file | All commands output JSON, making the CLI easy to use in scripts and automation pipelines. # Managing Posts Source: https://docs.groniz.com/cli/managing-posts Create, list, and delete social media posts from the command line ## Creating Posts Use `posts create` to queue immediate publication, schedule, or draft posts and articles to one or more platforms. ### Simple Post ```bash theme={null} groniz posts create \ -c "Hello world!" \ -s "2025-01-15T10:00:00Z" \ -i "your-integration-id" ``` ### Options | Flag | Description | | -------------------- | --------------------------------------------------------------- | | `-c, --content` | Post content. Use multiple times for threads/comments. | | `-s, --date` | Schedule date in ISO 8601 format (required unless `--type now`) | | `-t, --type` | `schedule` (default), `draft`, or `now` | | `-m, --media` | Comma-separated media URLs (use after uploading) | | `-i, --integrations` | Comma-separated integration IDs (required) | | `-d, --delay` | Delay between comments in milliseconds (default: 5000) | | `--settings` | Platform-specific settings as JSON | | `-j, --json` | Path to a JSON file for complex posts | ### Publish Immediately Use `now` to start the existing publication workflow without a scheduled delay. No `--date` is needed: ```bash theme={null} groniz posts create \ -c "Publish this article now" \ -t now \ --settings '{"title":"Launch article","status":"published"}' \ -i "your-ghost-integration-id" ``` The command returns after the post is queued; provider publication continues in the background with the same retries and validation as a scheduled post. ### Draft Post ```bash theme={null} groniz posts create \ -c "Review this before publishing" \ -s "2025-01-15T10:00:00Z" \ -t draft \ -i "your-integration-id" ``` ### Post with Media Upload your media first with the [`upload`](/cli/media-upload) command, then reference the returned URL: ```bash theme={null} groniz posts create \ -c "Check out this photo!" \ -m "https://api.groniz.com/your-image.jpg" \ -s "2025-01-15T10:00:00Z" \ -i "your-integration-id" ``` ### Threads and Comments Pass `-c` multiple times to create a thread. Each comment can have its own media with a corresponding `-m` flag: ```bash theme={null} groniz posts create \ -c "Thread 1/3" -m "image1.jpg" \ -c "Thread 2/3" -m "image2.jpg" \ -c "Thread 3/3" \ -s "2025-01-15T10:00:00Z" \ -i "twitter-integration-id" ``` Use `-d` to control the delay between comments (in milliseconds): ```bash theme={null} groniz posts create \ -c "First tweet" \ -c "Second tweet" \ -c "Third tweet" \ -s "2025-01-15T10:00:00Z" \ -d 2000 \ -i "twitter-integration-id" ``` ### Multi-Platform Post Send the same content to multiple platforms by passing comma-separated integration IDs: ```bash theme={null} groniz posts create \ -c "Posting everywhere!" \ -s "2025-01-15T10:00:00Z" \ -i "twitter-id,linkedin-id,facebook-id" ``` ### Platform-Specific Settings Some platforms require additional settings. Pass them as JSON with `--settings`: ```bash theme={null} groniz posts create \ -c "Check out this discussion" \ -s "2025-01-15T10:00:00Z" \ --settings '{"subreddit":[{"value":{"subreddit":"programming","title":"My Post","type":"text"}}]}' \ -i "reddit-integration-id" ``` Use `groniz integrations settings ` to discover what settings are available for each platform. See [Integrations](/cli/integrations) for details. ### Complex Posts with JSON For posts with detailed platform-specific content, use a JSON file: ```bash theme={null} groniz posts create --json post.json ``` Example `post.json`: ```json theme={null} { "integrations": ["twitter-123", "linkedin-456"], "posts": [ { "provider": "twitter", "post": [{ "content": "Short tweet version", "image": [] }] }, { "provider": "linkedin", "post": [{ "content": "Longer LinkedIn version with more detail", "image": [] }], "settings": { "__type": "linkedin" } } ] } ``` ## Listing Posts ```bash theme={null} groniz posts list ``` ### Filter by Date Range ```bash theme={null} groniz posts list \ --startDate "2025-01-01T00:00:00Z" \ --endDate "2025-01-31T23:59:59Z" ``` ### Filter by Customer ```bash theme={null} groniz posts list --customer "customer-id" ``` ## Connecting Missing Posts Some platforms don't return a post ID immediately after publishing (the `releaseId` is set to `"missing"`). When this happens, you can fetch recent content from the provider and connect the correct one to your post. This enables analytics tracking. ### List Available Content ```bash theme={null} groniz posts missing ``` Returns an array of recent content items from the provider with their ID and thumbnail URL: ```json theme={null} [ { "id": "7321456789012345678", "url": "https://p16-sign.tiktokcdn-us.com/obj/cover-image.jpeg" }, { "id": "7321456789012345679", "url": "https://p16-sign.tiktokcdn-us.com/obj/cover-image2.jpeg" } ] ``` This only works for posts where the `releaseId` is `"missing"`. Returns an empty array if the provider doesn't support this feature. ### Connect a Post Once you've identified the correct content, update the release ID: ```bash theme={null} groniz posts connect --release-id "7321456789012345678" ``` After connecting, the post will support full analytics via `groniz analytics post`. ### Full Workflow ```bash theme={null} # 1. Find posts with missing release IDs groniz posts list | jq '.posts[] | select(.releaseId == "missing") | {id, content}' # 2. Get available content from the provider groniz posts missing # 3. Connect the correct content groniz posts connect --release-id "7321456789012345678" # 4. Verify analytics now work groniz analytics post ``` ## Changing Post Status Move a post between `draft` and `schedule` without changing its date. ```bash theme={null} groniz posts status --status draft groniz posts status --status schedule ``` * `--status schedule` promotes a draft into the publishing queue and (re)starts the workflow so it will publish at its stored date. * `--status draft` moves a scheduled post back to draft **and terminates any running publishing workflow**, so it will not publish. Use this when you want to pause a scheduled post without deleting it, or hand a draft off to the scheduler once it's ready. ## Deleting Posts ```bash theme={null} groniz posts delete ``` # Media Upload Source: https://docs.groniz.com/cli/media-upload Upload images, videos, and other media files for use in posts ## Uploading Files Upload a local file and receive a URL you can use in posts: ```bash theme={null} groniz upload ``` The command returns a JSON response with the uploaded file's URL: ```json theme={null} { "id": "img-123", "path": "https://api.groniz.com/your-file.jpg" } ``` You must upload media files to Groniz before using them in posts. Many platforms (TikTok, Instagram, YouTube) require verified URLs and will reject external links. ## Upload and Post Workflow ```bash theme={null} # 1. Upload the file RESULT=$(groniz upload photo.jpg) FILE_URL=$(echo "$RESULT" | jq -r '.path') # 2. Use the URL in a post groniz posts create \ -c "Check out this photo!" \ -m "$FILE_URL" \ -s "2025-01-15T10:00:00Z" \ -i "your-integration-id" ``` ## Supported File Types PNG, JPG, JPEG, GIF, WEBP, SVG, BMP, ICO MP4, MOV, AVI, MKV, WEBM, FLV, WMV, M4V, MPEG, 3GP MP3, WAV, OGG, AAC, FLAC, M4A PDF, DOC, DOCX ## Video Upload Example Platforms like TikTok, YouTube, and Instagram require video uploads through Groniz: ```bash theme={null} # Upload the video VIDEO=$(groniz upload video.mp4) VIDEO_URL=$(echo "$VIDEO" | jq -r '.path') # Post to TikTok groniz posts create \ -c "New video! #fyp" \ -m "$VIDEO_URL" \ -s "2025-01-15T10:00:00Z" \ --settings '{"privacy_level":"PUBLIC_TO_EVERYONE"}' \ -i "tiktok-integration-id" ``` # Platform Examples Source: https://docs.groniz.com/cli/platform-examples Ready-to-use examples for posting to specific platforms ## X (Twitter) ### Simple Post ```bash theme={null} groniz posts create \ -c "Hello Twitter!" \ -s "2025-01-15T10:00:00Z" \ -i "twitter-id" ``` ### Thread ```bash theme={null} groniz posts create \ -c "Thread 1/3: Introduction" \ -c "Thread 2/3: Main point" \ -c "Thread 3/3: Conclusion" \ -s "2025-01-15T10:00:00Z" \ -d 2000 \ -i "twitter-id" ``` ### With Reply Controls ```bash theme={null} groniz posts create \ -c "Only followers can reply to this" \ -s "2025-01-15T10:00:00Z" \ --settings '{"who_can_reply_post":"followers"}' \ -i "twitter-id" ``` ## Reddit ### Post with Flair ```bash theme={null} # 1. Get available flairs groniz integrations trigger reddit-id restrictions -d '{"subreddit":"/r/programming"}' # 2. Post with a flair groniz posts create \ -c "My post content" \ -s "2025-01-15T10:00:00Z" \ --settings '{"subreddit":[{"value":{"subreddit":"programming","title":"Post Title","type":"text","flair":{"id":"flair-id","name":"Discussion"}}}]}' \ -i "reddit-id" ``` ### Scripted Workflow ```bash theme={null} #!/bin/bash REDDIT_ID=$(groniz integrations list | jq -r '.[] | select(.identifier=="reddit") | .id') FLAIRS=$(groniz integrations trigger "$REDDIT_ID" restrictions -d '{"subreddit":"/r/programming"}') FLAIR_ID=$(echo "$FLAIRS" | jq -r '.output[0].id') groniz posts create \ -c "Automated Reddit post" \ -s "2025-01-15T10:00:00Z" \ --settings "{\"subreddit\":[{\"value\":{\"subreddit\":\"programming\",\"title\":\"Post Title\",\"type\":\"text\",\"flair\":{\"id\":\"$FLAIR_ID\"}}}]}" \ -i "$REDDIT_ID" ``` ## YouTube ```bash theme={null} # Upload video first VIDEO=$(groniz upload video.mp4) VIDEO_URL=$(echo "$VIDEO" | jq -r '.path') groniz posts create \ -c "Video description here" \ -m "$VIDEO_URL" \ -s "2025-01-15T10:00:00Z" \ --settings '{"title":"My Video Title","type":"public","tags":[{"value":"tech","label":"Tech"}]}' \ -i "youtube-id" ``` ## TikTok ```bash theme={null} # Upload video first VIDEO=$(groniz upload video.mp4) VIDEO_URL=$(echo "$VIDEO" | jq -r '.path') groniz posts create \ -c "Check this out! #fyp" \ -m "$VIDEO_URL" \ -s "2025-01-15T10:00:00Z" \ --settings '{"privacy_level":"PUBLIC_TO_EVERYONE","duet":true,"stitch":true}' \ -i "tiktok-id" ``` ## Instagram ```bash theme={null} # Upload image first IMAGE=$(groniz upload photo.jpg) IMAGE_URL=$(echo "$IMAGE" | jq -r '.path') # Regular post groniz posts create \ -c "Beautiful day! #photography" \ -m "$IMAGE_URL" \ -s "2025-01-15T10:00:00Z" \ --settings '{"post_type":"post"}' \ -i "instagram-id" ``` ### Story ```bash theme={null} groniz posts create \ -c "Story content" \ -m "$IMAGE_URL" \ -s "2025-01-15T10:00:00Z" \ --settings '{"post_type":"story"}' \ -i "instagram-id" ``` ### Reel A single video with `post_type: "post"` is published as a Reel: ```bash theme={null} groniz posts create \ -c "Reel caption" \ -m "$VIDEO_URL" \ -s "2025-01-15T10:00:00Z" \ --settings '{"post_type":"post"}' \ -i "instagram-id" ``` ### Reel with Audio Search the Instagram audio catalog and attach a track to the Reel (Facebook Business-linked channels only — an empty `q` returns trending audio): ```bash theme={null} # Find an audio ID AUDIO_ID=$(groniz integrations trigger instagram-id audioSearch \ -d '{"q":"summer vibes","type":"music"}' | jq -r '.output[0].id') groniz posts create \ -c "Reel with trending audio" \ -m "$VIDEO_URL" \ -s "2025-01-15T10:00:00Z" \ --settings "{\"post_type\":\"post\",\"audio\":{\"id\":\"$AUDIO_ID\",\"audio_volume\":80,\"video_volume\":20}}" \ -i "instagram-id" ``` ## LinkedIn ```bash theme={null} groniz posts create \ -c "Professional update on LinkedIn" \ -s "2025-01-15T10:00:00Z" \ -i "linkedin-id" ``` ### Image Carousel ```bash theme={null} groniz posts create \ -c "Check out these slides!" \ -m "image1.jpg,image2.jpg,image3.jpg" \ -s "2025-01-15T10:00:00Z" \ --settings '{"post_as_images_carousel":true}' \ -i "linkedin-id" ``` ## Pinterest ```bash theme={null} groniz posts create \ -c "Pin description" \ -m "$IMAGE_URL" \ -s "2025-01-15T10:00:00Z" \ --settings '{"board":"board-id","title":"Pin Title","link":"https://example.com"}' \ -i "pinterest-id" ``` ## Discord ```bash theme={null} groniz posts create \ -c "Message to Discord" \ -s "2025-01-15T10:00:00Z" \ --settings '{"channel":"channel-id"}' \ -i "discord-id" ``` ## Batch Scheduling Schedule multiple posts across different dates: ```bash theme={null} #!/bin/bash DATES=("2025-01-14T09:00:00Z" "2025-01-15T09:00:00Z" "2025-01-16T09:00:00Z") CONTENT=("Monday motivation" "Tuesday tips" "Wednesday wisdom") for i in "${!DATES[@]}"; do groniz posts create \ -c "${CONTENT[$i]}" \ -s "${DATES[$i]}" \ -i "twitter-id" done ``` ## Multi-Platform Campaign Post different content per platform in one command using a JSON file: ```bash theme={null} groniz posts create --json campaign.json ``` Example `campaign.json`: ```json theme={null} { "integrations": ["twitter-123", "linkedin-456", "reddit-789"], "posts": [ { "provider": "twitter", "post": [{ "content": "Short tweet version", "image": [] }] }, { "provider": "linkedin", "post": [{ "content": "More detailed LinkedIn post with professional tone", "image": [] }] }, { "provider": "reddit", "post": [{ "content": "Reddit post body", "image": [] }], "settings": { "__type": "reddit", "subreddit": [{ "value": { "subreddit": "programming", "title": "Post Title", "type": "text" } }] } } ] } ``` # Introduction Source: https://docs.groniz.com/introduction Welcome to Groniz documentation Looking to integrate with Groniz programmatically? Check out the [Public API documentation](/public-api/introduction). ## What is Groniz? Groniz is a hosted service that helps you manage all your social media accounts from one place — schedule posts across 32+ channels, generate content with AI, and track analytics. There is nothing to install or host: sign in to the [console](https://groniz.com/console/connectors) and start posting. * Schedule social media posts and articles across 32+ platforms * Generate posts with AI * Read analytics for every channel * Automate it all over the [Public API](/public-api/introduction), [CLI](/cli/introduction), or [MCP](/mcp/introduction) Sign in, connect a channel, and schedule your first post The three-step path from sign-in to your first scheduled post # Examples Source: https://docs.groniz.com/mcp/examples Common workflows when using Groniz through MCP These examples show the tool calls an AI agent makes behind the scenes. You don't need to write these yourself — just describe what you want in natural language and your AI agent handles the rest. ## Schedule a Post to X A typical flow to schedule a post to X (Twitter): The agent calls `integrationList` and finds your X account: ```json theme={null} { "output": [ { "id": "abc123", "name": "My X Account", "picture": "https://...", "platform": "x" } ] } ``` The agent calls `integrationSchema` with `platform: "x"` to learn the rules: ```json theme={null} { "output": { "rules": "...", "maxLength": 280, "settings": { ... }, "tools": [] } } ``` The agent calls `schedulePostTool`: ```json theme={null} { "socialPost": [ { "integrationId": "abc123", "isPremium": false, "date": "2025-01-15T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [ { "content": "

Excited to announce our new feature!

", "attachments": [] } ], "settings": [ { "key": "who_can_reply_post", "value": "everyone" } ] } ] } ```
## Post to Discord with Channel Selection Platforms like Discord require selecting a channel first: The agent calls `integrationSchema` with `platform: "discord"` and discovers a tool to list channels. The agent calls `triggerTool`: ```json theme={null} { "integrationId": "discord-123", "methodName": "listChannels", "dataSchema": [] } ``` Returns available channels with their IDs. The agent includes the channel ID in settings: ```json theme={null} { "socialPost": [ { "integrationId": "discord-123", "isPremium": false, "date": "2025-01-15T10:00:00.000Z", "shortLink": false, "type": "now", "postsAndComments": [ { "content": "

Hello Discord!

", "attachments": [] } ], "settings": [ { "key": "channel", "value": "channel-id-here" } ] } ] } ```
## Schedule an Instagram Reel with Trending Audio Instagram (Facebook Business-linked) exposes an `audioSearch` tool for finding music or original sounds to attach to a Reel: The agent calls `triggerTool` (an empty `q` returns trending audio): ```json theme={null} { "integrationId": "instagram-123", "methodName": "audioSearch", "dataSchema": [ { "key": "q", "value": "summer vibes" }, { "key": "type", "value": "music" } ] } ``` Returns audio assets with their IDs: ```json theme={null} { "output": [ { "id": "587784541076604", "title": "Summer Vibes", "artist": "Some Artist", "duration": 30000, "previewUrl": "https://..." } ] } ``` The agent includes the chosen audio in settings — the post must be a single video with `post_type: "post"`: ```json theme={null} { "socialPost": [ { "integrationId": "instagram-123", "isPremium": false, "date": "2025-01-15T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [ { "content": "

New reel with trending audio!

", "attachments": ["https://api.groniz.com/reel.mp4"] } ], "settings": [ { "key": "post_type", "value": "post" }, { "key": "audio", "value": { "id": "587784541076604", "audio_volume": 80, "video_volume": 20 } } ] } ] } ```
Audio is not available on `instagram-standalone` channels — the Instagram Audio API requires Facebook Login. ## Post with an AI-Generated Image The agent calls `generateImageTool`: ```json theme={null} { "prompt": "A futuristic city skyline at sunset, digital art style" } ``` Returns: ```json theme={null} { "id": "img-456", "path": "https://api.groniz.com/generated-image.png" } ``` The agent includes the image URL in attachments: ```json theme={null} { "postsAndComments": [ { "content": "

The future is here

", "attachments": ["https://api.groniz.com/generated-image.png"] } ] } ```
## Generate a Video and Post The agent calls `generateVideoOptions` to see available generators. For Image Text Slides, the agent calls `videoFunctionTool`: ```json theme={null} { "identifier": "image-text-slides", "functionName": "loadVoices" } ``` Returns a list of available voices with their IDs. The agent calls `generateVideoTool`: ```json theme={null} { "identifier": "image-text-slides", "output": "vertical", "customParams": [ { "key": "prompt", "value": "5 tips for better social media engagement" }, { "key": "voice", "value": "voice-id-here" } ] } ``` Returns the video URL. The agent uses the video URL as an attachment when calling `schedulePostTool`. ## Create an X Thread To create a thread on X, add multiple items to `postsAndComments`: ```json theme={null} { "socialPost": [ { "integrationId": "x-123", "isPremium": false, "date": "2025-01-15T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [ { "content": "

Thread: 5 things I learned this week

", "attachments": [] }, { "content": "

1. Consistency beats intensity

", "attachments": [] }, { "content": "

2. Start before you're ready

", "attachments": [] } ], "settings": [ { "key": "who_can_reply_post", "value": "everyone" } ] } ] } ``` ## Post to LinkedIn with a Comment For LinkedIn, the first item in `postsAndComments` is the post and the rest are comments: ```json theme={null} { "socialPost": [ { "integrationId": "linkedin-123", "isPremium": false, "date": "2025-01-15T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [ { "content": "

We just launched something big!

", "attachments": [] }, { "content": "

Check it out at example.com

", "attachments": [] } ], "settings": [] } ] } ``` ## Bulk Schedule Schedule 5 posts across different days: ```json theme={null} { "socialPost": [ { "integrationId": "x-123", "isPremium": false, "date": "2025-01-13T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [{ "content": "

Monday motivation

", "attachments": [] }], "settings": [{ "key": "who_can_reply_post", "value": "everyone" }] }, { "integrationId": "x-123", "isPremium": false, "date": "2025-01-14T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [{ "content": "

Tuesday tip

", "attachments": [] }], "settings": [{ "key": "who_can_reply_post", "value": "everyone" }] }, { "integrationId": "x-123", "isPremium": false, "date": "2025-01-15T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [{ "content": "

Midweek thoughts

", "attachments": [] }], "settings": [{ "key": "who_can_reply_post", "value": "everyone" }] }, { "integrationId": "x-123", "isPremium": false, "date": "2025-01-16T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [{ "content": "

Thursday throwback

", "attachments": [] }], "settings": [{ "key": "who_can_reply_post", "value": "everyone" }] }, { "integrationId": "x-123", "isPremium": false, "date": "2025-01-17T10:00:00.000Z", "shortLink": false, "type": "schedule", "postsAndComments": [{ "content": "

Friday wrap-up

", "attachments": [] }], "settings": [{ "key": "who_can_reply_post", "value": "everyone" }] } ] } ``` Each item in the `socialPost` array is an independent post with its own date, content, and settings. # Introduction Source: https://docs.groniz.com/mcp/introduction Connect AI agents to Groniz using the Model Context Protocol (MCP) MCP (Model Context Protocol) lets AI agents interact with Groniz directly — listing integrations, scheduling posts, generating images and videos — all through a standardized tool-calling interface. This means you can connect Claude, ChatGPT, Cursor, or any MCP-compatible client to your Groniz account and manage your social media through natural language. ## How It Works Groniz exposes an MCP server that provides **9 tools** to AI agents. The agent discovers these tools, understands their schemas, and calls them on your behalf. ```mermaid theme={null} sequenceDiagram participant Agent as AI Agent participant MCP as Groniz MCP Server participant Groniz as Groniz Backend Agent->>MCP: Connect with API key / OAuth token MCP-->>Agent: List available tools Agent->>MCP: Call tool (e.g., schedule post) MCP->>Groniz: Execute action Groniz-->>MCP: Return result MCP-->>Agent: Tool response ``` ## Available Tools | Tool | Description | | ---------------------- | ----------------------------------------------------------------------- | | `integrationList` | List all connected social media accounts (optionally filtered by group) | | `groupList` | List all groups (customers) for your organization | | `integrationSchema` | Get platform-specific posting rules and settings schema | | `triggerTool` | Execute platform-specific helpers (e.g., list Discord channels) | | `schedulePostTool` | Schedule, draft, or immediately publish posts | | `generateImageTool` | Generate AI images for posts | | `generateVideoOptions` | List available video generation options | | `videoFunctionTool` | Get video generator settings (e.g., available voices) | | `generateVideoTool` | Generate videos for posts | ## Authentication There are two ways to authenticate with the MCP server: ### API Key Get your API key from the [**API Keys**](https://groniz.com/console/connectors/api-keys) page in Groniz. Use it directly in the MCP endpoint URL or as a Bearer token. ### OAuth Token If you're building an app for other Groniz users, use [OAuth2](/public-api/oauth) to obtain tokens. OAuth tokens start with `pos_` and work the same way as API keys. ## Connecting Use the `/mcp` endpoint with your API key or OAuth token as a Bearer token: ``` URL: https://mcp.groniz.com/mcp Authorization: Bearer your-api-key ``` This method supports both API keys and OAuth tokens (prefixed with `pos_`). Use the `/mcp/:apiKey` endpoint with your API key embedded in the URL: ``` URL: https://mcp.groniz.com/mcp/your-api-key ``` ## Quick Example Here's what a typical interaction looks like when an AI agent uses Groniz MCP: 1. **Agent calls `integrationList`** — gets back your connected accounts (X, LinkedIn, etc.) 2. **Agent calls `integrationSchema`** with `platform: "x"` — learns X's character limits, settings, and rules 3. **Agent calls `schedulePostTool`** — schedules your post with the correct format All of this happens automatically when you tell your AI agent something like: > "Schedule a post to X for tomorrow at 10am: Excited to announce our new feature!" ## FAQ ### Do I need an OpenAI key to use Groniz MCP? No. The MCP server just exposes Groniz's tools — your AI client (Claude, ChatGPT, Cursor, etc.) provides the model. Groniz only needs an `OPENAI_API_KEY` if you use Groniz's own AI features (image generation, copilot) which are separate from the MCP tools surfaced to your client. ### What happens when my API key expires or is rotated? Groniz API keys don't auto-rotate, but if you rotate one on the [**API Keys**](https://groniz.com/console/connectors/api-keys) page, every MCP client using the old key stops working until you update its config. Update the URL or the `Authorization` header in your client config and reconnect. ### Can MCP read or reply to comments? Not today. The current tool set is read-only on integrations and write-only on posts/media — there's no `getComments` or `replyToComment` exposed via MCP. Comment replies must be triggered through the Groniz UI. # Client Setup Source: https://docs.groniz.com/mcp/setup Configure your AI client to connect to the Groniz MCP server ## Claude Desktop Add the following to your Claude Desktop MCP configuration file: Edit `~/Library/Application Support/Claude/claude_desktop_config.json`: ```json theme={null} { "mcpServers": { "groniz": { "url": "https://mcp.groniz.com/mcp/your-api-key" } } } ``` Edit `%APPDATA%\Claude\claude_desktop_config.json`: ```json theme={null} { "mcpServers": { "groniz": { "url": "https://mcp.groniz.com/mcp/your-api-key" } } } ``` Replace `your-api-key` with your actual API key from the [**API Keys**](https://groniz.com/console/connectors/api-keys) page. ## Claude Code The fastest way is the CLI: ```bash theme={null} claude mcp add groniz --transport http --url https://mcp.groniz.com/mcp/your-api-key ``` Or add it to your Claude Code config directly: ```json theme={null} { "mcpServers": { "groniz": { "url": "https://mcp.groniz.com/mcp/your-api-key" } } } ``` The Bearer-token transport works too — pick whichever your client supports better. Both authenticate the same way: ```bash theme={null} claude mcp add groniz --transport http \ --url https://mcp.groniz.com/mcp \ --header "Authorization: Bearer your-api-key" ``` ## Cursor In Cursor, go to **Settings > MCP** and add a new server: * **Name:** Groniz * **Type:** HTTP * **URL:** `https://mcp.groniz.com/mcp/your-api-key` ## Other MCP Clients Any MCP-compatible client can connect to Groniz. Use the streamable HTTP transport: * **URL:** `https://mcp.groniz.com/mcp/your-api-key` * **Transport:** Streamable HTTP Or, if your client supports Bearer token authentication: * **URL:** `https://mcp.groniz.com/mcp` * **Transport:** Streamable HTTP * **Authorization:** `Bearer your-api-key` ## Verify Connection Once connected, ask your AI agent: > "List my connected social media accounts" If the connection is working, the agent will call the `integrationList` tool and return your connected accounts. # Tools Reference Source: https://docs.groniz.com/mcp/tools Complete reference for all Groniz MCP tools ## integrationList List all connected social media accounts (channels) for your organization. **Parameters:** | Field | Type | Required | Description | | ------- | ------ | -------- | ------------------------------------------------------------------------------------------------------- | | `group` | string | No | Group (customer) ID from `groupList`. When provided, only channels belonging to that group are returned | **Returns:** | Field | Type | Description | | ---------- | ------ | ------------------------------------------------------------------------------------------------------------------- | | `id` | string | Integration ID (use this when scheduling posts) | | `name` | string | Display name of the account | | `picture` | string | Profile picture URL | | `platform` | string | Platform identifier (e.g., `x`, `linkedin`, `facebook`) | | `customer` | object | The group (customer) this channel belongs to, as `{ id, name }` — omitted if the channel is not assigned to a group | *** ## groupList List all groups (customers) for your organization. Use a group's `id` with `integrationList` to filter channels down to a single group. **Parameters:** None **Returns:** | Field | Type | Description | | ------ | ------ | ---------------------------------------------------------- | | `id` | string | Group (customer) ID (pass to `integrationList` as `group`) | | `name` | string | Group (customer) display name | *** ## integrationSchema Get the posting rules, character limits, required settings, and available helper tools for a specific platform. Call this before scheduling a post to understand what the platform expects. **Parameters:** | Field | Type | Required | Description | | ----------- | ------- | -------- | ---------------------------------------------------------------- | | `isPremium` | boolean | Yes | Whether the user has a premium subscription | | `platform` | string | Yes | Platform identifier (e.g., `x`, `linkedin`, `reddit`, `discord`) | **Returns:** | Field | Type | Description | | ----------- | ------ | -------------------------------------------------- | | `rules` | string | Platform-specific posting rules and best practices | | `maxLength` | number | Maximum character length for posts | | `settings` | object | JSON schema of required settings for this platform | | `tools` | array | Platform-specific helper tools (see `triggerTool`) | The `tools` array contains helper functions specific to the platform. For example, Discord returns a tool to list available channels, Reddit returns a tool to search for subreddits, and LinkedIn Page returns a tool to list pages. Each tool in the array has: | Field | Type | Description | | ------------- | ------ | -------------------------------------- | | `methodName` | string | Function name to pass to `triggerTool` | | `description` | string | What the tool does | | `dataSchema` | array | Parameters the tool accepts | *** ## triggerTool Execute a platform-specific helper function. These are discovered through `integrationSchema` and are used to fetch dynamic data like channel lists, subreddit suggestions, or page IDs. **Parameters:** | Field | Type | Required | Description | | --------------- | ------ | -------- | ------------------------------------------------ | | `integrationId` | string | Yes | The integration ID from `integrationList` | | `methodName` | string | Yes | The function name from `integrationSchema` tools | | `dataSchema` | array | Yes | Key-value pairs of parameters for the function | Each item in `dataSchema`: | Field | Type | Description | | ------- | ------ | --------------- | | `key` | string | Parameter name | | `value` | string | Parameter value | **Example use cases:** * Get the list of Discord channels for a server * Search for Reddit subreddits * List LinkedIn pages you manage * Get Facebook page options * Search Instagram audio (`audioSearch`) to attach to a Reel — only on Facebook Business-linked Instagram channels *** ## schedulePostTool Schedule, draft, or immediately publish posts to social media platforms. This is the main tool for creating content. **Parameters:** | Field | Type | Required | Description | | ------------ | ----- | -------- | ------------------------ | | `socialPost` | array | Yes | Array of posts to create | Each item in `socialPost`: | Field | Type | Required | Description | | ------------------ | ------- | -------- | --------------------------------------------------- | | `integrationId` | string | Yes | Integration ID from `integrationList` | | `isPremium` | boolean | Yes | Whether the user has premium | | `date` | string | Yes | UTC datetime (e.g., `2025-01-15T10:00:00.000Z`) | | `shortLink` | boolean | Yes | Whether to shorten links in the post | | `type` | string | Yes | `draft`, `schedule`, or `now` | | `postsAndComments` | array | Yes | The post content and optional comments | | `settings` | array | Yes | Platform-specific settings from `integrationSchema` | Each item in `postsAndComments`: | Field | Type | Description | | ------------- | ------ | ----------------------------------------- | | `content` | string | HTML content (see formatting rules below) | | `attachments` | array | Array of image/media URLs | Each item in `settings`: | Field | Type | Description | | ------- | ------ | ----------------------------------------------------- | | `key` | string | Setting name | | `value` | any | Setting value (prefer IDs over labels when available) | ### Content Formatting Content must be HTML with these allowed tags only: | Tag | Usage | | ---------------------- | --------------- | | `

` | Wrap each line | | `

`, `

`, `

` | Headings | | `` | Bold text | | `` | Underlined text | | `
    `, `
  • ` | Lists | You cannot combine `` and `` in the same element. Each line of text must be wrapped in `

    ` tags. ### Posts vs Comments The `postsAndComments` array behavior depends on the platform: * **Thread-based platforms** (X, Threads, Bluesky): Each array item becomes a separate post in a thread * **Comment-based platforms** (LinkedIn, Facebook): First item is the post, remaining items are comments ### Multiple Posts To schedule multiple posts (e.g., 20 posts across different days), add multiple items to the `socialPost` array — each with its own `date` and `integrationId`. **Returns:** | Field | Type | Description | | ------------- | ------ | -------------------------------- | | `postId` | string | The created post ID | | `integration` | string | The integration it was posted to | If validation fails, returns `{ errors: string }` with details about what went wrong (e.g., content exceeds character limit). *** ## generateImageTool Generate an AI image to use as a post attachment. **Parameters:** | Field | Type | Required | Description | | -------- | ------ | -------- | ------------------------------------ | | `prompt` | string | Yes | Description of the image to generate | **Returns:** | Field | Type | Description | | ------ | ------ | -------------------------- | | `id` | string | Media ID | | `path` | string | URL of the generated image | Use the returned `path` in the `attachments` array when scheduling a post. *** ## generateVideoOptions List all available video generation types and their required parameters. **Parameters:** None **Returns:** An array of video generators, each with: | Field | Type | Description | | -------------- | ------ | --------------------------------------------------------- | | `type` | string | Video type identifier (e.g., `image-text-slides`, `veo3`) | | `output` | string | Supported orientations: `vertical\|horizontal` | | `tools` | array | Helper functions (call with `videoFunctionTool`) | | `customParams` | object | JSON schema of required parameters | ### Available Video Types | Type | Description | Requirements | | ----------------- | -------------------------------------- | -------------------------------------------------------- | | Image Text Slides | Slide-based videos with text-to-speech | `prompt`, `voice` (get voice ID via `videoFunctionTool`) | | Veo3 | AI-generated video with audio | `prompt`, optional `images` (max 3) | *** ## videoFunctionTool Execute helper functions for video generators. Use this to fetch required data before generating a video (e.g., listing available voices). **Parameters:** | Field | Type | Required | Description | | -------------- | ------ | -------- | ------------------------------------------------- | | `identifier` | string | Yes | Video type identifier from `generateVideoOptions` | | `functionName` | string | Yes | Function name from the video type's `tools` array | **Example:** Call with `identifier: "image-text-slides"` and `functionName: "loadVoices"` to get available ElevenLabs voice IDs. *** ## generateVideoTool Generate a video to use as a post attachment. **Parameters:** | Field | Type | Required | Description | | -------------- | ------ | -------- | ------------------------------------------------ | | `identifier` | string | Yes | Video type from `generateVideoOptions` | | `output` | string | Yes | `vertical` or `horizontal` | | `customParams` | array | Yes | Key-value pairs of parameters for the video type | Each item in `customParams`: | Field | Type | Description | | ------- | ------ | --------------- | | `key` | string | Parameter name | | `value` | any | Parameter value | **Returns:** | Field | Type | Description | | ----- | ------ | -------------------------- | | `url` | string | URL of the generated video | Use the returned `url` in the `attachments` array when scheduling a post. # Platform Analytics Source: https://docs.groniz.com/public-api/analytics/platform GET /analytics/{integration} Get analytics data for a specific integration/channel. Returns metrics like followers, impressions, engagement, etc. depending on the platform. ## Path parameter: `integration` The `{integration}` path parameter must be the integration's **`id`** (the UUID-shaped string returned by `GET /public/v1/integrations`). It is **not** the platform `__type` (e.g. `x`, `linkedin`) and **not** the channel display name. Passing either of those will return `400 Invalid integration`. ```bash theme={null} # Get the integration ID curl -H "Authorization: your-api-key" \ https://api.groniz.com/public/v1/integrations # Use the returned id curl -H "Authorization: your-api-key" \ https://api.groniz.com/public/v1/analytics/ ``` ## Common errors * `400 Invalid integration` — the path param is the wrong shape. * `404 Channel not found` — the integration exists but has been disconnected. Reconnect the channel from the Groniz UI. * Empty data — some platforms (notably Google My Business) restrict analytics by date range or by profile verification status. The endpoint returns an empty payload rather than an error. # Post Analytics Source: https://docs.groniz.com/public-api/analytics/post GET /analytics/post/{postId} Get analytics data for a specific published post. Returns metrics like likes, comments, shares, impressions, etc. depending on the platform. # Connect Channel (OAuth) Source: https://docs.groniz.com/public-api/integrations/connect GET /social/{integration} Generate an OAuth authorization URL for a given integration. Use this to connect a new social media channel. Only OAuth-based integrations are supported (integrations that require an external URL, such as Mastodon, are not available via this endpoint). # Delete Channel Source: https://docs.groniz.com/public-api/integrations/delete DELETE /integrations/{id} Delete a connected channel by its integration ID. Any scheduled posts associated with this channel will also be deleted. # Find Available Slot Source: https://docs.groniz.com/public-api/integrations/find-slot GET /find-slot/{id} Get the next available time slot for posting to a specific channel. # List Groups (Customers) Source: https://docs.groniz.com/public-api/integrations/groups GET /groups Returns all customers (groups) for your organization. Use a group ID to filter the integrations list. # Check Connection Source: https://docs.groniz.com/public-api/integrations/is-connected GET /is-connected Verify if your API key is valid and connected. # List Integrations Source: https://docs.groniz.com/public-api/integrations/list GET /integrations Returns all connected social media channels for your organization. # Get Settings & Tools Source: https://docs.groniz.com/public-api/integrations/settings GET /integration-settings/{id} Returns the posting rules, maximum content length, settings schema, and available provider tools for a connected channel. Use this to discover which tools can be executed with the trigger endpoint. # Trigger a Tool Source: https://docs.groniz.com/public-api/integrations/trigger POST /integration-trigger/{id} Executes a provider-specific tool on a connected channel, for example searching Instagram audio for Reels, listing Discord channels, or fetching Reddit flairs. Discover available tools with the integration settings endpoint. Some providers expose helper tools for fetching dynamic data needed when constructing post settings — for example searching [Instagram audio](/public-api/providers/instagram#audio) to attach to a Reel, listing Discord channels, or fetching Reddit flairs. Discover the tools available for a channel with the [settings endpoint](/public-api/integrations/settings) — each tool entry contains the `methodName` to pass here together with its parameter schema. # API Overview Source: https://docs.groniz.com/public-api/introduction Getting started with the Groniz Public API ## Clients & Integrations The API is plain HTTP + JSON, so any language works with a bare request. Two first-party clients wrap it for you: Drive the API from your terminal or a coding agent — `curl -fsSL https://groniz.com/install.sh | sh` Expose Groniz as tools to any MCP client (Claude, Cursor, …) at `https://mcp.groniz.com/mcp` ## Authentication There are two ways to authenticate with the Groniz API: ### API Key Get your API key from the [**API Keys**](https://groniz.com/console/connectors/api-keys) page in the console. Include it in the `Authorization` header: ```bash theme={null} curl -H "Authorization: your-api-key" https://api.groniz.com/public/v1/integrations ``` ### OAuth2 Token If you're building an app for other Groniz users, use [OAuth2 Authentication](/public-api/oauth) to get tokens that act on behalf of users. OAuth tokens start with `pos_` and are used the same way: ```bash theme={null} curl -H "Authorization: pos_your-oauth-token" https://api.groniz.com/public/v1/integrations ``` ## Base URL All requests go to: ``` https://api.groniz.com/public/v1 ``` ## Rate Limits **90 requests per hour** (100 for the cloud) limit applies to only the create post endpoint. This doesn't mean you can only post 90 times per hour—each API call counts as one request. Schedule multiple posts in a single request to maximize throughput. The rate limit is a single global value — it doesn't tier by subscription plan. Plans tier on channel and post-per-month quotas instead. ## Errors | Status | Meaning | | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `400 Bad Request` | The request body or path parameter is malformed (wrong shape, unknown enum, missing required field). | | `401 Unauthorized` | `Authorization` header is missing or the API key is unrecognised. | | `403 Forbidden` | The API key is valid but doesn't own the resource (e.g. you tried to delete a post in another organisation). | | `404 Not Found` | The endpoint doesn't exist, or the path parameter (integration ID, post ID) was correct format but no row matched. | | `413 Payload Too Large` | Your request body exceeded 50 MB on `/posts` — usually because images were base64-inlined instead of pre-uploaded. See [Uploads troubleshooting](/troubleshooting/uploads). | | `429 Too Many Requests` | You exceeded `API_LIMIT` per hour on the create-post endpoint. | | `5xx` | Server error — retry with exponential backoff. | For `DELETE` endpoints, `404` always means "already deleted" and is safe to ignore. A `500` *can* mean the same thing today because of a [known issue](/troubleshooting/known-issues) where a missing post ID surfaces as 500 instead of 404 — but only if the error matches that specific signature. Treat other `500` responses as real server errors: log them, retry with exponential backoff, and don't silently suppress them. ## Terminology The Groniz UI uses the term **channel**, while the API uses **integration**. They refer to the same thing—a connected social media account. ## Generate Output The easiest way to generate your post payloads is by using this wizard. It's the same wizard used to schedule posts in the Groniz app, but instead of scheduling, it generates the JSON payload for you to use in your API requests. Make sure you are signed in to the [console](https://groniz.com/console/connectors) first.