Skip to content

API Reference

Use the Vivreal API to fetch your content, create checkout sessions, and send emails

intermediate5 min readFor developers

API Reference

The Vivreal API lets you fetch your published content, create Stripe checkout sessions, and send contact emails — everything you need to power your website.

Quick Start

curl "https://client.vivreal.io/tenant/siteDetails?siteId=YOUR_SITE_ID" \
  -H "Authorization: YOUR_API_KEY"

Base URL: https://client.vivreal.io

Auth: API key in the Authorization header. Get yours from Group Settings in the Vivreal portal.

What You Can Do

EndpointDescription
GET /tenant/siteDetailsFetch your site's theme, logo, business info, and page config
GET /tenant/collectionObjectsFetch published items from any collection (blog posts, events, etc.)
GET /tenant/integrationObjectsFetch products synced from Stripe
GET /tenant/previewFetch draft content via a preview token
POST /tenant/createCheckoutSessionCreate a Stripe checkout session for purchases
POST /tenant/definedCollectionObjectSubmit user-generated content (reviews, signups)
POST /tenant/sendContactEmailSend a contact form submission to the site owner
POST /tenant/sendOrderPlacedEmailSend an order confirmation email to a customer

Server-side only

Call the API from your server or serverless functions (e.g., Next.js server components). Never expose your API key in client-side JavaScript.

Response Format

Every response uses a standard envelope:

{
  "success": true,
  "data": { ... },
  "error": null
}

Next Steps