O

Developer Integration Guide

Embed Orgvatar V-Avatars into your platform

For Platform Integrators

Embed Ava in Your Platform

This guide is for developers at platforms like 2percent.ai and Yassu.ai who want to embed Orgvatar's Virtual HR Manager (Ava Chen) directly into their platform. Your users can consult with Ava, receive a Virtual Org Blueprint, and subscribe to Orgvatar -- all without leaving your platform.

1

Get your Partner API Key

Go to Settings > API & Integrations in your Orgvatar dashboard and generate a Partner API key. Keep it secret -- never expose it in frontend code.

2

Provision your users

When a user on your platform wants to use Orgvatar, call the sync endpoint to provision them. This creates their startup profile in Orgvatar and returns a startupId.

3

Create an embed session

Generate a short-lived embed token for the user. Use this token to build the embed URL and load it in an iframe inside your platform.

4

Listen for events

The embedded Ava chat sends postMessage events to your parent window. Listen for consultation completion and subscription events to update your UI.

5

Handle the subscription webhook

When a user subscribes to Orgvatar after the consultation, Orgvatar fires a webhook to your registered endpoint with the subscription details.

Step 1: Get your Partner API Key

Generate a Partner API key in Settings > API & Integrations. Store it securely in your backend environment variables as ORGVATAR_API_KEY.

Security

Never expose your Partner API key in frontend code or client-side JavaScript. All API calls must be made from your backend server.

bash
# Verify your API key is working
curl https://orgvatar.ai/api/v1/partners/validate-key \
  -H "Authorization: Bearer YOUR_PARTNER_API_KEY"

# Response
{
  "valid": true,
  "startup": null,
  "plan": "growth",
  "keyName": "2percent.ai Integration",
  "connectedAt": "2026-03-13T10:00:00.000Z"
}

API Quick Reference

MethodEndpointPurposeAuth
GET/api/v1/partners/validate-keyVerify your API keyBearer
POST/api/v1/partners/users/syncProvision a userBearer
POST/api/v1/partners/sessions/createCreate embed session tokenBearer
GET/api/v1/partners/sessions/:token/statusPoll session / subscription statusBearer
POST/api/v1/partners/checkout/createCreate Stripe checkout for a userBearer
GET/api/v1/embed/session?token=...Validate embed token (frontend)Token
POST/api/v1/embed/chatSend message to Ava (frontend)Token
POST/api/v1/embed/checkoutCreate checkout from embed (frontend)Token

Ready to integrate?

Get your Partner API key, follow the 5 steps above, and your users will be consulting with Ava within the hour.

Questions? Email [email protected]