Skip to the content
MenuPortals and subjects

Concepts

Portals and subjects

A portal (portal_…) is a ready-made experience people sign in to: a sales trainer, a maths tutor, a website receptionist, candidate screening. You build one from templates: GET /v1/portals/templates lists them, with whether the organization's plan includes each.

Each template becomes a subject (sub_…) on the portal: what is practiced, taught, answered or screened, with its own content (the facts, the scenarios, the questions, the FAQs). A subject can sit on more than one portal. Who speaks is the portal's persona.

Drafts and going live#

Nothing reaches people until you publish it.

  • A new portal is a draft. Its subjects start from the template's example content, which is never allowed live.
  • Subject content is edited as draft versions: GET /v1/subjects/{id}/content, then PATCH /v1/subjects/{id}/content. Each save is a new version; baseVersion stops you overwriting someone else's newer draft (409 version_conflict).
  • The go-live check says what is still missing, in plain words: GET /v1/subjects/{id}/go-live and GET /v1/portals/{id}/go-live answer { ready, problems, warnings }.
  • Publishing makes the draft live: POST /v1/subjects/{id}/publish, then POST /v1/portals/{id}/publish. A publish the check refuses is 422 go_live_refused, with details.problems; nothing changes.

On the 2026-07-08 contract, a refused portal publish still answers 200 with the draft unchanged and a publishRefused message. Creating a portal with publish: true answers 201 on every contract: check its status (and publishRefused) before you send anyone to it.

Doors: how people come in#

DoorWhoHow
MembersThe organization's own peopleThe portal's address, https://app.zentiqai.com/d/<organisation>/<portal>, with the sign-in methods you chose (loginMethods).
VisitorsAnyone on your website (receptionist, support, leads, bookings)The visitor page https://app.zentiqai.com/v/<organisation>/<portal>, as a frame, a button or a link; opened with PUT /v1/portals/{id}/doors/visitors, for the websites you list.
EmbedThe people already signed in to your appYour server asks for a five-minute, single-use embed token for each person (POST /v1/portals/{id}/embed-tokens), and your page mounts the portal with it.
Your domainEveryoneA subdomain of yours pointing at the portal's sign-in (PUT /v1/portals/{id}/domain, below).

GET /v1/portals/{id}/doors shows which are open. An embed token works only on a published portal. A learner's or observer's token needs embed:write; a leader's token, signing in someone who already holds a leader's place, or linking an existing account by its email needs people:write as well, and a leader always gets a team (the portal's, unitId or unitName), never the whole organization.

Subjects on a portal#

POST /v1/portals/{id}/subjects adds one more subject, built from a template ({ "template": "sales-trainer", "name": "Price objections" }). It answers the new subject (201): a draft with the template's example content, so set it up and publish it as above before people meet it. The template's portal family must be on your plan (403 upgrade_required).

DELETE /v1/portals/{id}/subjects/{subjectId} takes a subject off the portal and answers the portal. The subject itself, its content, versions and memory stay, and so does its place on any other portal.

Your own domain#

A portal can open at a subdomain you own, such as learn.example.com. Your own domain is a plan feature.

  1. PUT /v1/portals/{id}/domain with { "domain": "learn.example.com" }. The answer's instructions is the DNS record to add at your domain's provider: a CNAME from your subdomain to Zentiq.
  2. POST /v1/portals/{id}/domain/verify checks the record. Until it is there, the answer is 200 with verified: false and problem in plain words. DNS changes can take a while, so check again later. Once the record points at Zentiq, the domain is verified and its certificate is set up (certificate).
  3. People open the portal at your domain while it is published.

GET /v1/portals/{id}/domain reads the domain and whether it is verified. DELETE /v1/portals/{id}/domain removes it, on any plan; the portal's own addresses keep working. A domain another portal uses is 409 conflict (details.reason: domain_taken).

Private portals#

A website portal can be private: only the people you invite can open it. They type their email address on the portal's page and get a sign-in link by email.

  • PUT /v1/portals/{id}/private with { "on": true, "people": [{ "email": "ann@example.com", "name": "Ann" }] }. people replaces the whole list (up to 50). A private portal needs at least one person on the list.
  • Taking someone off the list closes the portal to them at once.
  • { "on": false } opens it to anyone again. Because that opens a door, it needs portals:publish as well as portals:write.
  • GET /v1/portals/{id}/private reads it. The list holds email addresses, so people is null for a key without portals:write; count is always there.

Kiosk mode#

A website portal can run full screen on a screen in your premises: a shop, a reception, a museum. Visitors tap to talk, with no sign-in and no links away, and the screen clears everything after each conversation. Staff leave kiosk mode with a long press in a corner and an exit PIN.

  • PUT /v1/portals/{id}/kiosk with { "on": true, "pin": "4071" } switches it on. The PIN is 4 to 8 digits, not one digit repeated and not a run like 1234. It is never returned (pinSet says one is set), so keep it where your staff can find it. Send a new pin to change it.
  • address is the address to open on the screen. Anyone with it can use the kiosk, so keep it to the screen. { "newAddress": true } makes a new one, and the old one stops at once.
  • silenceSec (20 to 300, 45 by default) is how long the screen waits, with nothing said or typed, before it ends the conversation and resets.
  • Kiosk mode also needs your organization's kiosk switch (serve.kiosk). When it is off, switching a kiosk on switches it on too for a key that also holds settings:write, as the console does for an owner or admin. Any other key gets 409 conflict with details.reason: switched_off: ask an owner or admin to switch kiosk mode on in Settings.
  • A portal that isn't a website portal (one with a job interview on it, or no website subject) is 409 conflict with details.reason: not_website.

GET /v1/portals/{id}/kiosk reads it.

Deleting a portal#

DELETE /v1/portals/{id} does what Delete does in the console: the portal is archived, not erased.

  • Nobody reaches it any more: its sign-in page, visitor page, embed tokens, kiosk and your own domain stop opening it. Conversations already under way finish.
  • It leaves GET /v1/portals, and GET /v1/portals/{id} answers 410 gone.
  • Its subjects with their content and memory, and its sessions, results and records, all stay.
  • POST /v1/portals/{id}/publish brings it back, within your plan's portal limit.

Every change on this page sends portal.updated to your webhooks, saying which part changed. Email addresses and the kiosk PIN are never in it.

The website widget#

A persona's widget puts it in a corner of every page of your website with one line of code (GET and PUT /v1/personas/{id}/widget). Behind it is a small portal of its own, kept out of GET /v1/portals: the widget is managed through the persona. See An avatar on your website.

Who speaks#

GET /v1/portals/{id}/persona and PUT /v1/portals/{id}/persona read and change who speaks on a portal: the face and the voice by id (avatarId, voiceId), their character and greeting. A portal can also use one of your personas, a duo among them, given as personaId when you create it. That persona speaks elsewhere too, so using it, or changing it from the portal, needs personas:write as well as portals:write; a portal's own persona needs portals:write only.