Portals
Portals built from templates, and their doors.
/v1/portalsList portals
The organisation's portals, oldest first, a page at a time. Published ones unless status says otherwise; archived ones are never listed, and neither are the hidden portals behind personas' website widgets.
Query parameters
limitintegerPage size, 1-200 (default 50).
cursorstringThe
nextCursorof the previous page.status"published" | "draft" | "all"published(the default),draft, orall(both). Archived portals are never listed.unitIdstringOnly the portals of this team or class (
unit_…).
Returns
200 A page of portals. A page: data is a list of Portal, and nextCursor fetches the next page.
Fields of data
idstringrequiredPortal id (
portal_…).namestringrequiredslugstringrequiredstatus"draft" | "published" | "archived"requireddraftuntil published; people only reach a published portal.group"learn" | "train" | "serve" | "assess" | "mixed" | nullrequiredIts subjects' group,
mixedwhen they differ; null without subjects.welcomestring | nullrequiredaddressstringrequiredWhere people open it: the sign-in page, or the verified custom domain.
addressesobjectrequiredmembersstringrequiredThe sign-in page (
/d/<org>/<portal>).visitorsstring | nullrequiredThe visitor page (
/v/<org>/<portal>) when a subject opens to visitors; null otherwise.embedstringrequiredWhat an iframe mounts, with
?t=<embed token>.
loginMethods("email" | "login_card" | "class_code" | "visitor")[]requiredunitIdstring | nullrequiredThe team or class it is for; null = the whole organisation.
personaIdstring | nullrequiredWho speaks on it.
brandobjectrequiredprimarystring | nullrequired#rrggbblogoUrlstring | nullrequiredmode"light" | "dark" | "system" | nullrequired
domainobject | nullrequiredThe organisation's own address for it, when one is set.
namestringrequiredverifiedbooleanrequiredverifiedAtstring (date-time) | nullrequired
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
updatedAtstring (date-time)requiredISO 8601 UTC timestamp.
publishRefusedstringOnly when a publish was asked for and the go-live check refused it (
POST /portalswithpublish: true;POST /portals/{id}/publishfor keys on 2026-07-08): what to finish first. The portal stays a draft.
Errors
invalid_requestunauthorizedforbiddenupgrade_requiredrate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals?limit=20" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const page = await zentiq.listPortals({
limit: 20,
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
page = zentiq.list_portals(limit=20)Response
{
"data": [
{
"id": "portal_cmfq2b7x10000abcd1234",
"name": "Zoe",
"slug": "…",
"status": "draft",
"group": "learn",
"welcome": "…"
}
],
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d",
"nextCursor": null
}/v1/portalsBuild a portal from templates
Builds a portal with one subject per template (GET /portals/templates), and its own persona unless personaId is given. It starts as a draft: nobody meets it half set up. With publish: true (needs portals:publish) it is published once it passes the go-live check, together with its subjects; otherwise it stays a draft and publishRefused says what to finish first. Each template's family must be on the plan and one more portal must fit it (403 upgrade_required). A duo persona speaks only once it is live (409 duo_not_live). Website and screening portals open to visitors (their door opens once published) for a key holding portals:publish; without it they stay closed to visitors, and visitor in loginMethods is 403, as on update. Speaking with an existing persona (personaId) needs personas:write as well: that persona speaks elsewhere too (403).
Body
namestringrequired1-80 characters
templatesstring[]Template keys from
GET /portals/templates; one subject each.at most 12 items
templatestringdeprecatedOne template (the 2026-07-08 form of
templates).1-60 characters
personaIdstringA persona of yours to speak on every subject; left out = the portal gets its own.
unitIdstring | nullThe team or class it is for; left out or null = the whole organisation.
welcomestring | nullloginMethods("email" | "login_card" | "class_code" | "visitor")[]publishbooleanPublish it once it passes the go-live check (needs
portals:publish); otherwise it stays a draft andpublishRefusedsays why.
Returns
201 The portal (a draft unless it was published). data is Portal.
Fields of data
idstringrequiredPortal id (
portal_…).namestringrequiredslugstringrequiredstatus"draft" | "published" | "archived"requireddraftuntil published; people only reach a published portal.group"learn" | "train" | "serve" | "assess" | "mixed" | nullrequiredIts subjects' group,
mixedwhen they differ; null without subjects.welcomestring | nullrequiredaddressstringrequiredWhere people open it: the sign-in page, or the verified custom domain.
addressesobjectrequiredmembersstringrequiredThe sign-in page (
/d/<org>/<portal>).visitorsstring | nullrequiredThe visitor page (
/v/<org>/<portal>) when a subject opens to visitors; null otherwise.embedstringrequiredWhat an iframe mounts, with
?t=<embed token>.
loginMethods("email" | "login_card" | "class_code" | "visitor")[]requiredunitIdstring | nullrequiredThe team or class it is for; null = the whole organisation.
personaIdstring | nullrequiredWho speaks on it.
brandobjectrequiredprimarystring | nullrequired#rrggbblogoUrlstring | nullrequiredmode"light" | "dark" | "system" | nullrequired
domainobject | nullrequiredThe organisation's own address for it, when one is set.
namestringrequiredverifiedbooleanrequiredverifiedAtstring (date-time) | nullrequired
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
updatedAtstring (date-time)requiredISO 8601 UTC timestamp.
publishRefusedstringOnly when a publish was asked for and the go-live check refused it (
POST /portalswithpublish: true;POST /portals/{id}/publishfor keys on 2026-07-08): what to finish first. The portal stays a draft.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictduo_not_liveidempotency_conflictidempotency_in_progressrate_limitedserver_error
Events
portal.createdworkspace.createdportal.updatedworkspace.published
Request
curl -X POST "https://app.zentiqai.com/v1/portals" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Zoe"
}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.createPortal({
name: "Zoe",
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.create_portal({
"name": "Zoe",
})Response
{
"data": {
"id": "portal_cmfq2b7x10000abcd1234",
"name": "Zoe",
"slug": "…",
"status": "draft",
"group": "learn",
"welcome": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/templatesPortal templates (the gallery)
The templates POST /portals builds subjects from, with what each needs from the plan and whether the organisation's plan includes it. Templates written for two people (duos) are listed where the duo builder is open for the organisation.
Returns
200 The templates. data is a list of PortalTemplate.
Fields of data
keystringrequiredWhat
POST /portalstakes intemplates.group"Learn" | "Train" | "Serve" | "Assess"requiredlabelstringrequireddescriptionstringrequiredavailablebooleanrequiredIt can be built today.
kind"tutor" | "roleplay" | "assessor" | "service"requiredWhat the avatar does:
tutorteaches,roleplayplays someone to practise with,assessorasks and scores,servicetalks to website visitors.duobooleanrequiredWritten for two people in one conversation (needs a duo).
requiresstring[]requiredThe plan features it needs (its portal family, candidate screening, ready-made duos).
includedInPlanbooleanrequiredThe organisation's plan has every feature it needs.
Errors
invalid_requestunauthorizedforbiddenupgrade_requiredrate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/templates" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.listPortalTemplates();import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.list_portal_templates()Response
{
"data": [
{
"key": "sales-trainer",
"group": "Learn",
"label": "…",
"description": "…",
"available": true,
"kind": "tutor"
}
],
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}Get a portal
One portal, draft or published. An archived one is 410 gone.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 The portal. data is Portal.
Fields of data
idstringrequiredPortal id (
portal_…).namestringrequiredslugstringrequiredstatus"draft" | "published" | "archived"requireddraftuntil published; people only reach a published portal.group"learn" | "train" | "serve" | "assess" | "mixed" | nullrequiredIts subjects' group,
mixedwhen they differ; null without subjects.welcomestring | nullrequiredaddressstringrequiredWhere people open it: the sign-in page, or the verified custom domain.
addressesobjectrequiredmembersstringrequiredThe sign-in page (
/d/<org>/<portal>).visitorsstring | nullrequiredThe visitor page (
/v/<org>/<portal>) when a subject opens to visitors; null otherwise.embedstringrequiredWhat an iframe mounts, with
?t=<embed token>.
loginMethods("email" | "login_card" | "class_code" | "visitor")[]requiredunitIdstring | nullrequiredThe team or class it is for; null = the whole organisation.
personaIdstring | nullrequiredWho speaks on it.
brandobjectrequiredprimarystring | nullrequired#rrggbblogoUrlstring | nullrequiredmode"light" | "dark" | "system" | nullrequired
domainobject | nullrequiredThe organisation's own address for it, when one is set.
namestringrequiredverifiedbooleanrequiredverifiedAtstring (date-time) | nullrequired
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
updatedAtstring (date-time)requiredISO 8601 UTC timestamp.
publishRefusedstringOnly when a publish was asked for and the go-live check refused it (
POST /portalswithpublish: true;POST /portals/{id}/publishfor keys on 2026-07-08): what to finish first. The portal stays a draft.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundgonerate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/ID" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.getPortal("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.get_portal("ID")Response
{
"data": {
"id": "portal_cmfq2b7x10000abcd1234",
"name": "Zoe",
"slug": "…",
"status": "draft",
"group": "learn",
"welcome": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}Update a portal
Changes its name, the sign-in page's welcome line, how people sign in, its team, who speaks on it or its brand: the changes the console's Settings make, with its rules. Adding visitor to loginMethods opens it to visitors (needs portals:publish; on a published portal, the go-live check runs first: 422 go_live_refused). Publishing is POST /portals/{id}/publish. Pointing it at a persona that isn't its own (personaId: a standalone persona, a website widget's or another portal's) needs personas:write as well (403). An archived portal is 410 gone; a website widget's portal is 409 conflict (change it with PUT /personas/{id}/widget).
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
namestring1-80 characters
welcomestring | nullloginMethods("email" | "login_card" | "class_code" | "visitor")[]Adding
visitoropens it to visitors: needsportals:publish, and runs the go-live check on a published portal.unitIdstring | nullpersonaIdstringOne of your personas to speak on it instead of its own.
brandobjectprimarystring | null#rrggbbor a colour name (green); null goes back to the organisation's colour.mode"light" | "dark" | "system" | nullhideZentiqBadgeboolean | nullHonoured when the plan includes removing the badge.
Returns
200 The portal as it now stands. data is Portal.
Fields of data
idstringrequiredPortal id (
portal_…).namestringrequiredslugstringrequiredstatus"draft" | "published" | "archived"requireddraftuntil published; people only reach a published portal.group"learn" | "train" | "serve" | "assess" | "mixed" | nullrequiredIts subjects' group,
mixedwhen they differ; null without subjects.welcomestring | nullrequiredaddressstringrequiredWhere people open it: the sign-in page, or the verified custom domain.
addressesobjectrequiredmembersstringrequiredThe sign-in page (
/d/<org>/<portal>).visitorsstring | nullrequiredThe visitor page (
/v/<org>/<portal>) when a subject opens to visitors; null otherwise.embedstringrequiredWhat an iframe mounts, with
?t=<embed token>.
loginMethods("email" | "login_card" | "class_code" | "visitor")[]requiredunitIdstring | nullrequiredThe team or class it is for; null = the whole organisation.
personaIdstring | nullrequiredWho speaks on it.
brandobjectrequiredprimarystring | nullrequired#rrggbblogoUrlstring | nullrequiredmode"light" | "dark" | "system" | nullrequired
domainobject | nullrequiredThe organisation's own address for it, when one is set.
namestringrequiredverifiedbooleanrequiredverifiedAtstring (date-time) | nullrequired
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
updatedAtstring (date-time)requiredISO 8601 UTC timestamp.
publishRefusedstringOnly when a publish was asked for and the go-live check refused it (
POST /portalswithpublish: true;POST /portals/{id}/publishfor keys on 2026-07-08): what to finish first. The portal stays a draft.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictduo_not_livegonego_live_refusedrate_limitedserver_error
Events
Request
curl -X PATCH "https://app.zentiqai.com/v1/portals/ID" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.updatePortal("ID", {});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.update_portal("ID", {})Response
{
"data": {
"id": "portal_cmfq2b7x10000abcd1234",
"name": "Zoe",
"slug": "…",
"status": "draft",
"group": "learn",
"welcome": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}Delete (archive) a portal
The console's Delete: the portal is archived, never erased. Nobody reaches it any more: its sign-in page, visitor page, embed tokens, kiosk and your own domain stop opening it, and it leaves GET /portals (GET /portals/{id} answers 410 gone). Conversations already under way finish. Its subjects with their content and memory, and its sessions, results and records, all stay; a subject on another portal stays there. POST /portals/{id}/publish brings it back, within the plan's portal limit. Records portal.updated (status: archived). An archived portal is answered the same again. A website widget's portal is 409 conflict (switch the widget off with PUT /personas/{id}/widget).
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 Archived. data is PortalArchived.
Fields of data
idstringrequiredPortal id (
portal_…).archivedtruerequired
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictrate_limitedserver_error
Events
Request
curl -X DELETE "https://app.zentiqai.com/v1/portals/ID" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.deletePortal("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.delete_portal("ID")Response
{
"data": {
"id": "portal_cmfq2b7x10000abcd1234",
"archived": true
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/personaWho speaks on a portal
An archived portal is 410 gone.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 Who speaks. data is PortalPersona.
Fields of data
idstringrequiredPersona id (
pa_…).pattern `^pa_.*`
namestringrequiredfacestring | nullrequiredThe face's name.
voicestring | nullrequiredThe voice's name.
avatarIdstring | nullrequiredvoiceIdstring | nullrequiredaccentstring | nullrequiredgreetingstring | nullrequiredcharacterstringrequiredlanguagestringrequiredThe language it speaks (a name from
GET /languages): English unless set.readybooleanrequiredIt has a face and a voice: people can talk to it.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundgonerate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/ID/persona" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.getPortalPersona("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.get_portal_persona("ID")Response
{
"data": {
"id": "pa_cmfq2b7x10000abcd1234",
"name": "Zoe",
"face": "…",
"voice": "…",
"avatarId": "av_cmfq2b7x10000abcd1234",
"voiceId": "vo_cmfq2b7x10000abcd1234"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/personaChange who speaks on a portal
The console's Persona tab over the API. The face and voice by id (avatarId from GET /avatars, voiceId from GET /voices); face and voice by name still work and are deprecated. accent in plain words (British, Australian). character and greeting are set word for word within the console's limits (character 4,000, greeting 300, name 80 characters; longer is 413). A duo keeps its two people (409 conflict). With portals:write this changes the portal's own persona only; one it borrows (a standalone persona, a website widget's or another portal's) changes wherever else it speaks, so it needs personas:write as well (403). An archived portal is 410 gone.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
avatarIdstringA face (
av_…) fromGET /avatars.voiceIdstringA voice (
vo_…) fromGET /voices.facestringdeprecatedA library face by first name ("Marcus"). Prefer
avatarId.at most 40 characters
voicestringdeprecatedA studio voice by name ("James"). Prefer
voiceId.at most 40 characters
accentstringIn plain words ("British").
at most 60 characters
characterstringWho they are and how they behave, word for word (up to 4,000 characters; longer is 413).
greetingstringTheir first line (up to 300 characters).
namestringUp to 80 characters.
languagestringThe language it speaks: a name or code from
GET /languages("German", "es"); one it doesn't know is400. A duo speaks one of its ten.at most 80 characters
Returns
200 Who speaks now. data is PortalPersona.
Fields of data
idstringrequiredPersona id (
pa_…).pattern `^pa_.*`
namestringrequiredfacestring | nullrequiredThe face's name.
voicestring | nullrequiredThe voice's name.
avatarIdstring | nullrequiredvoiceIdstring | nullrequiredaccentstring | nullrequiredgreetingstring | nullrequiredcharacterstringrequiredlanguagestringrequiredThe language it speaks (a name from
GET /languages): English unless set.readybooleanrequiredIt has a face and a voice: people can talk to it.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgonetoo_largerate_limitedserver_error
Events
Request
curl -X PUT "https://app.zentiqai.com/v1/portals/ID/persona" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.updatePortalPersona("ID", {});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.update_portal_persona("ID", {})Response
{
"data": {
"id": "pa_cmfq2b7x10000abcd1234",
"name": "Zoe",
"face": "…",
"voice": "…",
"avatarId": "av_cmfq2b7x10000abcd1234",
"voiceId": "vo_cmfq2b7x10000abcd1234"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/publishPublish a portal
Opens a draft (or brings back an archived) portal at its address, once it passes the go-live check (every subject set up with the organisation's own details, never a template's example content); its draft subjects are published with it. A refusal is 422 go_live_refused with details.problems for keys on 2026-10-01; keys on 2026-07-08 get the portal back unchanged (200) with publishRefused. Bringing back an archived portal must fit the plan's portal limit (403 upgrade_required). Already published: returned unchanged.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 The portal. data is Portal.
Fields of data
idstringrequiredPortal id (
portal_…).namestringrequiredslugstringrequiredstatus"draft" | "published" | "archived"requireddraftuntil published; people only reach a published portal.group"learn" | "train" | "serve" | "assess" | "mixed" | nullrequiredIts subjects' group,
mixedwhen they differ; null without subjects.welcomestring | nullrequiredaddressstringrequiredWhere people open it: the sign-in page, or the verified custom domain.
addressesobjectrequiredmembersstringrequiredThe sign-in page (
/d/<org>/<portal>).visitorsstring | nullrequiredThe visitor page (
/v/<org>/<portal>) when a subject opens to visitors; null otherwise.embedstringrequiredWhat an iframe mounts, with
?t=<embed token>.
loginMethods("email" | "login_card" | "class_code" | "visitor")[]requiredunitIdstring | nullrequiredThe team or class it is for; null = the whole organisation.
personaIdstring | nullrequiredWho speaks on it.
brandobjectrequiredprimarystring | nullrequired#rrggbblogoUrlstring | nullrequiredmode"light" | "dark" | "system" | nullrequired
domainobject | nullrequiredThe organisation's own address for it, when one is set.
namestringrequiredverifiedbooleanrequiredverifiedAtstring (date-time) | nullrequired
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
updatedAtstring (date-time)requiredISO 8601 UTC timestamp.
publishRefusedstringOnly when a publish was asked for and the go-live check refused it (
POST /portalswithpublish: true;POST /portals/{id}/publishfor keys on 2026-07-08): what to finish first. The portal stays a draft.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictidempotency_conflictidempotency_in_progressgo_live_refusedrate_limitedserver_error
Events
portal.updatedworkspace.published
Request
curl -X POST "https://app.zentiqai.com/v1/portals/ID/publish" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.publishPortal("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.publish_portal("ID")Response
{
"data": {
"id": "portal_cmfq2b7x10000abcd1234",
"name": "Zoe",
"slug": "…",
"status": "draft",
"group": "learn",
"welcome": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/embed-tokensSign one of your users in (an embed token)
Called by your backend after your own login, never from a browser. Returns a five-minute, single-use token for a published portal: embedUrl goes in an iframe (zentiq-embed.js or @zentiq/react's <ZentiqPortal>), url opens the portal as that user. The person is the one POST /people knows by the same externalId. Never someone who runs your Zentiq account. A leader's token (role: "leader", or a person who already holds a leader's place) needs people:write as well, and a team (the portal's, unitId or unitName); an existing account with the same email is linked only with people:write too. A leader past the plan's limit of staff members is 403 upgrade_required; a learner under the consent age waits for a guardian's consent unless consent: { by: "organisation" } attests it (with people:write as well). A retry makes a new token (nothing is replayed).
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
externalUserIdstringrequiredYour own id for this person: the same person as
POST /peoplewith thisexternalId.1-120 characters
namestringat most 80 characters
emailstringTheir real address, when you have one. An existing account here with this address is linked only for a key that also holds
people:write; otherwise a new account is made for this person.at most 200 characters
role"learner" | "leader" | "observer"Default
learner. A leader counts as a staff member, needspeople:writeas well, and needs a team: the portal's,unitIdorunitName.unitIdstringTheir team or class (
unit_…).unitNamestringOr a group by name, made under the portal's team on first sight.
1-80 characters
gradeBandstringat most 8 characters
consentobject{ by: "organisation" }: your organisation attests the consent a young learner needs (recorded as yours; needspeople:writeas well). Without it, a learner under the consent age waits for a guardian's consent.by"organisation"required
Returns
201 The token. data is EmbedToken.
Fields of data
tokenstringrequiredFive minutes, single use.
expiresAtstring (date-time)requiredISO 8601 UTC timestamp.
urlstringrequiredOpens the portal as that person (a full page).
embedUrlstringrequiredWhat an iframe mounts (
zentiq-embed.js,@zentiq/react's<ZentiqPortal>).
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictidempotency_conflictidempotency_in_progressrate_limitedserver_error
Request
curl -X POST "https://app.zentiqai.com/v1/portals/ID/embed-tokens" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"externalUserId": "…"
}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.createEmbedToken("ID", {
externalUserId: "…",
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.create_embed_token("ID", {
"externalUserId": "…",
})Response
{
"data": {
"token": "…",
"expiresAt": "2026-09-25T12:00:00.000Z",
"url": "https://www.example.com",
"embedUrl": "https://www.example.com"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/subjectsAdd a subject to a portal
The console's Add a subject: one more subject on the portal, built from a template (GET /portals/templates), in the portal's team. It starts with the template's example content as a draft, so people meet it only once you set it up and publish it (PATCH /subjects/{id}/content, POST /subjects/{id}/publish). The template's portal family must be on the plan (403 upgrade_required); a duo template only where duos are open to the organization. An unknown template is 400. Records portal.updated (added) and workspace.created. An archived portal is 410 gone; a website widget's portal is 409 conflict.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
templatestringrequiredA template key from
GET /portals/templates.1-60 characters
namestringThe subject's name; left out = the template's name.
1-80 characters
Returns
201 The new subject. data is Subject.
Fields of data
idstringrequiredSubject id (
sub_…).namestringrequiredtemplatestringrequiredThe template it was built from (
customfor one written for the organisation).kind"tutor" | "roleplay" | "assessor" | "service"requiredgroup"learn" | "train" | "serve" | "assess"requiredscreeningbooleanrequiredA candidate screening role (its invites and candidates are under /roles).
status"draft" | "published" | "archived"requireddraftuntil it (or its portal) is published.liveVersionintegerrequiredThe version sessions run; 0 when there is none.
draftVersioninteger | nullrequiredA pending draft to publish; null when there is none.
languagesstring[]requiredLanguage codes (
GET /languages).visitorLanguage"follow" | "listed" | "english" | nullrequiredA website subject: whether it follows the visitor's language, keeps to
languages, or speaks English. Null for any other.unitIdstring | nullrequiredportalIdsstring[]requiredcreatedAtstring (date-time)requiredISO 8601 UTC timestamp.
updatedAtstring (date-time)requiredISO 8601 UTC timestamp.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictidempotency_conflictidempotency_in_progressgonerate_limitedserver_error
Events
portal.updatedworkspace.created
Request
curl -X POST "https://app.zentiqai.com/v1/portals/ID/subjects" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"template": "receptionist"
}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.addPortalSubject("ID", {
template: "receptionist",
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.add_portal_subject("ID", {
"template": "receptionist",
})Response
{
"data": {
"id": "sub_cmfq2b7x10000abcd1234",
"name": "Zoe",
"template": "…",
"kind": "tutor",
"group": "learn",
"screening": true
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/domainA portal's own domain
The subdomain set for the portal, whether it is verified, and the DNS record to add. Changes nothing (POST /portals/{id}/domain/verify checks the record). An archived portal is 410 gone.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 The domain. data is PortalDomain.
Fields of data
domainstring | nullrequiredYour subdomain for this portal; null when none is set.
verifiedbooleanrequiredIts CNAME was checked and points at Zentiq: people can open the portal there (while it is published).
verifiedAtstring (date-time) | nullrequiredinstructionsPortalDomainInstructions | nullrequiredThe record to add; null when no domain is set.
includedInPlanbooleanrequiredThe plan includes your own domain. Removing one works on any plan.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundgonerate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/ID/domain" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.getPortalDomain("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.get_portal_domain("ID")Response
{
"data": {
"domain": "learn.example.com",
"verified": true,
"verifiedAt": "2026-09-25T12:00:00.000Z",
"instructions": {
"type": "CNAME",
"name": "Zoe",
"target": "…"
},
"includedInPlan": true
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/domainSet a portal's own domain
Your own subdomain for the portal (learn.example.com). It starts unverified: add the CNAME record in instructions at your domain's provider, then POST /portals/{id}/domain/verify. Setting the domain the portal already has changes nothing. Your own domain is a plan feature (403 upgrade_required). Something that isn't a subdomain you could own, or one of Zentiq's, is 400; one another portal uses is 409 conflict (details.reason domain_taken). Records portal.updated (domain). An archived portal is 410 gone; a website widget's portal is 409 conflict.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
domainstringrequiredA subdomain you own, such as learn.example.com (not the bare domain).
1-253 characters
Returns
200 The domain. data is PortalDomain.
Fields of data
domainstring | nullrequiredYour subdomain for this portal; null when none is set.
verifiedbooleanrequiredIts CNAME was checked and points at Zentiq: people can open the portal there (while it is published).
verifiedAtstring (date-time) | nullrequiredinstructionsPortalDomainInstructions | nullrequiredThe record to add; null when no domain is set.
includedInPlanbooleanrequiredThe plan includes your own domain. Removing one works on any plan.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgonerate_limitedserver_error
Events
Request
curl -X PUT "https://app.zentiqai.com/v1/portals/ID/domain" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "learn.example.com"
}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.setPortalDomain("ID", {
domain: "learn.example.com",
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.set_portal_domain("ID", {
"domain": "learn.example.com",
})Response
{
"data": {
"domain": "learn.example.com",
"verified": true,
"verifiedAt": "2026-09-25T12:00:00.000Z",
"instructions": {
"type": "CNAME",
"name": "Zoe",
"target": "…"
},
"includedInPlan": true
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/domainRemove a portal's own domain
The portal stops opening at your domain; its own addresses keep working. Works on any plan. Records portal.updated (domain) when there was one. An archived portal is 410 gone; a website widget's portal is 409 conflict.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 The domain, now none. data is PortalDomain.
Fields of data
domainstring | nullrequiredYour subdomain for this portal; null when none is set.
verifiedbooleanrequiredIts CNAME was checked and points at Zentiq: people can open the portal there (while it is published).
verifiedAtstring (date-time) | nullrequiredinstructionsPortalDomainInstructions | nullrequiredThe record to add; null when no domain is set.
includedInPlanbooleanrequiredThe plan includes your own domain. Removing one works on any plan.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgonerate_limitedserver_error
Events
Request
curl -X DELETE "https://app.zentiqai.com/v1/portals/ID/domain" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.removePortalDomain("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.remove_portal_domain("ID")Response
{
"data": {
"domain": "learn.example.com",
"verified": true,
"verifiedAt": "2026-09-25T12:00:00.000Z",
"instructions": {
"type": "CNAME",
"name": "Zoe",
"target": "…"
},
"includedInPlan": true
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/go-liveCheck a portal can go live
Runs the go-live check a publish runs, and says what each subject still needs (its content's field, in plain words). Changes nothing.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 Whether it can go live, and what to finish first. data is PortalGoLive.
Fields of data
readybooleanrequiredPublishing would go through.
Worth fixing; never a refusal.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundrate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/ID/go-live" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.getPortalGoLive("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.get_portal_go_live("ID")Response
{
"data": {
"ready": true,
"problems": [
{
"field": "hours",
"message": "…",
"short": "…",
"subjectId": "sub_cmfq2b7x10000abcd1234",
"subjectName": "…"
}
],
"warnings": [
{
"field": "hours",
"message": "…",
"short": "…",
"subjectId": "sub_cmfq2b7x10000abcd1234",
"subjectName": "…"
}
]
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/kioskA portal's kiosk mode
Whether the portal's kiosk is on, the address to open on the screen, the silence after which the screen resets, and whether a staff exit PIN is set (never the PIN). Kiosk mode is for website portals. An archived portal is 410 gone.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 The kiosk. data is PortalKiosk.
Fields of data
onbooleanrequiredThis portal's kiosk is on: its kiosk address opens.
addressstring | nullrequiredThe address to open full screen on the kiosk's screen, while it is on; null otherwise. Anyone with it can use the kiosk, so keep it to the screen.
madeAtstring (date-time) | nullrequiredWhen that address was made (a new one stops the old one at once).
silenceSecintegerrequiredAfter this many seconds with nothing said or typed, the conversation ends and the screen clears for the next person.
pinSetbooleanrequiredAn exit PIN is set. The PIN itself is never returned.
websitebooleanrequiredIt is a website portal (a website subject, no job interviews): only these can be a kiosk.
doorOpenbooleanrequiredIts visitor page is open now; until it is, the kiosk address shows a closed page.
switchOnbooleanrequiredThe organization's kiosk switch (
serve.kiosk) is on.limitsobjectrequiredsilenceMinintegerrequiredsilenceMaxintegerrequiredsilenceDefaultintegerrequiredpinMinintegerrequiredThe fewest digits an exit PIN has.
pinMaxintegerrequiredThe most digits an exit PIN has.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundgonerate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/ID/kiosk" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.getPortalKiosk("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.get_portal_kiosk("ID")Response
{
"data": {
"on": true,
"address": "…",
"madeAt": "2026-09-25T12:00:00.000Z",
"silenceSec": 1,
"pinSet": true,
"website": true
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/kioskSet up a portal's kiosk mode
The console's Kiosk panel. Send any of on, silenceSec, pin and newAddress. Switching it on needs a website portal (409 conflict, details.reason not_website) and an exit PIN, set before or in the same request (400). The PIN is 4 to 8 digits, neither one digit repeated nor a run like 1234 (400); it is kept only as a keyed hash and never returned, so keep it where your staff can find it. newAddress: true makes a new kiosk address and the old one stops at once. Kiosk mode also needs the organization's switch serve.kiosk: when it is off, switching a kiosk on switches it on too for a key that also holds settings:write, as in the console; any other key gets 409 conflict with details.reason switched_off. Records portal.updated (fields: ["kiosk"], never the PIN). An archived portal is 410 gone; a website widget's portal is 409 conflict.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
onbooleanSwitch this portal's kiosk on or off. On needs a website portal and an exit PIN (set before, or in the same request).
silenceSecintegerSeconds of silence before the screen resets, from 20 to 300 (45 by default).
20-300
pinstringA new exit PIN for staff: 4 to 8 digits, not one digit repeated and not a run like 1234. Kept only as a keyed hash; never returned.
at most 16 characters
newAddresstrueMake a new kiosk address; the old one stops working at once.
Returns
200 The kiosk as it now stands. data is PortalKiosk.
Fields of data
onbooleanrequiredThis portal's kiosk is on: its kiosk address opens.
addressstring | nullrequiredThe address to open full screen on the kiosk's screen, while it is on; null otherwise. Anyone with it can use the kiosk, so keep it to the screen.
madeAtstring (date-time) | nullrequiredWhen that address was made (a new one stops the old one at once).
silenceSecintegerrequiredAfter this many seconds with nothing said or typed, the conversation ends and the screen clears for the next person.
pinSetbooleanrequiredAn exit PIN is set. The PIN itself is never returned.
websitebooleanrequiredIt is a website portal (a website subject, no job interviews): only these can be a kiosk.
doorOpenbooleanrequiredIts visitor page is open now; until it is, the kiosk address shows a closed page.
switchOnbooleanrequiredThe organization's kiosk switch (
serve.kiosk) is on.limitsobjectrequiredsilenceMinintegerrequiredsilenceMaxintegerrequiredsilenceDefaultintegerrequiredpinMinintegerrequiredThe fewest digits an exit PIN has.
pinMaxintegerrequiredThe most digits an exit PIN has.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgonerate_limitedserver_error
Events
Request
curl -X PUT "https://app.zentiqai.com/v1/portals/ID/kiosk" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.updatePortalKiosk("ID", {});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.update_portal_kiosk("ID", {})Response
{
"data": {
"on": true,
"address": "…",
"madeAt": "2026-09-25T12:00:00.000Z",
"silenceSec": 1,
"pinSet": true,
"website": true
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/privateWho can open a portal
Whether the portal is private (only the people on its list can open it, each signing in with a link emailed to them) and who is on the list. The list holds email addresses, so people is null for a key without portals:write. A private list applies to a portal open to visitors. An archived portal is 410 gone.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 Who can open it. data is PortalPrivateAccess.
Fields of data
onbooleanrequiredOnly the people on the list can open the portal; each signs in with a link emailed to them.
peoplePortalPrivatePerson[] | nullrequiredThe list. It holds email addresses, so it is null for a key without
portals:write.countintegerrequiredHow many people are on the list.
limitintegerrequiredThe most people a list can hold.
websitebooleanrequiredThe portal is open to visitors: the only kind a private list applies to.
addressstring | nullrequiredThe visitor page invited people open.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundgonerate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/ID/private" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.getPortalPrivateAccess("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.get_portal_private_access("ID")Response
{
"data": {
"on": true,
"people": [
{
"email": "sam@example.com",
"name": "Zoe"
}
],
"count": 1,
"limit": 50,
"website": true,
"address": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/privateMake a portal private, or open it to anyone
The console's Private panel. people replaces the whole list (up to 50; each must be an email address, 400); on: true makes the portal private, and needs at least one person on the list (400). Taking someone off the list closes the portal to them at once. on: false opens it to anyone again, which needs portals:publish when it was private. Records portal.updated (fields: ["private"], never the addresses). An archived portal is 410 gone; a website widget's portal is 409 conflict.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
onbooleanTrue: only the people on the list. False: anyone (needs
portals:publishwhen it was private).peopleobject[]The whole list, replacing the one there (up to 50 people; a repeated address counts once).
at most 50 items
emailstringrequiredTheir email address.
at most 254 characters
namestringat most 80 characters
Returns
200 Who can open it now. data is PortalPrivateAccess.
Fields of data
onbooleanrequiredOnly the people on the list can open the portal; each signs in with a link emailed to them.
peoplePortalPrivatePerson[] | nullrequiredThe list. It holds email addresses, so it is null for a key without
portals:write.countintegerrequiredHow many people are on the list.
limitintegerrequiredThe most people a list can hold.
websitebooleanrequiredThe portal is open to visitors: the only kind a private list applies to.
addressstring | nullrequiredThe visitor page invited people open.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgonerate_limitedserver_error
Events
Request
curl -X PUT "https://app.zentiqai.com/v1/portals/ID/private" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.updatePortalPrivateAccess("ID", {});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.update_portal_private_access("ID", {})Response
{
"data": {
"on": true,
"people": [
{
"email": "sam@example.com",
"name": "Zoe"
}
],
"count": 1,
"limit": 50,
"website": true,
"address": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/subjects/{subjectId}Remove a subject from a portal
The console's Remove: the subject leaves this portal, so people here no longer see it. The subject itself, its content, versions and memory stay, and so does its place on any other portal. A subject that isn't on this portal is 404. Records portal.updated (removed). An archived portal is 410 gone; a website widget's portal is 409 conflict.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.subjectIdstringrequiredSubject id (
sub_…); the id without its prefix is accepted too.
Returns
200 The portal as it now stands. data is Portal.
Fields of data
idstringrequiredPortal id (
portal_…).namestringrequiredslugstringrequiredstatus"draft" | "published" | "archived"requireddraftuntil published; people only reach a published portal.group"learn" | "train" | "serve" | "assess" | "mixed" | nullrequiredIts subjects' group,
mixedwhen they differ; null without subjects.welcomestring | nullrequiredaddressstringrequiredWhere people open it: the sign-in page, or the verified custom domain.
addressesobjectrequiredmembersstringrequiredThe sign-in page (
/d/<org>/<portal>).visitorsstring | nullrequiredThe visitor page (
/v/<org>/<portal>) when a subject opens to visitors; null otherwise.embedstringrequiredWhat an iframe mounts, with
?t=<embed token>.
loginMethods("email" | "login_card" | "class_code" | "visitor")[]requiredunitIdstring | nullrequiredThe team or class it is for; null = the whole organisation.
personaIdstring | nullrequiredWho speaks on it.
brandobjectrequiredprimarystring | nullrequired#rrggbblogoUrlstring | nullrequiredmode"light" | "dark" | "system" | nullrequired
domainobject | nullrequiredThe organisation's own address for it, when one is set.
namestringrequiredverifiedbooleanrequiredverifiedAtstring (date-time) | nullrequired
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
updatedAtstring (date-time)requiredISO 8601 UTC timestamp.
publishRefusedstringOnly when a publish was asked for and the go-live check refused it (
POST /portalswithpublish: true;POST /portals/{id}/publishfor keys on 2026-07-08): what to finish first. The portal stays a draft.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgonerate_limitedserver_error
Events
Request
curl -X DELETE "https://app.zentiqai.com/v1/portals/ID/subjects/sub_123" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.removePortalSubject("ID", "sub_123");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.remove_portal_subject("ID", "sub_123")Response
{
"data": {
"id": "portal_cmfq2b7x10000abcd1234",
"name": "Zoe",
"slug": "…",
"status": "draft",
"group": "learn",
"welcome": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/domain/verifyCheck a portal's own domain
Looks up the domain's CNAME record. When it points at Zentiq, the domain is verified and its certificate is set up (certificate), and people can open the portal there while it is published. When it doesn't yet, the answer is 200 with verified: false and problem in plain words: DNS changes can take a while, so check again later. Your own domain is a plan feature (403 upgrade_required). No domain set is 409 conflict (details.reason no_domain). Records portal.updated (domainVerified) once verified. An archived portal is 410 gone; a website widget's portal is 409 conflict.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 What the check found. data is PortalDomainCheck.
Fields of data
domainstring | nullrequiredYour subdomain for this portal; null when none is set.
verifiedbooleanrequiredIts CNAME was checked and points at Zentiq: people can open the portal there (while it is published).
verifiedAtstring (date-time) | nullrequiredinstructionsPortalDomainInstructions | nullrequiredThe record to add; null when no domain is set.
includedInPlanbooleanrequiredThe plan includes your own domain. Removing one works on any plan.
problemstring | nullrequiredWhy it isn't verified yet (no CNAME record, or one pointing elsewhere); null once verified.
seenstring[]requiredThe CNAME targets the check found.
certificate"issuing" | "manual" | "failed" | nullrequiredOnce verified:
issuing(the address is being set up with a certificate),manual(Zentiq's team finishes it; nothing for you to do),failed(check again later). Null when not verified.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgonerate_limitedserver_error
Events
Request
curl -X POST "https://app.zentiqai.com/v1/portals/ID/domain/verify" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.verifyPortalDomain("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.verify_portal_domain("ID")Response
{
"data": {
"domain": "learn.example.com",
"verified": true,
"verifiedAt": "2026-09-25T12:00:00.000Z",
"instructions": {
"type": "CNAME",
"name": "Zoe",
"target": "…"
},
"includedInPlan": true,
"problem": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/customer-tokensMint an identity token for a signed-in customer (Actions)
Called by your backend, where your customer is signed in, never from a browser. Returns a short-lived token naming that customer, for this portal only: give it to the website widget (data-customer-token, or ZentiqWidget.identify(token)) or to a conversation's start (customerToken), and the avatar's actions for signed-in customers run with that customer's id, never an id the visitor said. 10 minutes unless you ask; never more than 15 (a longer ttlSeconds is cut to 15: expiresAt says when). Mint one per page view. A token works for one conversation only: the first conversation that uses it keeps it, and any other refuses it even while it lives. A portal of another organisation is 404; an archived one 410. Each mint is recorded for your organisation with the portal, the key and how long the token lives, never who it names. A key that lives on your website's servers needs only this scope. Verified customer: contact.email is the address on record where Zentiq sends a one-time code before a sensitive action (when your organisation switches it on); it is signed into the token and never shown to the avatar or kept in a transcript or log. For a visitor who isn't signed in, an action's answer can name it instead, in the reserved field zentiq_verify: { email }.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
customerIdstringrequiredYour own id for the signed-in customer: sent to your system as customer.id on every call.
at most 128 characters
namestring | nullShown to them as "Signed in as …".
at most 80 characters
emailstring | nullauthTimenumber | nullWhen they signed in, seconds since 1970 (within the last 30 days).
ttlSecondsnumber | nullHow long the token lasts, in seconds. At most 900: a longer one is cut to 900 (expiresAt says when).
at least 30 · default 600
contactobject | nullVerified customer: the contact on record, where Zentiq sends a one-time code before a sensitive action (when the organisation switches it on). Signed into the token; never shown to the avatar, the conversation or a log, only as a masked read-back ("s***@example.com"). Use the address you would send a password reset to.
emailstring | nullThe customer's email address on record: where a one-time code is sent.
Returns
201 The token. data is CustomerToken.
Fields of data
tokenstringrequiredzct1.…: for this portal and one conversation only. Give it to the website widget or a conversation's start; never put it in a URL.
expiresAtstring (date-time)requiredISO 8601 UTC timestamp.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundgonerate_limitedserver_error
Request
curl -X POST "https://app.zentiqai.com/v1/portals/ID/customer-tokens" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customerId": "…"
}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.createCustomerToken("ID", {
customerId: "…",
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.create_customer_token("ID", {
"customerId": "…",
})Response
{
"data": {
"token": "…",
"expiresAt": "2026-09-25T12:00:00.000Z"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/escalationsHand a chat to the video avatar
Called by your chat tool's server (Intercom, Zendesk or your own), never from a browser. Returns a link to show the customer: it opens the portal's website avatar, which starts knowing the chat so far (as information, never as instructions) and opens with a one-line recap. The link works for one conversation, for 30 minutes. When that conversation ends, escalation.completed goes to your webhooks with the outcome (the summary only with includeConversation), and the visitor is offered returnUrl. Needs the switch serve.chat_escalation on and the portal's public page open (409 conflict, details.reason: switched_off, door_closed or no_website_subject). Chat handover is on a paid plan: on a plan without it, 403 upgrade_required with details.reason plan_required and details.plan. A portal of another organisation is 404; an archived one 410. A retry makes a new link (nothing is replayed).
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
The chat so far, oldest first: at most 50 turns and 20,000 characters in all (send the newest). The avatar reads it as information, never as instructions.
at most 50 items
customerobject | nullThe customer, when your chat knows them.
externalIdstring | nullYour own id for the customer: it comes back on escalation.completed as customerRef.
at most 128 characters
firstNamestring | nullThe avatar greets them by it.
at most 80 characters
emailstring | nullKept with the escalation only; never read out, never sent back.
reasonstring | nullA short phrase finishing "your chat about …" ("the refund on order 1042"): the avatar opens with it.
at most 120 characters
returnUrlstring | nullAn https address the visitor is offered at the end (back to your chat).
at most 2,000 characters
Returns
201 The link. data is Escalation.
Fields of data
idstringrequiredEscalation id (
esc_…).pattern `^esc_.*`
urlstringrequiredThe link to show the customer (or open in the widget). It works once, for 30 minutes; the token is in its fragment, never sent to a server.
tokenstringrequiredzesc_…: the link's own token (already in url). For one conversation only; never put it in a query string or a log.
expiresAtstring (date-time)requiredISO 8601 UTC timestamp.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgonerate_limitedserver_error
Request
curl -X POST "https://app.zentiqai.com/v1/portals/ID/escalations" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"transcript": [
{
"role": "visitor",
"text": "…"
}
]
}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.createEscalation("ID", {
transcript: [{
role: "visitor",
text: "…",
}],
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.create_escalation("ID", {
"transcript": [{
"role": "visitor",
"text": "…",
}],
})Response
{
"data": {
"id": "esc_cmfq2b7x10000abcd1234",
"url": "https://www.example.com",
"token": "…",
"expiresAt": "2026-09-25T12:00:00.000Z"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/case-linksList a portal's case links
The portal's case links, newest first, with their state and opens. Never the case's details or the links' addresses. A link's row is deleted 30 days after it stops working.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Query parameters
limitintegerPage size, 1-200 (default 50).
cursorstringThe
nextCursorof the previous page.
Returns
200 A page of links. A page: data is a list of CaseLink, and nextCursor fetches the next page.
Fields of data
idstringrequiredCase link id (
clk_…).pattern `^clk_.*`
portalIdstringrequiredPortal id (
portal_…).referencestringrequiredkind"case" | "order" | "claim" | "appointment" | "ticket" | "booking" | "application" | "renewal"requiredcustomerIdstringrequiredYour own id for the customer.
status"active" | "expired" | "revoked" | "used_up"requiredactive: it opens; expired: past expiresAt; revoked: switched off; used_up: every conversation it may start has started.
opensintegerrequiredConversations started from it so far.
maxOpensintegerrequiredexpiresAtstring (date-time)requiredISO 8601 UTC timestamp.
revokedAtstring (date-time) | nullrequiredlastOpenedAtstring (date-time) | nullrequiredemailedAtstring (date-time) | nullrequiredWhen your team emailed it from the console; null when it was sent some other way.
source"api" | "console"requiredMade with an API key, or by your team in the console.
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundrate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/ID/case-links?limit=20" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const page = await zentiq.listCaseLinks("ID", {
limit: 20,
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
page = zentiq.list_case_links("ID", limit=20)Response
{
"data": [
{
"id": "clk_cmfq2b7x10000abcd1234",
"portalId": "portal_cmfq2b7x10000abcd1234",
"reference": "…",
"kind": "case",
"customerId": "…",
"status": "active"
}
],
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d",
"nextCursor": null
}/v1/portals/{id}/case-linksSend a customer a link to their case
A personal link to the portal's website door for one customer and one case (an order, a claim, an appointment, a support ticket), made by your CRM or helpdesk. Send url by email, text message or your app: when they open it, the avatar greets them about their case and already knows what it is about. The link expires (7 days unless you say, 30 at most), opens at most maxOpens conversations (20 unless you say) and can be revoked. The case is your record: the avatar reads it as data (never as instructions), only ever says the email masked, and stops talking about it if the visitor may be under 18. The conversation's actions run for this customer (customer.id) and carry the case (case: { reference, kind }), so your system finds it without asking. A link is recognition, not a full identity check (anyone holding it is taken for your customer): for anything sensitive, switch on Verified customer, which sends a one-time code to the email you gave. url is only in this answer: Zentiq keeps a hash, never the link. The case's details are kept encrypted and wiped when the link stops working. 409 conflict with details.reason case_links_off while the organisation's serve.case_links switch is off, and door_closed while the portal's website door isn't open to visitors (published, open to visitors, with a website subject live). Case links are on a paid plan: on a plan without them, 403 upgrade_required with details.reason plan_required and details.plan. A portal of another organisation is 404; an archived one 410.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
customerIdstringrequiredYour own id for the customer: every action call from the conversation carries it as
customer.id.at most 128 characters
referencestringrequiredThe case's own reference in your system (an order, claim, booking or ticket number): the avatar names it, and every action call carries it as
case.reference.at most 64 characters
kind"case" | "order" | "claim" | "appointment" | "ticket" | "booking" | "application" | "renewal" | nullWhat the case is, for the avatar's words ("your order 10423", "your support ticket 10423").
default "case"
summarystringrequiredWhat the case is about and where it stands, in a sentence or two the avatar may use with your customer. The avatar reads it as your record (data, never instructions).
at most 1,000 characters
factsmap of string | number | boolean | nullUp to 20 short facts, like { "status": "delayed", "items": 2 } (names of letters and digits, values of at most 200 characters). Never a password, code or card detail: a fact named like one is refused.
firstNamestring | nullYour customer's first name: the avatar greets them with it.
at most 40 characters
emailstring | nullThe email address you have on file for them. The avatar only ever sees it masked ("s***@example.com"). With Verified customer switched on, it is where the one-time code goes before a sensitive action.
openingstring | nullThe avatar's first line about the case, in your words. Without it the avatar says what the case is and asks how it can help.
at most 300 characters
expiresInDaysnumber | nullHow long the link works, in whole days.
1-30 · default 7
maxOpensnumber | nullHow many conversations the link may start (so a forwarded link can't be used again and again). Opening the page alone uses none.
1-100 · default 20
Returns
201 The link, with the address to send (only in this answer). data is CaseLinkCreated.
Fields of data
idstringrequiredCase link id (
clk_…).pattern `^clk_.*`
portalIdstringrequiredPortal id (
portal_…).referencestringrequiredkind"case" | "order" | "claim" | "appointment" | "ticket" | "booking" | "application" | "renewal"requiredcustomerIdstringrequiredYour own id for the customer.
status"active" | "expired" | "revoked" | "used_up"requiredactive: it opens; expired: past expiresAt; revoked: switched off; used_up: every conversation it may start has started.
opensintegerrequiredConversations started from it so far.
maxOpensintegerrequiredexpiresAtstring (date-time)requiredISO 8601 UTC timestamp.
revokedAtstring (date-time) | nullrequiredlastOpenedAtstring (date-time) | nullrequiredemailedAtstring (date-time) | nullrequiredWhen your team emailed it from the console; null when it was sent some other way.
source"api" | "console"requiredMade with an API key, or by your team in the console.
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
urlstringrequiredThe link to send your customer (by email, text message or your app). Shown only now, never again: Zentiq keeps no copy it could show. Never put it in a public place.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictidempotency_conflictidempotency_in_progressgonerate_limitedserver_error
Request
curl -X POST "https://app.zentiqai.com/v1/portals/ID/case-links" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"customerId": "…",
"reference": "10423",
"summary": "The parcel is delayed at the depot; the new delivery date is Tuesday."
}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.createCaseLink("ID", {
customerId: "…",
reference: "10423",
summary: "The parcel is delayed at the depot; the new delivery date is Tuesday.",
});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.create_case_link("ID", {
"customerId": "…",
"reference": "10423",
"summary": "The parcel is delayed at the depot; the new delivery date is Tuesday.",
})Response
{
"data": {
"id": "clk_cmfq2b7x10000abcd1234",
"portalId": "portal_cmfq2b7x10000abcd1234",
"reference": "…",
"kind": "case",
"customerId": "…",
"status": "active"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/case-links/{id}Get a case link
One link's state: whether it still opens, how many conversations it started, when it expires. Never the case's details or the link's address.
Path parameters
idstringrequiredCase link id (
clk_…); the id without its prefix is accepted too.
Returns
200 The link. data is CaseLink.
Fields of data
idstringrequiredCase link id (
clk_…).pattern `^clk_.*`
portalIdstringrequiredPortal id (
portal_…).referencestringrequiredkind"case" | "order" | "claim" | "appointment" | "ticket" | "booking" | "application" | "renewal"requiredcustomerIdstringrequiredYour own id for the customer.
status"active" | "expired" | "revoked" | "used_up"requiredactive: it opens; expired: past expiresAt; revoked: switched off; used_up: every conversation it may start has started.
opensintegerrequiredConversations started from it so far.
maxOpensintegerrequiredexpiresAtstring (date-time)requiredISO 8601 UTC timestamp.
revokedAtstring (date-time) | nullrequiredlastOpenedAtstring (date-time) | nullrequiredemailedAtstring (date-time) | nullrequiredWhen your team emailed it from the console; null when it was sent some other way.
source"api" | "console"requiredMade with an API key, or by your team in the console.
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundrate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/case-links/clk_123" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.getCaseLink("clk_123");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.get_case_link("clk_123")Response
{
"data": {
"id": "clk_cmfq2b7x10000abcd1234",
"portalId": "portal_cmfq2b7x10000abcd1234",
"reference": "…",
"kind": "case",
"customerId": "…",
"status": "active"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/case-links/{id}Revoke a case link
The link stops opening at once and its case details are wiped; a conversation it already started goes on. Revoking a link that is already revoked changes nothing. Works while the switch is off.
Path parameters
idstringrequiredCase link id (
clk_…); the id without its prefix is accepted too.
Returns
200 The link, revoked. data is CaseLink.
Fields of data
idstringrequiredCase link id (
clk_…).pattern `^clk_.*`
portalIdstringrequiredPortal id (
portal_…).referencestringrequiredkind"case" | "order" | "claim" | "appointment" | "ticket" | "booking" | "application" | "renewal"requiredcustomerIdstringrequiredYour own id for the customer.
status"active" | "expired" | "revoked" | "used_up"requiredactive: it opens; expired: past expiresAt; revoked: switched off; used_up: every conversation it may start has started.
opensintegerrequiredConversations started from it so far.
maxOpensintegerrequiredexpiresAtstring (date-time)requiredISO 8601 UTC timestamp.
revokedAtstring (date-time) | nullrequiredlastOpenedAtstring (date-time) | nullrequiredemailedAtstring (date-time) | nullrequiredWhen your team emailed it from the console; null when it was sent some other way.
source"api" | "console"requiredMade with an API key, or by your team in the console.
createdAtstring (date-time)requiredISO 8601 UTC timestamp.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundrate_limitedserver_error
Request
curl -X DELETE "https://app.zentiqai.com/v1/case-links/clk_123" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.revokeCaseLink("clk_123");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.revoke_case_link("clk_123")Response
{
"data": {
"id": "clk_cmfq2b7x10000abcd1234",
"portalId": "portal_cmfq2b7x10000abcd1234",
"reference": "…",
"kind": "case",
"customerId": "…",
"status": "active"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/doorsEvery way in to a portal
The addresses to hand out: the members' sign-in page, the visitors' page (whether it is open now, and what would open it), the embed for your signed-in users, and the custom domain.
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Returns
200 The doors. data is PortalDoors.
Fields of data
membersobjectrequiredurlstringrequiredThe sign-in page.
loginMethods("email" | "login_card" | "class_code" | "visitor")[]requiredunitIdstring | nullrequired
The visitors' door: people come in without signing in.
embedobjectrequiredurlstringrequiredWhat an iframe mounts, with
?t=and a token fromPOST /portals/{id}/embed-tokens.scriptstringrequiredThe snippet for a signed-in embed (your backend gets the token).
customDomainobject | nullrequirednamestringrequiredverifiedbooleanrequiredverifiedAtstring (date-time) | nullrequired
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundrate_limitedserver_error
Request
curl "https://app.zentiqai.com/v1/portals/ID/doors" \
-H "Authorization: Bearer $ZENTIQ_API_KEY"import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.listPortalDoors("ID");import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.list_portal_doors("ID")Response
{
"data": {
"members": {
"url": "https://www.example.com",
"loginMethods": [
"email"
],
"unitId": "unit_cmfq2b7x10000abcd1234"
},
"visitors": {
"url": "https://www.example.com",
"open": true,
"readiness": {
"open": true,
"text": "…",
"fix": "publish"
},
"allowedOrigins": [
"…"
],
"script": "…"
},
"embed": {
"url": "https://www.example.com",
"script": "…"
},
"customDomain": {
"name": "Zoe",
"verified": true,
"verifiedAt": "2026-09-25T12:00:00.000Z"
}
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}/v1/portals/{id}/doors/visitorsOpen or close the visitors' door
Sets the websites that may show the visitor page and start conversations from it (allowedOrigins, at most 20; [] allows any), and opens or closes the door (open). Opening needs portals:publish; on a published portal it runs the go-live check on what the door opens (422 go_live_refused), and it lets outside people talk to the organisation's avatars (its public website switch). Only a portal with a website assistant or a screening role has a visitors' door (409 conflict).
Path parameters
idstringrequiredPortal id (
portal_…); the id without its prefix is accepted too.
Body
allowedOriginsstring[]Website addresses (
https://www.example.com); [] allows any website again.at most 20 items
openbooleantrueopens the portal to visitors (needsportals:publish; runs the go-live check on a published portal, and lets outside people in);falsecloses it.
Returns
200 The visitors' door as it now stands. data is VisitorsDoor.
Fields of data
urlstring | nullrequiredThe visitor page to hand out (or the custom domain that leads there); null when no subject opens to visitors.
openbooleanrequiredVisitors can come in now.
readinessDoorReadiness | nullrequiredNull when no subject opens to visitors (a website assistant or a screening role).
allowedOriginsstring[]requiredThe only websites that may show the visitor page in a frame and start conversations from it; [] = any.
scriptstring | nullrequiredThe snippet that puts the visitor page on your website.
Errors
invalid_requestunauthorizedforbiddenupgrade_requirednot_foundconflictgo_live_refusedrate_limitedserver_error
Events
Request
curl -X PUT "https://app.zentiqai.com/v1/portals/ID/doors/visitors" \
-H "Authorization: Bearer $ZENTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Zentiq } from "@zentiq/node";
const zentiq = new Zentiq({ apiKey: process.env.ZENTIQ_API_KEY });
const result = await zentiq.updateVisitorDoor("ID", {});import os
from zentiq import Zentiq
zentiq = Zentiq(api_key=os.environ["ZENTIQ_API_KEY"])
result = zentiq.update_visitor_door("ID", {})Response
{
"data": {
"url": "https://www.example.com",
"open": true,
"readiness": {
"open": true,
"text": "…",
"fix": "publish"
},
"allowedOrigins": [
"…"
],
"script": "…"
},
"error": null,
"requestId": "req_4f1c2e9a7b3d5e6f7a8b9c0d"
}