API Publishing and Embedding
Deploy PromptOwl prompts as REST APIs, generate API keys, embed chatbots via iframe, and integrate AI into your applications.
Table of Contents
Publishing Overview
What You Can Do
Feature
Description
Integration Options
Method
Best For
Making a Prompt Live
Publishing a Prompt

Live vs Draft Status
Status
API Access
Internal Use
Checking Publish Status
Generating API Keys
Creating an API Key

API Key Format
Important: Save Your Key
Warning
Details
Regenerating Keys
Key Properties
Property
Description
Using the API
Endpoint
Authentication
Basic Request
Request Body
Field
Type
Required
Description
Response Format
Response Fields
Field
Description
Embedding Chatbots
Getting Embed Code

iFrame Embed
JavaScript Embed
Embed Parameters
Parameter
Description
Example
Customizing Embedded Chat
Color Customization
Setting
Description

Branding Options
Option
Description
Size Recommendations
Use Case
Width
Height
Variables and Parameters
Using Variables
Variable Syntax
Overriding LLM Settings
Available LLM Settings
Setting
Description
Range
Streaming Responses
Enabling Streaming
Handling Streamed Response
Streaming Benefits
Benefit
Description
Conversation Management
Continuing Conversations
Using Previous Messages
Session ID Best Practices
Use Case
Session ID Pattern
Security Considerations
API Key Security
Do
Don't
Backend Proxy Pattern
CORS
Rate Limiting
Best Practices
API Integration
Embedded Chat
Performance
Troubleshooting
"PromptOwl API key not found"
"Invalid API key"
"This prompt is not live"
Empty or Error Responses
Embed Not Loading
Streaming Not Working
Quick Reference
API Endpoint
Minimum Request
Full Request Options
HTTP Status Codes
Code
Meaning
Embed Template
Related Guides
Last updated