# Cloutly Embed Overview

Cloutly Embed lets you run the Cloutly experience inside your own app while keeping your users and businesses synced from your platform.

## What You Can Build

* Embed the Cloutly app in your dashboard via iframe.
* Provision users and businesses on the fly with a signed JWT.
* Use REST APIs to read businesses and reviews, send invites, and post replies.
* Render ready-made widgets or build custom UI on top of API data.

## Two Parts, One Spec

1. **REST API**
   * Base domain: `https://app.cloutly.com/api/v1`
   * API key auth via `x-api-key`
   * Endpoints for businesses, reviews, review replies, and review invites
2. **Cloutly Embed**
   * Signed JWT from your backend
   * Claims identify the user and business context
   * Automatic upsert of user/business when the iframe session starts

## Why Teams Use Cloutly Embed

* Avoid building and maintaining review collection workflows from scratch.
* Avoid managing direct integrations for every review source.
* Ship AI-powered review insights inside your existing product UX.
* Keep account management and provisioning in your control.

## High-Level Architecture

```mermaid
flowchart LR
  yourUser[Your User] --> yourApp[Your App Frontend]
  yourApp --> yourApi[Your Backend API]
  yourApi -->|x-api-key| cloutlyRest[Cloutly REST API]
  yourApi -->|signed JWT| cloutlyEmbed[Cloutly Embed]
  cloutlyEmbed -->|iframe| yourApp
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloutly.com/reviews-sdk-for-marketplace-websites/introduction/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
