Skip to main content

ProductFlo API Quickstart

This guide will help you get started with the ProductFlo API, focusing on the real-time WebSocket functionality. You’ll learn how to connect, authenticate, send messages, and handle responses.

Authentication

Before using the API, you need to authenticate:

WebSocket Connection

Connect to the WebSocket API

Handle Messages

Send Messages

Join a Room

Send a Chat Message

Request AI-Generated Content

Advanced Usage

Room-Based Communication

ProductFlo uses rooms for efficient message routing:

Presence Updates

Track when users come online or go offline:

Error Handling

Handle errors from the WebSocket API:

Framework-Specific Examples

Next Steps