The API & Integrations page is your central hub for programmatic access, webhooks, and third-party connections. Manage API keys, set up webhooks, browse the marketplace, and build automations all in one place.
API Keys
Create and manage API keys for programmatic access to PromptOutput
Webhooks
Configure HTTPS endpoints to receive real-time event notifications
Integrations
Ready-to-use templates for Zapier, Make.com, and n8n automation
Request Logs
View recent API request history with status codes and response times
Marketplace
Browse and connect third-party integrations (CRM, helpdesk, etc.)
Connected
Manage active integration connections and their status
Automations
Build automated workflows using connected integrations
Create API keys to integrate PromptOutput with external services like Zapier, Make, or custom applications.
Creating an API Key:
Available Buttons:
Security Tips:
All API requests require authentication using your API key in the headers.
curl -X POST "https://api.promptoutput.ai/api-upload-source" \
-H "Authorization: Bearer YOUR_SUPABASE_ANON_KEY" \
-H "X-API-Key: pk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "text", "content": "Your content here"}'POST /api-upload-source
Upload content to use as a source for post generation
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | One of: text, url, youtube |
name | string | No | Display name for the source |
content | string | text only | Text content (required for type: text) |
url | string | url/youtube | URL to fetch (required for type: url or youtube) |
folder_id | string | No | UUID of folder to add source to |
webhook_url | string | No | One-time callback URL when processing completes |
curl -X POST "https://api.promptoutput.ai/api-upload-source" \
-H "Authorization: Bearer YOUR_ANON_KEY" \
-H "X-API-Key: pk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "text",
"name": "Product Launch Notes",
"content": "We are launching a new AI-powered feature..."
}'curl -X POST "https://api.promptoutput.ai/api-upload-source" \
-H "Authorization: Bearer YOUR_ANON_KEY" \
-H "X-API-Key: pk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "url",
"name": "Blog Article",
"url": "https://example.com/blog/article"
}'curl -X POST "https://api.promptoutput.ai/api-upload-source" \
-H "Authorization: Bearer YOUR_ANON_KEY" \
-H "X-API-Key: pk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "youtube",
"url": "https://www.youtube.com/watch?v=VIDEO_ID"
}'curl -X POST "https://api.promptoutput.ai/api-upload-source" \
-H "Authorization: Bearer YOUR_ANON_KEY" \
-H "X-API-Key: pk_live_YOUR_KEY" \
-F "file=@document.pdf" \
-F "name=Q4 Report"{
"success": true,
"data": {
"source_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Product Launch Notes",
"type": "txt",
"status": "ready"
}
}POST /api-generate-post
Generate social media posts from your sources
| Field | Type | Required | Description |
|---|---|---|---|
source_id | string | Yes* | UUID of source to use |
source_ids | string[] | Yes* | Array of source UUIDs (alternative to source_id) |
platforms | string[] | Yes | linkedin, twitter, facebook, instagram, youtube, tiktok, substack, reddit |
prompt | string | No | Additional instructions for generation |
tone | string | No | e.g., "professional", "casual", "humorous" |
save_posts | boolean | No | Save generated posts to library (default: true) |
webhook_url | string | No | Callback URL when generation completes |
* Either source_id or source_ids is required
curl -X POST "https://api.promptoutput.ai/api-generate-post" \
-H "Authorization: Bearer YOUR_ANON_KEY" \
-H "X-API-Key: pk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"source_id": "550e8400-e29b-41d4-a716-446655440000",
"platforms": ["linkedin", "twitter"],
"tone": "professional",
"prompt": "Focus on the AI automation benefits"
}'{
"success": true,
"data": {
"posts": [
{
"platform": "linkedin",
"content": "Excited to share our latest innovation...",
"post_id": "660e8400-e29b-41d4-a716-446655440001"
},
{
"platform": "twitter",
"content": "AI is transforming how we create content...",
"post_id": "660e8400-e29b-41d4-a716-446655440002"
}
],
"source_ids": ["550e8400-e29b-41d4-a716-446655440000"]
}
}Receive real-time notifications when events occur in your account. Webhooks allow external services to be notified instantly.
Creating a Webhook:
Available Events:
source.readySource finished processing successfullysource.failedSource processing failedpost.generatedPost was generated from a sourcepost.publishedPost was published to social mediaAvailable Buttons:
Note: Webhooks must use HTTPS. Internal/private network URLs are blocked for security.
When events occur, webhooks receive JSON payloads with event details.
Triggered when a source finishes processing successfully
Triggered when a source fails to process
Triggered when posts are generated from a source
Triggered when a post is published to social media
{
"event": "source.ready",
"source_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Product Launch Notes",
"type": "txt",
"timestamp": "2024-01-15T10:30:00Z"
}Common error responses and their meanings when working with the API.
| Code | Status | Description |
|---|---|---|
400 | Bad Request | Invalid request body or missing required fields |
401 | Unauthorized | Missing or invalid API key |
403 | Forbidden | API key lacks required permissions |
404 | Not Found | Source or resource not found |
429 | Rate Limited | Too many requests, try again later |
500 | Server Error | Internal server error |
Ready-to-use configuration templates for popular automation platforms.
n8n Workflow
Open-source automation tool with HTTP Request node
Zapier Zap
Connect 5,000+ apps using Webhooks by Zapier
Make.com Scenario
Visual workflow builder with HTTP module
Full API Documentation
Complete API reference with examples for upload sources and generate posts endpoints.
View the last 50 API requests made to your account. Useful for debugging and monitoring.
Information Displayed:
Tip: Use request logs to troubleshoot failed API calls and monitor usage patterns.
Browse and connect to third-party services organized by category.
CRM
HubSpot, Salesforce, Pipedrive, Zoho
Email Marketing
Mailchimp, ConvertKit, ActiveCampaign
Helpdesk
Zendesk, Intercom, Freshdesk
Analytics
Google Analytics, Mixpanel
Storage
Dropbox, Google Drive
E-commerce
Shopify, WooCommerce, BigCommerce
Messaging
Slack, Microsoft Teams
Custom
Webhooks, Custom integrations
Available Buttons:
Add your own custom integrations to the marketplace for your organization.
View and manage all your active integration connections.
View Status
Connected, Error, or Expired indicators
Refresh Token
Renew expired OAuth tokens
View Details
Account info and last sync time
Disconnect
Remove integration connection
Available Buttons:
Build automated workflows that connect triggers from one integration to actions in another. This requires at least one connected integration with available triggers and actions.
Creating an Automation:
Available Buttons:
Important Distinction
These are two different features that serve different purposes. Understanding the difference helps you choose the right tool.
Located in API & Integrations page. For connecting external integrations.
Separate menu item. For reacting to social media events.
Quick Reference:
| Feature | Automations (Integrations) | Automation Rules |
|---|---|---|
| Location | API & Integrations → Automations tab | Separate menu item |
| Scope | External integrations | Social media events |
| Use When | Connecting CRM, helpdesk, etc. | Responding to engagement |
| Requires | Connected integrations | No external connections |