posts:create
Create and schedule a new post to one or more social media platforms.Usage
Options
Post or comment content. Can be used multiple times for threads/comments.
Comma-separated media URLs. Can be used multiple times to pair with corresponding content.
Comma-separated list of integration IDs. Get IDs from
integrations:list.Schedule date in ISO 8601 format. Required even for drafts.
Post type:
schedule or draft.Delay in milliseconds between comments/thread items.
Use short links in post content.
Platform-specific settings as JSON string.
Path to JSON file with full post structure. Overrides all other options.
Examples
posts:list
List scheduled and published posts within a date range.Usage
Options
Start date in ISO 8601 format. Default: 30 days ago.
End date in ISO 8601 format. Default: 30 days from now.
Filter by customer ID (for multi-tenant setups).
Examples
posts:delete
Delete a scheduled or draft post by ID.Usage
Arguments
Post ID to delete. Get from
posts:list.Examples
integrations:list
List all connected social media integrations.Usage
Examples
integrations:settings
Get platform-specific settings schema for an integration.Usage
Arguments
Integration ID. Get from
integrations:list.Examples
integrations:trigger
Trigger an integration tool to fetch additional data (e.g., subreddits, playlists).Usage
Arguments
Integration ID. Get from
integrations:list.Method name from the integration’s available tools. Get from
integrations:settings.Options
Data to pass to the tool as JSON string.
Examples
upload
Upload a media file (image, video, document).Usage
Arguments
Path to the file to upload.
Examples
Global Options
—help, -h
Display help information for any command.—version, -v
Display CLI version.Exit Codes
The CLI uses standard exit codes:0- Success1- Error (invalid arguments, API error, authentication failure, etc.)
Environment Variables
Your Postiz API key. Required for all commands.
Custom API URL for self-hosted instances. Default:
https://api.postiz.comNext Steps
CLI Overview
Learn more about the CLI
API Reference
Full API documentation
Node.js SDK
Use the programmatic SDK
API Overview
View API documentation