Skip to the content
MenuOverview

Zentiq API

Zentiq API

A Zentiq avatar is someone your users talk to, live, by voice or by typing. It has a face, a voice and whatever you taught it. The API is how your own software runs all of that. Anything you can do in the console, your server can do with a key: make avatars and portals, add people, start conversations, read the results, collect what website visitors leave behind.

Try the key first. This call answers with your organization and what the key is allowed to do:

Shell
curl https://app.zentiqai.com/v1/me -H "Authorization: Bearer $ZENTIQ_API_KEY"
The basics
Base addresshttps://app.zentiqai.com/v1
AuthenticationAn organization API key, sent as Authorization: Bearer zq_live_…, from your server only
FormatJSON both ways. A success looks like { "data": …, "error": null, "requestId": … }, an error like { "error": { "code", "message" } }
Contract2026-10-01. Every key is pinned to a dated contract: see Versions
PlansAPI access comes with Monthly and Pay as you go (and Enterprise). Free has no API

Pick a starting point#

Most integrations look like one of the guides. Find yours and follow it from the top.

How the pieces fit#

Your server holds the key. It builds personas and portals, adds people, starts live sessions and reads results. The key never goes to a browser or into an app someone can download.

The browser gets a token instead. When a page needs a live avatar, your server starts a session and passes the browser a short-lived token for it. The browser joins with the browser SDK.

Zentiq tells you when something happens. Webhooks announce new leads, released results, screened candidates and more. Treat each one as a nudge: your server then fetches the details with the API, and the privacy rules apply to that request like any other.

Quickstart#

Three steps to a live avatar in your page. The full quickstart explains each one.

  1. Make a key. In the Zentiq console, open More → API Keys and choose Create a key. You see it once, so copy it straight into your server's settings.
  2. Start a session on your server, with a persona you made in the console or through the API:

    server.ts
    async function startSession(userId: string) {
      const token = await zentiq.createSessionToken(
        { personaId: process.env.ZENTIQ_PERSONA_ID ?? "", identity: userId },
        { idempotencyKey: `start-${userId}-${Date.now()}` },
      );
      // { sessionId, sessionToken, url, room, persona, disclosure, cc }: hand all of it to the browser.
      return token;
    }
  3. Join it from the browser. Show the AI disclosure, and end the session when the person leaves:

    browser.ts
    import { joinSession, type SessionToken } from "@zentiq/client";
    
    const token = (await fetch("/zentiq/session", { method: "POST" }).then((r) => r.json())) as SessionToken;
    
    // People must know they are talking to an AI: show the persona's words for the whole session.
    const disclosure = document.querySelector<HTMLElement>("#disclosure");
    if (disclosure && token.disclosure?.required) disclosure.textContent = token.disclosure.text;
    
    const session = await joinSession(token, {
      video: document.querySelector<HTMLVideoElement>("#avatar")!,
      onTranscript: (t) => {
        if (t.final) console.log(t.role === "user" ? "You" : t.speaker ?? token.persona.name, t.text);
      },
      onSpeaking: (who) => document.body.setAttribute("data-speaking", who),
    });

After that#

Keys and scopes shows how to give each integration only what it needs. Every request follows the same rules for errors, limits and paging and retries. The API reference lists every operation, built from the OpenAPI document. There are SDKs for Node, Python, the browser and React, and an MCP server for AI assistants.