Skip to main content
This guide explains how to integrate the Captide API into your React frontend application.
Never expose your Captide API key in frontend code! Always use a backend proxy as shown in the Backend Integration guide.

React Integration

Basic Document Viewer Setup

Here’s how to set up the Captide document viewer component in a React application:

Streaming Response Example

For handling streaming responses from the AI agent:

Next.js Integration

If you’re using Next.js, you can create API routes to proxy requests to Captide:
To see a live example of a user interface built with the Captide API and document viewer, visit app.captide.co/chat.