Skip to main content

Portal API

Usage​

import { epilot } from '@epilot/sdk'

epilot.authorize(() => '<token>')
const { data } = await epilot.customerPortal.upsertPortal(...)

Tree-shakeable import​

import { getClient, authorize } from '@epilot/sdk/customer-portal'

const customerPortalClient = getClient()
authorize(customerPortalClient, () => '<token>')
const { data } = await customerPortalClient.upsertPortal(...)

Operations​

Public

ECP

ECP Admin

Activity

Balance

Billing Accounts

Login

Schemas

createUserV3​

Registers a portal user. Supports two identification methods:

  1. Using portal_id
  2. Using domain

POST /v3/portal/public/user

const { data } = await client.createUserV3(
{
portal_id: 'example',
domain: 'example',
},
{
email: 'testemail921@yopmail.com',
first_name: 'John',
last_name: 'Doe',
contactId: '5da0a718-c822-403d-9f5d-20d4584e0528',
orgId: 728,
password: '124n$aAJs*d41h4',
contactIdentifiers: {},
registration_identifiers: {
contact: {
email: 'john.doe@example.com'
},
contract: {
contract_number: '123456'
}
},
contact_identifiers_for_account: {
first_name: 'John',
last_name: 'Doe'
},
additional_contact_attributes: {
first_name: 'John',
last_name: 'Doe'
},
account_id: 'string'
},
)
Response
{
"message": "User created successfully"
}

validateToken​

Validates Portal Token is valid. Pass the token via Authorization Header.

POST /v2/portal/token/validate

const { data } = await client.validateToken()

revokeToken​

Revokes all of the access tokens for the given Refresh Token.

POST /v2/portal/token/revoke

const { data } = await client.revokeToken(
null,
{
refresh_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
},
)
Response
{
"message": "Token revoked successfully"
}

getPortalConfigByDomain​

Retrieves the portal configuration by domain.

GET /v2/portal/public/config

const { data } = await client.getPortalConfigByDomain({
domain: 'example',
})
Response
{
"mobile_config": {
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-12345.ecp.epilot.cloud",
"domain_settings": {
"is_custom_domain_enabled": true,
"is_epilot_domain_enabled": true,
"is_redirection_enabled": true
},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {
"design": {
"overrides": {}
}
},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {
"start_page": true,
"billing": true,
"commodity_billing": true,
"change_due_date": true,
"new_design": true,
"mcp_enabled": true,
"mcp_grant_version": 0,
"portal_copilot": false,
"portal_copilot_agent_id": "string",
"portal_copilot_visibility": {
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
}
},
"accessToken": "string",
"advanced_mfa": {
"enabled": true
},
"auth_settings": {
"passwordless_login": {
"enabled": true
},
"passkeys": {
"enabled": false
},
"entry_point": "PASSWORD",
"preferred_sso_providers": ["office-365-login"],
"auto_redirect_to_sso": true,
"prevent_user_enumeration": true
},
"cognito_details": {
"cognito_user_pool_client_id": "6bsd0jkgoie74k2i8mrhc1vest",
"cognito_mobile_client_id": "3k9fj2l1m0n8b7v6c5x4z3a2s1",
"cognito_user_pool_arn": "arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341",
"cognito_user_pool_id": "eu-central-1_CUEQRNbUb",
"timeouts": {
"refresh_token": 300,
"access_token": 300,
"id_token": 300
},
"advanced_authentication": {
"user_activity_logging": true,
"adaptive_authentication": true,
"compromised_credentials_detection": true
},
"password_policy": {
"minimum_length": 8,
"maximum_length": 256,
"require_lowercase": true,
"require_uppercase": true,
"require_numbers": true,
"require_symbols": true,
"password_history_size": 3
}
},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {
"contact": ["name", "address"],
"contract": ["installment_amount"]
},
"email_templates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
},
"images": {
"orderLeftTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg",
"orderRightTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg",
"welcomeBanner": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg"
},
"entity_identifiers": {
"type": {
"isEnabled": true,
"attributes": ["contract_number"]
}
},
"contract_identifiers": [
{
"name": "email",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"self_assignment_mode": "contracts",
"contract_selector_config": {
"show_inactive": true,
"title_path": "string"
},
"registration_identifiers": [
{
"name": "last_name",
"schema": "contact"
},
{
"name": "contract_number",
"schema": "contract"
}
],
"surfaces": [
{
"id": "website-journeys",
"name": "Website journeys",
"description": "string",
"authentication": "login",
"token_ttl_seconds": 300,
"identifiers": [],
"data_access": {}
}
],
"contact_identifiers_for_account": [
{
"name": "first_name",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"additional_contact_attributes": [
{
"name": "first_name",
"required": true
},
{
"name": "last_name",
"required": true
}
],
"triggered_journeys": [
{
"trigger_name": "FIRST_LOGIN",
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"context_params": []
}
],
"entity_edit_rules": [
{
"slug": "contact",
"attribute": "first_name",
"rule_type": "cadence",
"cadence_period_type": "days",
"cadence_period": 1,
"changes_allowed": 1,
"grace_period": 1,
"allowed_increment": "10%",
"allowed_decrement": "10%",
"number_of_days_before_restriction": 10
}
],
"allowed_file_extensions": {
"document": ["pdf"],
"image": ["jpg"],
"spreadsheet": ["xls"],
"presentation": ["ppt"],
"audioVideo": ["mp4"],
"email": ["eml"],
"archive": ["zip"],
"cad": ["cad"],
"calendar": ["ics"],
"other": ["txt"]
},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"pages": {},
"global_blocks": {},
"notification_triggers": [
{
"trigger_type": "entity_added",
"entity_schema": "opportunity",
"enabled": true,
"template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"target_ids": ["string"]
}
],
"engagement_center_enabled": true,
"engagement_center_task_templates": {
"title": "{{task.name}}",
"subtitle": "{{workflow.name}} · {{entity._title}}"
},
"engagement_center_title": {
"de": "Mein Postfach",
"en": "My inbox"
},
"id": 12345,
"organization_id": 12345,
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"],
"held_back": [
{
"page_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"block_id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"reason": "BLUEPRINT_MANAGED"
}
],
"org_settings": {
"canary": {
"enabled": true
},
"notracking": {
"enabled": true
}
},
"feature_flags": {},
"registration_validation_rules": {},
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"effect": "allow"
}
],
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"oidc_config": {},
"mobile_oidc_config": {},
"debug_mode": false
}
],
"preview_revision": {
"revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"name": "string",
"created_at": "1970-01-01T00:00:00.000Z"
}
}

createExport​

Request an asynchronous CSV export of the portal user's entities for one schema. Columns come from the request Returns a job id to poll.

POST /v1/portal/exports

const { data } = await client.createExport(
null,
{
schema: 'string',
search: {
q: 'string',
q_fields: ['string'],
filters: [
{}
],
filters_context: [
{}
],
sort: {}
},
columns: [
{
key: 'vertragsnummer',
header: {
de: 'Vertragsnummer',
en: 'Contract number'
},
source: {
path: ['customer'],
attribute: 'customer_number',
address_field: 'full'
},
formatter: 'text',
enum_labels: {}
}
],
expand_over: 'string',
language: 'de'
},
)

getExport​

Get the status of an export job, including the download URL once ready.

GET /v1/portal/exports/{jobId}

const { data } = await client.getExport({
jobId: 'example',
})
Response
{
"jobId": "string",
"status": "queued",
"downloadUrl": "string",
"error": "string"
}

getPortalExtensionsV3​

Retrieves the installed portal extensions.

GET /v3/portal/extensions

const { data } = await client.getPortalExtensionsV3({
portal_id: 'example',
})
Response
[
{
"id": "string",
"app_id": "string",
"app_name": "string",
"name": {
"en": "string"
},
"description": {
"en": "string"
},
"version": "string",
"options": [
{
"id": "string",
"name": {
"en": "string"
},
"type": "text",
"description": {
"en": "string"
},
"default": "string",
"required": false
}
],
"links": [
{
"id": "string",
"name": {
"en": "string"
},
"description": {
"en": "string"
},
"type": "seamless",
"condition": "{{Contact.customer_number | is_not_empty}}",
"auth": {
"method": "GET",
"url": "string",
"params": {},
"headers": {},
"body": {},
"cache": {
"key": "{{Options.api_key}}",
"ttl": "{{AuthResponse.data.expires_in}}"
}
},
"redirect": {
"url": "string",
"params": {}
}
}
],
"hooks": [
{
"type": "registrationIdentifiersCheck",
"auth": {
"method": "GET",
"url": "string",
"params": {},
"headers": {},
"body": {},
"cache": {
"key": "{{Options.api_key}}",
"ttl": "{{AuthResponse.data.expires_in}}"
}
},
"call": {
"method": "POST",
"url": "string",
"params": {},
"headers": {},
"body": {},
"result": "string"
},
"resolved": {
"result": "string",
"error_message_path": "error.message"
},
"use_static_ips": false,
"secure_proxy": {
"integration_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"use_case_slug": "string"
}
}
]
}
]

getPublicPortalExtensionDetailsV3​

Get public extension details shown to end customers and configuring users. Supports two identification methods:

  1. Using org_id + portal_id
  2. Using domain

GET /v3/portal/public/extensions

const { data } = await client.getPublicPortalExtensionDetailsV3({
org_id: 'example',
portal_id: 'example',
domain: 'example',
})
Response
{
"consumptionDataRetrieval": [
{
"app": {},
"extension": {},
"hook": {}
}
],
"dataExport": [
{
"app": {},
"extension": {},
"hook": {}
}
],
"priceDataRetrieval": [
{
"app": {},
"extension": {},
"hook": {}
}
],
"costDataRetrieval": [
{
"app": {},
"extension": {},
"hook": {}
}
],
"contractIdentification": {
"app": {
"app_id": "string",
"name": {}
},
"extension": {
"id": "string",
"name": {}
},
"hook": {
"explanation": {}
}
},
"meterReadingPlausibilityCheck": {
"extension": {
"id": "string",
"name": {}
},
"hook": {
"plausibility_mode": "check"
}
},
"changeEmail": {
"app": {
"app_id": "string",
"name": {}
},
"extension": {
"id": "string",
"name": {}
},
"hook": {
"id": "string",
"change_mode": "asynchronous",
"require_password_confirmation": true,
"explanation": {}
}
},
"changePassword": {
"app": {
"app_id": "string",
"name": {}
},
"extension": {
"id": "string",
"name": {}
},
"hook": {
"id": "string",
"require_new_password": false,
"explanation": {}
}
},
"deleteAccount": {
"app": {
"app_id": "string",
"name": {}
},
"extension": {
"id": "string",
"name": {}
},
"hook": {
"id": "string",
"explanation": {}
}
}
}

getConsumption​

Get energy consumption data between a given time period.

GET /v2/portal/consumption

const { data } = await client.getConsumption({
app_id: 'example',
extensionId: 'example',
hookId: 'example',
meter_id: 'example',
from: 'example',
to: 'example',
interval: 'example',
context_entities: 'example',
})
Response
{
"consumptions": [
{
"timestamp": "1970-01-01T00:00:00.000Z",
"value": 0,
"type": "nt",
"unit": "kWh",
"label": {
"en": "Billing period 1",
"de": "Abrechnungszeitraum 1"
},
"period": {
"from": "2024-01-03T00:00:00.000Z",
"to": "2025-01-05T00:00:00.000Z"
}
}
]
}

prepareVisualizationExport​

Asks an installed App to prepare a downloadable export of a visualization (consumption chart, dynamic tariff chart, etc.). The export is produced by the third-party App via a configured portal extensi

POST /v2/portal/visualization:export

const { data } = await client.prepareVisualizationExport(
null,
{
app_id: 'string',
extension_id: 'string',
hook_id: 'string',
from: '1970-01-01T00:00:00.000Z',
to: '1970-01-01T00:00:00.000Z',
context_entities: [
{
entity_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
entity_schema: 'contract'
}
]
},
)
Response
{
"download_url": "string",
"filename": "string",
"content_type": "text/csv",
"expires_at": "1970-01-01T00:00:00.000Z"
}

getVisualizationMetadata​

Returns runtime metadata describing how a visualization (consumption / price / cost chart) should be rendered for a given portal context (meter, contract, etc). Resolves the extension's `visualization

GET /v2/portal/visualization/metadata

const { data } = await client.getVisualizationMetadata({
app_id: 'example',
extensionId: 'example',
context_entities: 'example',
})
Response
{
"type_options": [
{
"id": "string",
"label": {},
"aggregation_group": "string",
"statistical_method": "sum",
"unit": "string",
"color": "primary",
"precision": 0
}
],
"intervals": ["PT15M"],
"data_range": {
"from": "1970-01-01T00:00:00.000Z",
"to": "1970-01-01T00:00:00.000Z"
}
}

getCosts​

Get energy cost data between a given time period.

GET /v2/portal/costs

const { data } = await client.getCosts({
app_id: 'example',
extensionId: 'example',
hookId: 'example',
meter_id: 'example',
from: 'example',
to: 'example',
interval: 'example',
context_entities: 'example',
})
Response
{
"costs": [
{
"timestamp": "1970-01-01T00:00:00.000Z",
"unit_amount": 1234,
"unit_amount_currency": "EUR",
"unit_amount_decimal": "12.34",
"tax_behavior": "exclusive",
"tax_rate": 19
}
]
}

getPrices​

Get energy prices data between a given time period.

GET /v2/portal/prices

const { data } = await client.getPrices({
app_id: 'example',
extensionId: 'example',
hookId: 'example',
meter_id: 'example',
from: 'example',
to: 'example',
interval: 'example',
context_entities: 'example',
})
Response
{
"prices": [
{
"timestamp": "1970-01-01T00:00:00.000Z",
"unit_amount": 1234,
"unit_amount_currency": "EUR",
"unit_amount_decimal": "12.34",
"components": {
"auction_price_amount": 1000,
"auction_price_amount_decimal": "10.00",
"taxes_levies_amount": 50,
"taxes_levies_amount_decimal": "0.50",
"source_fee_amount": 50,
"source_fee_amount_decimal": "0.50",
"grid_fee_amount": 100,
"grid_fee_amount_decimal": "1.00",
"margin_amount": 34,
"margin_amount_decimal": "0.34"
},
"tax_behavior": "exclusive",
"tax_rate": 19
}
]
}

getExternalLinksV3​

Retrieves the portal configuration external links.

GET /v3/portal/external-links

const { data } = await client.getExternalLinksV3({
portal_id: 'example',
contactId: 'example',
})
Response
[
{
"id": "string",
"label": {},
"type": "link",
"link": "string",
"rules": [
{}
],
"attribute": "string",
"entity": "string",
"attribute_value": "string",
"icon": {
"name": "string",
"color": "string",
"size": 0
},
"extension_link_id": ["string"]
}
]

Retrieves a resolved seamless portal link.

GET /v2/portal/resolve:seamless-link

const { data } = await client.getResolvedSeamlessLink({
app_id: 'example',
extension_id: 'example',
link_id: 'example',
context_entities: 'example',
})
Response
{
"link": "string"
}

getPublicPortalConfigV3​

Retrieves the public portal configuration.

GET /v3/portal/public/portal/config

const { data } = await client.getPublicPortalConfigV3({
org_id: 'example',
portal_id: 'example',
})
Response
{
"mobile_config": {
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-12345.ecp.epilot.cloud",
"domain_settings": {
"is_custom_domain_enabled": true,
"is_epilot_domain_enabled": true,
"is_redirection_enabled": true
},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {
"design": {
"overrides": {}
}
},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {
"start_page": true,
"billing": true,
"commodity_billing": true,
"change_due_date": true,
"new_design": true,
"mcp_enabled": true,
"mcp_grant_version": 0,
"portal_copilot": false,
"portal_copilot_agent_id": "string",
"portal_copilot_visibility": {
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
}
},
"accessToken": "string",
"advanced_mfa": {
"enabled": true
},
"auth_settings": {
"passwordless_login": {
"enabled": true
},
"passkeys": {
"enabled": false
},
"entry_point": "PASSWORD",
"preferred_sso_providers": ["office-365-login"],
"auto_redirect_to_sso": true,
"prevent_user_enumeration": true
},
"cognito_details": {
"cognito_user_pool_client_id": "6bsd0jkgoie74k2i8mrhc1vest",
"cognito_mobile_client_id": "3k9fj2l1m0n8b7v6c5x4z3a2s1",
"cognito_user_pool_arn": "arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341",
"cognito_user_pool_id": "eu-central-1_CUEQRNbUb",
"timeouts": {
"refresh_token": 300,
"access_token": 300,
"id_token": 300
},
"advanced_authentication": {
"user_activity_logging": true,
"adaptive_authentication": true,
"compromised_credentials_detection": true
},
"password_policy": {
"minimum_length": 8,
"maximum_length": 256,
"require_lowercase": true,
"require_uppercase": true,
"require_numbers": true,
"require_symbols": true,
"password_history_size": 3
}
},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {
"contact": ["name", "address"],
"contract": ["installment_amount"]
},
"email_templates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
},
"images": {
"orderLeftTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg",
"orderRightTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg",
"welcomeBanner": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg"
},
"entity_identifiers": {
"type": {
"isEnabled": true,
"attributes": ["contract_number"]
}
},
"contract_identifiers": [
{
"name": "email",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"self_assignment_mode": "contracts",
"contract_selector_config": {
"show_inactive": true,
"title_path": "string"
},
"registration_identifiers": [
{
"name": "last_name",
"schema": "contact"
},
{
"name": "contract_number",
"schema": "contract"
}
],
"surfaces": [
{
"id": "website-journeys",
"name": "Website journeys",
"description": "string",
"authentication": "login",
"token_ttl_seconds": 300,
"identifiers": [],
"data_access": {}
}
],
"contact_identifiers_for_account": [
{
"name": "first_name",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"additional_contact_attributes": [
{
"name": "first_name",
"required": true
},
{
"name": "last_name",
"required": true
}
],
"triggered_journeys": [
{
"trigger_name": "FIRST_LOGIN",
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"context_params": []
}
],
"entity_edit_rules": [
{
"slug": "contact",
"attribute": "first_name",
"rule_type": "cadence",
"cadence_period_type": "days",
"cadence_period": 1,
"changes_allowed": 1,
"grace_period": 1,
"allowed_increment": "10%",
"allowed_decrement": "10%",
"number_of_days_before_restriction": 10
}
],
"allowed_file_extensions": {
"document": ["pdf"],
"image": ["jpg"],
"spreadsheet": ["xls"],
"presentation": ["ppt"],
"audioVideo": ["mp4"],
"email": ["eml"],
"archive": ["zip"],
"cad": ["cad"],
"calendar": ["ics"],
"other": ["txt"]
},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"pages": {},
"global_blocks": {},
"notification_triggers": [
{
"trigger_type": "entity_added",
"entity_schema": "opportunity",
"enabled": true,
"template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"target_ids": ["string"]
}
],
"engagement_center_enabled": true,
"engagement_center_task_templates": {
"title": "{{task.name}}",
"subtitle": "{{workflow.name}} · {{entity._title}}"
},
"engagement_center_title": {
"de": "Mein Postfach",
"en": "My inbox"
},
"id": 12345,
"organization_id": 12345,
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"],
"held_back": [
{
"page_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"block_id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"reason": "BLUEPRINT_MANAGED"
}
],
"org_settings": {
"canary": {
"enabled": true
},
"notracking": {
"enabled": true
}
},
"feature_flags": {},
"registration_validation_rules": {},
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"effect": "allow"
}
],
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"oidc_config": {},
"mobile_oidc_config": {},
"debug_mode": false
}
],
"preview_revision": {
"revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"name": "string",
"created_at": "1970-01-01T00:00:00.000Z"
}
}

getOrgPortalConfigV3​

Retrieves the portal configuration for the organization.

GET /v3/portal/org/portal/config

const { data } = await client.getOrgPortalConfigV3({
portal_id: 'example',
})
Response
{
"mobile_config": {
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-12345.ecp.epilot.cloud",
"domain_settings": {
"is_custom_domain_enabled": true,
"is_epilot_domain_enabled": true,
"is_redirection_enabled": true
},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {
"design": {
"overrides": {}
}
},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {
"start_page": true,
"billing": true,
"commodity_billing": true,
"change_due_date": true,
"new_design": true,
"mcp_enabled": true,
"mcp_grant_version": 0,
"portal_copilot": false,
"portal_copilot_agent_id": "string",
"portal_copilot_visibility": {
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
}
},
"accessToken": "string",
"advanced_mfa": {
"enabled": true
},
"auth_settings": {
"passwordless_login": {
"enabled": true
},
"passkeys": {
"enabled": false
},
"entry_point": "PASSWORD",
"preferred_sso_providers": ["office-365-login"],
"auto_redirect_to_sso": true,
"prevent_user_enumeration": true
},
"cognito_details": {
"cognito_user_pool_client_id": "6bsd0jkgoie74k2i8mrhc1vest",
"cognito_mobile_client_id": "3k9fj2l1m0n8b7v6c5x4z3a2s1",
"cognito_user_pool_arn": "arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341",
"cognito_user_pool_id": "eu-central-1_CUEQRNbUb",
"timeouts": {
"refresh_token": 300,
"access_token": 300,
"id_token": 300
},
"advanced_authentication": {
"user_activity_logging": true,
"adaptive_authentication": true,
"compromised_credentials_detection": true
},
"password_policy": {
"minimum_length": 8,
"maximum_length": 256,
"require_lowercase": true,
"require_uppercase": true,
"require_numbers": true,
"require_symbols": true,
"password_history_size": 3
}
},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {
"contact": ["name", "address"],
"contract": ["installment_amount"]
},
"email_templates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
},
"images": {
"orderLeftTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg",
"orderRightTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg",
"welcomeBanner": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg"
},
"entity_identifiers": {
"type": {
"isEnabled": true,
"attributes": ["contract_number"]
}
},
"contract_identifiers": [
{
"name": "email",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"self_assignment_mode": "contracts",
"contract_selector_config": {
"show_inactive": true,
"title_path": "string"
},
"registration_identifiers": [
{
"name": "last_name",
"schema": "contact"
},
{
"name": "contract_number",
"schema": "contract"
}
],
"surfaces": [
{
"id": "website-journeys",
"name": "Website journeys",
"description": "string",
"authentication": "login",
"token_ttl_seconds": 300,
"identifiers": [],
"data_access": {}
}
],
"contact_identifiers_for_account": [
{
"name": "first_name",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"additional_contact_attributes": [
{
"name": "first_name",
"required": true
},
{
"name": "last_name",
"required": true
}
],
"triggered_journeys": [
{
"trigger_name": "FIRST_LOGIN",
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"context_params": []
}
],
"entity_edit_rules": [
{
"slug": "contact",
"attribute": "first_name",
"rule_type": "cadence",
"cadence_period_type": "days",
"cadence_period": 1,
"changes_allowed": 1,
"grace_period": 1,
"allowed_increment": "10%",
"allowed_decrement": "10%",
"number_of_days_before_restriction": 10
}
],
"allowed_file_extensions": {
"document": ["pdf"],
"image": ["jpg"],
"spreadsheet": ["xls"],
"presentation": ["ppt"],
"audioVideo": ["mp4"],
"email": ["eml"],
"archive": ["zip"],
"cad": ["cad"],
"calendar": ["ics"],
"other": ["txt"]
},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"pages": {},
"global_blocks": {},
"notification_triggers": [
{
"trigger_type": "entity_added",
"entity_schema": "opportunity",
"enabled": true,
"template_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"target_ids": ["string"]
}
],
"engagement_center_enabled": true,
"engagement_center_task_templates": {
"title": "{{task.name}}",
"subtitle": "{{workflow.name}} · {{entity._title}}"
},
"engagement_center_title": {
"de": "Mein Postfach",
"en": "My inbox"
},
"id": 12345,
"organization_id": 12345,
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"],
"held_back": [
{
"page_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"block_id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"reason": "BLUEPRINT_MANAGED"
}
],
"org_settings": {
"canary": {
"enabled": true
},
"notracking": {
"enabled": true
}
},
"feature_flags": {},
"registration_validation_rules": {},
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"effect": "allow"
}
],
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"oidc_config": {},
"mobile_oidc_config": {},
"debug_mode": false,
"provider_type": "OIDC",
"attribute_mappings": {},
"entity_matching": {},
"expose_client_secret": false,
"debug_mode_until": "2026-10-30T12:00:00.000Z"
}
],
"preview_revision": {
"revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"name": "string",
"created_at": "1970-01-01T00:00:00.000Z"
},
"certificate_details": {
"status": "PENDING_VALIDATION",
"failed_reason": "CAA_ERROR"
}
}

getAllPortalConfigs​

Retrieves all portal configurations.

GET /v2/portal/configs

const { data } = await client.getAllPortalConfigs()
Response
{
"data": [
{
"mobile_config": {},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-12345.ecp.epilot.cloud",
"domain_settings": {},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {},
"accessToken": "string",
"advanced_mfa": {},
"auth_settings": {},
"cognito_details": {},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {},
"email_templates": {},
"images": {},
"entity_identifiers": {},
"contract_identifiers": [],
"self_assignment_mode": "contracts",
"contract_selector_config": {},
"registration_identifiers": [],
"surfaces": [],
"contact_identifiers_for_account": [],
"additional_contact_attributes": [],
"triggered_journeys": [],
"entity_edit_rules": [],
"allowed_file_extensions": {},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"pages": {},
"global_blocks": {},
"notification_triggers": [],
"engagement_center_enabled": true,
"engagement_center_task_templates": {},
"engagement_center_title": {},
"id": 12345,
"organization_id": 12345,
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"],
"held_back": [],
"org_settings": {},
"feature_flags": {},
"registration_validation_rules": {},
"grants": [],
"identity_providers": [],
"preview_revision": {}
}
]
}

migrateEmailTemplateReferences​

Walk every email-template config row in the caller's org and re-point any field on email_templates that currently references source_template_id at destination_template_id. Intended to be called

POST /v3/portal/email-templates:migrate-references

const { data } = await client.migrateEmailTemplateReferences(
null,
{
source_template_id: 'string',
destination_template_id: 'string'
},
)
Response
{
"migrated_portal_count": 2,
"migrated_portal_ids": ["string"],
"failed_portal_ids": ["string"]
}

listEmailTemplateReferences​

Read-only sibling of migrateEmailTemplateReferences. Lists every portal in the caller's org whose email_templates config references template_id, without rewriting anything. Used by the email-templ

POST /v3/portal/email-templates:list-references

const { data } = await client.listEmailTemplateReferences(
null,
{
template_id: 'string'
},
)
Response
{
"portals": [
{
"id": "string",
"name": "string"
}
]
}

upsertEmailTemplatesByPortalId​

Upserts the email templates of a portal by portal ID. On a portal with versioning enabled, the change is stored as a revision (Updated via API) and published in the same call, so every change to the

POST /v3/portal/email-templates/{portal_id}

const { data } = await client.upsertEmailTemplatesByPortalId(
{
portal_id: 'example',
},
{
confirmAccount: '5da0a718-c822-403d-9f5d-20d4584e0528',
advancedAuth: '5da0a718-c822-403d-9f5d-20d4584e0528',
advancedMFA: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeySignUp: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeySignInOneTimePassword: '5da0a718-c822-403d-9f5d-20d4584e0528',
passkeyVerificationCode: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeyLoginOTP: '5da0a718-c822-403d-9f5d-20d4584e0528',
forgotPassword: '5da0a718-c822-403d-9f5d-20d4584e0528',
invitation: '5da0a718-c822-403d-9f5d-20d4584e0528',
partnerInvitation: '5da0a718-c822-403d-9f5d-20d4584e0528',
onNewQuote: '5da0a718-c822-403d-9f5d-20d4584e0528',
onMapAPendingUser: '5da0a718-c822-403d-9f5d-20d4584e0528',
onDocUpload: '5da0a718-c822-403d-9f5d-20d4584e0528',
onWorkflowStepAssigned: '5da0a718-c822-403d-9f5d-20d4584e0528',
confirmEmailUpdate: '5da0a718-c822-403d-9f5d-20d4584e0528',
verifyCodeToSetPassword: '5da0a718-c822-403d-9f5d-20d4584e0528'
},
)
Response
{
"message": "Email Templates upserted successfully",
"emailTemplates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
}
}

getEmailTemplatesByPortalId​

Retrieves the email templates of a portal by portal ID

GET /v3/portal/email-templates/{portal_id}

const { data } = await client.getEmailTemplatesByPortalId({
portal_id: 'example',
})
Response
{
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
}

getPublicPortalWidgetsV3​

Retrieves the public widgets of a portal. Supports two identification methods:

  1. Using org_id + portal_id
  2. Using domain

GET /v3/portal/public/widgets

const { data } = await client.getPublicPortalWidgetsV3({
org_id: 'example',
portal_id: 'example',
domain: 'example',
})
Response
{
"portal_sk_v3": "string",
"is_v3_item": true,
"widgets": [
{
"id": "string",
"type": "ACTION_WIDGET",
"listIndex": 0,
"headline": {
"en": "string",
"de": "string"
},
"subHeadline": {
"en": "string",
"de": "string"
},
"schema": "string"
},
{
"id": "string",
"type": "ACTION_WIDGET",
"listIndex": 0,
"headline": {
"en": "string",
"de": "string"
},
"subHeadline": {
"en": "string",
"de": "string"
},
"content": "string"
}
]
}

getPortalWidgetsV3​

Retrieves the widgets of a portal by portal_id.

GET /v3/portal/widgets

const { data } = await client.getPortalWidgetsV3({
portal_id: 'example',
contract_id: 'example',
})
Response
{
"portal_sk_v3": "string",
"is_v3_item": true,
"widgets": [
{
"id": "string",
"type": "ACTION_WIDGET",
"listIndex": 0,
"headline": {
"en": "string",
"de": "string"
},
"subHeadline": {
"en": "string",
"de": "string"
},
"schema": "string"
},
{
"id": "string",
"type": "ACTION_WIDGET",
"listIndex": 0,
"headline": {
"en": "string",
"de": "string"
},
"subHeadline": {
"en": "string",
"de": "string"
},
"content": "string"
}
]
}

upsertPortalWidgetV3​

Upsert widget for a portal by portal_id.

POST /v3/portal/widgets

const { data } = await client.upsertPortalWidgetV3(
{
portal_id: 'example',
},
{
portal_sk_v3: 'string',
is_v3_item: true,
widgets: [
{
id: 'string',
type: 'ACTION_WIDGET',
listIndex: 0,
headline: {
en: 'string',
de: 'string'
},
subHeadline: {
en: 'string',
de: 'string'
},
schema: 'string'
},
{
id: 'string',
type: 'ACTION_WIDGET',
listIndex: 0,
headline: {
en: 'string',
de: 'string'
},
subHeadline: {
en: 'string',
de: 'string'
},
content: 'string'
},
/* ... 8 more */
]
},
)
Response
{
"portal_sk_v3": "string",
"is_v3_item": true,
"widgets": [
{
"id": "string",
"type": "ACTION_WIDGET",
"listIndex": 0,
"headline": {
"en": "string",
"de": "string"
},
"subHeadline": {
"en": "string",
"de": "string"
},
"schema": "string"
},
{
"id": "string",
"type": "ACTION_WIDGET",
"listIndex": 0,
"headline": {
"en": "string",
"de": "string"
},
"subHeadline": {
"en": "string",
"de": "string"
},
"content": "string"
}
]
}

savePortalFilesV3​

Add files to portal by portal_id

POST /v3/portal/portal/files

const { data } = await client.savePortalFilesV3(
{
portal_id: 'example',
},
{
origin: 'string',
draft: false,
files: [
{
filename: 12345,
file_type: 'orderRightTeaser',
_tags: 12345,
s3ref: {
bucket: 12345,
key: 12345
}
}
]
},
)
Response
{
"createdFiles": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "file"
}
]
}

replaceECPTemplateVariables​

Replaces the template variables of a portal

POST /v2/portal/replace-ecp-template-variables

const { data } = await client.replaceECPTemplateVariables(
null,
{
template_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
entity_context: {}
},
)
Response
{
"customerPortal": {
"link": "https://end-customer-portal.ecp.dev.epilot.io",
"invitationLink": "https://end-customer-portal.ecp.dev.epilot.io/register?contactId=7aa44fb8-d60e-40cc-9a3a-ba09a1ff7f51&email=john@doe.com",
"newDocumentLink": "https://end-customer-portal.ecp.dev.epilot.io/requests/opportunities/b8fef220-abe0-4382-a704-26848f60977b",
"entityLink": "https://end-customer-portal.ecp.dev.epilot.io/requests/opportunities/b8fef220-abe0-4382-a704-26848f60977b",
"userEmailsOnEntity": ["john@doe.com", "mary@doe.com"]
},
"installerPortal": {
"link": "https://installer-portal.ecp.dev.epilot.io",
"invitationLink": "https://installer-portal.ecp.dev.epilot.io/register?contactId=7aa44fb8-d60e-40cc-9a3a-ba09a1ff7f51&email=john@doe.com",
"newDocumentLink": "https://installer-portal.ecp.dev.epilot.io/requests/opportunities/b8fef220-abe0-4382-a704-26848f60977b",
"entityLink": "https://installer-portal.ecp.dev.epilot.io/requests/opportunities/b8fef220-abe0-4382-a704-26848f60977b",
"userEmailsOnEntity": ["peter@doe.com", "jane@doe.com"]
},
"portalUser": {
"link": "https://employee-portal.ecp.dev.epilot.io",
"invitationLink": "https://employee-portal.ecp.dev.epilot.io/register?contactId=7aa44fb8-d60e-40cc-9a3a-ba09a1ff7f51&email=john@doe.com",
"newDocumentLink": "https://employee-portal.ecp.dev.epilot.io/requests/opportunities/b8fef220-abe0-4382-a704-26848f60977b",
"entityLink": "https://employee-portal.ecp.dev.epilot.io/requests/opportunities/b8fef220-abe0-4382-a704-26848f60977b",
"userEmailsOnEntity": ["peter@doe.com", "jane@doe.com"]
}
}

getSchemas​

Retrieves the schemas. Only schemas usable in the private part of the portal are returned.

GET /v2/portal/schemas

const { data } = await client.getSchemas()
Response
{
"schemas": [
{
"slug": "contact"
}
]
}

getSchemasByDomain​

Retrieves schemas by domain. Only schemas and attributes used on public pages are returned.

GET /v2/portal/public/schemas

const { data } = await client.getSchemasByDomain({
domain: 'example',
})
Response
{
"schemas": [
{
"slug": "contact"
}
]
}

getPublicSchemasV3​

Retrieves schemas by portal. Only schemas and attributes used on public pages are returned. Supports two identification methods:

  1. Using org_id + portal_id
  2. Using domain

GET /v3/portal/public/schemas

const { data } = await client.getPublicSchemasV3({
org_id: 'example',
portal_id: 'example',
domain: 'example',
})
Response
{
"schemas": [
{
"slug": "contact"
}
]
}

getOrganizationSettingsByDomain​

Retrieves organization settings by domain. Only public organization settings are returned.

GET /v2/portal/public/org/settings

const { data } = await client.getOrganizationSettingsByDomain({
domain: 'example',
})
Response
{
"data": {
"automation_entity_mapping": {
"enabled": true
},
"automation_preview": {
"enabled": true
},
"central_inbox_preview_setting": {
"enabled": true
},
"contracts_preview_setting": {
"enabled": true
},
"disable_ivy": {
"enabled": true
},
"double_opt_in": {
"enabled": true
},
"ecommerce_catalog_preview": {
"enabled": true
},
"ecommerce_opportunities_preview": {
"enabled": true
},
"ecommerce_preview": {
"enabled": true
},
"end_customer_portal": {
"enabled": true
},
"installer_portal": {
"enabled": true
},
"entity_schema_builder": {
"enabled": true
},
"logic_editor_preview": {
"enabled": true
},
"new_navigation": {
"enabled": true
},
"partnering": {
"enabled": true
},
"product-availability": {
"enabled": true
},
"sso": {
"enabled": true
},
"submission_preview": {
"enabled": true
},
"user_roles_preview": {
"enabled": true
}
}
}

extraPermissionAttributes​

Retrieves the extra permission attributes.

GET /v2/portal/extra-permission-attributes

const { data } = await client.extraPermissionAttributes()
Response
{
"data": {
"contact": [
{
"name": "string",
"label": "string",
"group": "string"
}
],
"contract": [
{
"name": "string",
"label": "string",
"group": "string"
}
],
"order": [
{
"name": "string",
"label": "string",
"group": "string"
}
],
"opportunity": [
{
"name": "string",
"label": "string",
"group": "string"
}
],
"meter": [
{
"name": "string",
"label": "string",
"group": "string"
}
],
"meter_counter": [
{
"name": "string",
"label": "string",
"group": "string"
}
]
}
}

validateCaaRecordsV3​

Validates the CAA records of a portal

POST /v3/portal/validate/caa-records

const { data } = await client.validateCaaRecordsV3({
portal_id: 'example',
})
Response
{
"retry": true,
"message": "string",
"isDNSConfigured": true
}

getContact​

Retrieves the contact of the logged in user.

GET /v2/portal/contact

const { data } = await client.getContact()
Response
{
"entity": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "contact"
},
"files": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "file"
}
],
"relations": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"templates_output": {
"content_top_name": "Customer #123456",
"main_content_name": "Orange Flexible A2 (654321)",
"content_bottom_name": "Porscheplatz 1, 70435 Stuttgart, Germany",
"nested_content": {
"title": "Orange Flexible A2",
"subtitle": "654321"
}
},
"_schema": "contact"
}
],
"journey_actions": [
{
"journey_id": "string",
"action_label": {
"en": "string",
"de": "string"
},
"slug": "string",
"rules": [
{
"entity": "string",
"attribute": "string",
"attribute_value": "string"
}
]
}
]
}

getECPContact​

Get the Contact by id

GET /v2/portal/ecp/contact

const { data } = await client.getECPContact({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"data": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "contact"
}
}

checkContactExistsV3​

True if contact with given identifiers exists. Supports two identification methods:

  1. Using portal_id
  2. Using domain

POST /v3/portal/public/contact/exists

const { data } = await client.checkContactExistsV3(
{
portal_id: 'example',
domain: 'example',
},
{
org_id: 728,
registration_identifiers: {
contact: {
email: 'john.doe@example.com'
},
contract: {
contract_number: '123456'
}
},
trigger_identifiers_check: true
},
)
Response
{
"exists": true,
"contactId": "5da0a718-c822-403d-9f5d-20d4584e0528",
"accountId": "5da0a718-c822-403d-9f5d-20d4584e0528",
"reason": "TIMEOUT"
}

identifyContact​

Identify a contact by the surface's identifiers and, on a match, issue a short-lived bearer token that acts as that contact.

POST /v3/portal/public/contact/identify

const { data } = await client.identifyContact(
{
portal_id: 'example',
domain: 'example',
},
{
org_id: 728,
registration_identifiers: {
contact: {
email: 'john.doe@example.com'
},
contract: {
contract_number: '123456'
}
},
trigger_identifiers_check: true,
surface_id: 'website-journeys'
},
)
Response
{
"contact_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"account_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "contact_identification",
"surface_id": "website-journeys",
"expires_at": "2026-08-11T10:35:00.000Z",
"allowed_operations": [],
"has_portal_user": false,
"portal_user_email": "john.doe@example.com",
"reason": "TIMEOUT"
}

checkAccountExists​

True if account with given identifiers exists. Supports two identification methods:

  1. Using portal_id
  2. Using domain

POST /v3/portal/public/account/exists

const { data } = await client.checkAccountExists(
{
portal_id: 'example',
domain: 'example',
},
{
org_id: 728,
registration_identifiers: {
account: {
customer_number: 'ACC-123456'
},
contract: {
contract_number: '123456'
}
}
},
)
Response
{
"exists": true,
"accountId": "5da0a718-c822-403d-9f5d-20d4584e0528"
}

getValidSecondaryAttributes​

Get valid secondary attributes that are used while mapping a contact on registration

GET /v2/portal/contact/valid/secondary/attributes

const { data } = await client.getValidSecondaryAttributes()
Response
{
"data": [
{
"name": "first_name",
"type": "string"
}
]
}

getPortalCopilotAccess​

Whether the signed-in portal user may use the portal chat. False when the chat is off for the portal, when the user does not match its target visibility, or when targets cannot be matched.

GET /v2/portal/copilot/access

const { data } = await client.getPortalCopilotAccess()
Response
{
"allowed": true
}

getPortalUser​

Get the portal user details

GET /v2/portal/user

const { data } = await client.getPortalUser()
Response
{
"data": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "portal_user"
}
}

deletePortalUser​

Delete the portal user

DELETE /v2/portal/user

const { data } = await client.deletePortalUser()
Response
{
"message": "User Succesfully Deleted",
"data": "5da0a718-c822-403d-9f5d-20d4584e0528"
}

updatePortalUserEmail​

Update portal user email

PUT /v2/portal/user/update/email

const { data } = await client.updatePortalUserEmail(
null,
{
email: 'john@doe.com',
password: 'string'
},
)
Response
{
"message": "You will receive a confirmation mail soon on your updated email address."
}

changePortalUserPassword​

Hand over a password change to the third-party system configured via the changePassword portal extension hook. Only available when such a hook is configured for the portal; the built-in password cha

PUT /v2/portal/user/change/password

const { data } = await client.changePortalUserPassword(
null,
{
new_password: 'string'
},
)
Response
{
"message": "string"
}

getPortalUserNotificationPreferences​

Returns the notification preferences of the authenticated portal user. Notifications follow an opt-out model: a preference that was never stored on the portal user defaults to enabled (true). Responds

GET /v2/portal/user/notification-preferences

const { data } = await client.getPortalUserNotificationPreferences()
Response
{
"in_app": true
}

updatePortalUserNotificationPreferences​

Partially updates the notification preferences of the authenticated portal user. Only the channels present in the request body are changed; omitted channels keep their stored value (or the enabled-by-

PUT /v2/portal/user/notification-preferences

const { data } = await client.updatePortalUserNotificationPreferences(
null,
{
in_app: true
},
)
Response
{
"in_app": true
}

listPortalUserPasskeys​

Lists the passkeys the logged-in portal user has added.

GET /v2/portal/user/passkeys

const { data } = await client.listPortalUserPasskeys()
Response
{
"results": [
{
"credential_id": "string",
"name": "string",
"rp_id": "kundenportal.example.de",
"is_usable": true,
"device_type": "singleDevice",
"backed_up": true,
"created_at": "1970-01-01T00:00:00.000Z",
"last_used_at": "1970-01-01T00:00:00.000Z"
}
]
}

addPortalUserPasskey​

Stores a new passkey for the logged-in portal user. Send the browser's navigator.credentials.create() result for options from createPortalUserPasskeyRegistrationOptions. Only available when `auth_

POST /v2/portal/user/passkeys

const { data } = await client.addPortalUserPasskey(
null,
{
registration_response: {},
name: 'string'
},
)
Response
{
"credential_id": "string",
"name": "string",
"rp_id": "kundenportal.example.de",
"is_usable": true,
"device_type": "singleDevice",
"backed_up": true,
"created_at": "1970-01-01T00:00:00.000Z",
"last_used_at": "1970-01-01T00:00:00.000Z"
}

createPortalUserPasskeyRegistrationOptions​

Returns WebAuthn options for navigator.credentials.create() to add a passkey for the logged-in portal user. Needs the code from sendPortalUserPasskeyVerificationCode, so a session alone can't add

POST /v2/portal/user/passkeys/registration-options

const { data } = await client.createPortalUserPasskeyRegistrationOptions(
null,
{
verification_code: 'string'
},
)
Response
{}

sendPortalUserPasskeyVerificationCode​

Emails the logged-in portal user a 6-digit code needed to add a passkey (createPortalUserPasskeyRegistrationOptions). The code is valid for 10 minutes and allows 5 attempts; a new code replaces the

POST /v2/portal/user/passkeys/verification-code

const { data } = await client.sendPortalUserPasskeyVerificationCode()

renamePortalUserPasskey​

Renames one of the logged-in portal user's passkeys. An empty name removes the label. Works even when passkeys are turned off for the portal.

PATCH /v2/portal/user/passkeys/{credential_id}

const { data } = await client.renamePortalUserPasskey(
{
credential_id: 'example',
},
{
name: 'string'
},
)
Response
{
"credential_id": "string",
"name": "string",
"rp_id": "kundenportal.example.de",
"is_usable": true,
"device_type": "singleDevice",
"backed_up": true,
"created_at": "1970-01-01T00:00:00.000Z",
"last_used_at": "1970-01-01T00:00:00.000Z"
}

deletePortalUserPasskey​

Removes one of the logged-in portal user's passkeys. Works even when passkeys are turned off for the portal.

DELETE /v2/portal/user/passkeys/{credential_id}

const { data } = await client.deletePortalUserPasskey({
credential_id: 'example',
})

resendConfirmationEmail​

Resend confirmation email

POST /v2/portal/user/resend/confirmation-email/{id}

const { data } = await client.resendConfirmationEmail({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"message": "Confirmation email sent successfully."
}

fetchPortalUsersByRelatedEntity​

Get all users for a given entity

GET /v2/portal/users/by-related-entity

const { data } = await client.fetchPortalUsersByRelatedEntity({
entity_id: 'example',
slug: 'example',
})
Response
{
"portalUsers": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "portal_user"
}
]
}

confirmUser​

Confirm a portal user

GET /v2/portal/user/confirm

const { data } = await client.confirmUser({
confirmation_link_token: 'example',
use_redirect: true,
})
Response
{
"confirmed": true,
"user_already_confirmed": true
}

confirmUserWithUserId​

Confirm a portal user

GET /v2/portal/user/confirm/{id}

const { data } = await client.confirmUserWithUserId({
origin: 'example',
id: '123e4567-e89b-12d3-a456-426614174000',
org_id: 'example',
})

userExistsV3​

Checks whether a user exists in the portal. Supports two identification methods:

  1. Using org_id + portal_id
  2. Using domain

GET /v3/portal/public/user/exists

const { data } = await client.userExistsV3({
email: 'example',
org_id: 'example',
portal_id: 'example',
domain: 'example',
})
Response
{
"exists": true
}

getRecipientsToNotifyOnAutomation​

Get recipients to notify on automation

POST /v2/portal/recipients-to-notify

const { data } = await client.getRecipientsToNotifyOnAutomation(
null,
{
emails: ['john@doe.com'],
template_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
context_id: '5da0a718-c822-403d-9f5d-20d4584e0528'
},
)
Response
{
"recipients": [
{
"email": "john@doe.com",
"recipient_id": "5da0a718-c822-403d-9f5d-20d4584e0528"
}
],
"message": "string"
}

configureDistributionV3​

Configure the distribution for the portal's custom domain

GET /v3/portal/configure-distribution

const { data } = await client.configureDistributionV3({
portal_id: 'example',
})
Response
{
"domainName": "dsj8op4ha01jha23.cloudfront.net"
}

postOrderAcceptance​

Accept/decline an offer by id

POST /v2/portal/order/{id}/acceptance

const { data } = await client.postOrderAcceptance(
{
id: '123e4567-e89b-12d3-a456-426614174000',
},
{
decision: 'accept'
},
)
Response
{
"data": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "order"
}
}

getContractWithTemplates​

Resolve Handlebars templates against a contract's related meters and return the contract with templates_output populated per meter. This is a read-only operation — it does not modify the contract. It

POST /v2/portal/contract/{id}/resolve-templates

const { data } = await client.getContractWithTemplates(
{
id: '123e4567-e89b-12d3-a456-426614174000',
},
{
templates: {},
templates_ref: {
page_id: 'string',
block_id: 'string',
config_id: 'string',
global_search_config_id: 'string'
}
},
)
Response
{
"entity": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{}
],
"contract_name": "Grid Contract",
"contract_number": "12345",
"status": "approved",
"description": "This contract is for the supply of widgets.",
"account_number": "67890",
"branch": "power",
"billing_address": "123 Main St, Anytown",
"delivery_address": "456 Elm St, Anytown",
"additional_addresses": "789 Oak St, Anytown",
"termination_date": "2022-01-01",
"termination_reason": "Non-payment",
"billing_period": "monthly",
"billing_duration_amount": 30,
"renewal_duration_amount": 365,
"renewal_duration_unit": "years",
"notice_time_amount": 30,
"notice_time_unit": "months",
"start_date": "2021-01-01",
"billing_due_day": 2,
"installment_amount": 10050,
"balance": 8990,
"balance_currency": "EUR"
},
"orders": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [],
"_schema": "order"
}
],
"meters": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [],
"_schema": "meter",
"templates_output": {}
}
],
"files": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [],
"_schema": "file"
}
],
"relations": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [],
"templates_output": {},
"_schema": "contact"
}
],
"workflow": [
{
"id": "8gja72h6kas6h",
"name": "Lead Qualification",
"trigger": "MANUAL",
"status": "STARTED",
"creationTime": "2021-04-27T12:01:13.000Z",
"lastUpdateTime": "2021-04-27T12:01:13.000Z",
"dueDate": "2021-04-27T12:01:13.000Z",
"assignedTo": ["252", "29052"],
"flow": []
}
],
"journey_actions": [
{
"journey_id": "string",
"action_label": {},
"slug": "string",
"rules": []
}
]
}

addContractByIdentifiers​

Self-assign contract(s) by pre-configured identifiers.

POST /v2/portal/contract/by-identifiers

const { data } = await client.addContractByIdentifiers(
null,
{
contract: {
contract_number: '123456'
},
meter: {
meter_number: '123456'
}
},
)
Response
{
"data": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"templates_output": {
"content_top_name": "Customer #123456",
"main_content_name": "Orange Flexible A2 (654321)",
"content_bottom_name": "Porscheplatz 1, 70435 Stuttgart, Germany",
"nested_content": {
"title": "Orange Flexible A2",
"subtitle": "654321"
}
},
"_schema": "contact"
}
],
"hits": 0
}

getEntityIdentifiers​

Retrieve a list of entity identifiers used for entity search by portal users.

GET /v2/portal/entity/identifiers/{slug}

const { data } = await client.getEntityIdentifiers({
slug: 'example',
})
Response
{
"data": [
{
"name": "contract_number",
"type": "string"
}
]
}

getEntityActivityFeed​

Get activity feed for an entity

GET /v2/portal/entity/{slug}/{id}/activity

const { data } = await client.getEntityActivityFeed({
slug: 'example',
id: '123e4567-e89b-12d3-a456-426614174000',
after: 'example',
before: 'example',
from: 1,
size: 1,
type: 'example',
include_relations: true,
})
Response
{
"total": 1,
"results": [
{
"_id": "01F130Q52Q6MWSNS8N2AVXV4JN",
"timestamp": "1970-01-01T00:00:00.000Z",
"type": "MyCustomActivity",
"title": "My custom activity",
"message": "{{caller}} did something with {{entity payload.entity.id}}.",
"payload": {
"entity": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"schema": "contact"
}
}
}
]
}

validateCadenceEntityEditRules​

Validate if cadence rule is valid for an entity

GET /v2/portal/{slug}/{id}:validateRule

const { data } = await client.validateCadenceEntityEditRules({
slug: 'example',
id: '123e4567-e89b-12d3-a456-426614174000',
attribute: 'example',
})
Response
{
"isBlockedByRules": false,
"failedRule": {
"slug": "contact",
"attribute": "string",
"rule_type": "string",
"cadence_period_type": "string",
"changes_allowed": 0,
"cadence_period": 0,
"allowed_decrement": "string",
"allowed_increment": "string",
"number_of_days_before_restriction": 0,
"grace_period": 0
}
}

searchPaymentRelationsInEntities​

Search for entities that have the payment relation with the given payment id

GET /v2/portal/entities-by-payment/{id}

const { data } = await client.searchPaymentRelationsInEntities({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"results": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"templates_output": {
"content_top_name": "Customer #123456",
"main_content_name": "Orange Flexible A2 (654321)",
"content_bottom_name": "Porscheplatz 1, 70435 Stuttgart, Germany",
"nested_content": {
"title": "Orange Flexible A2",
"subtitle": "654321"
}
},
"_schema": "contact"
}
],
"hits": 50
}

createCustomEntityActivity​

Create a custom activity that can be displayed in activity feed of an entity.

PUT /v2/portal/entity/activity

const { data } = await client.createCustomEntityActivity(
{
entities: ['...'],
},
{
type: 'PortalUserResetPassword'
},
)
Response
{
"_id": "01F130Q52Q6MWSNS8N2AVXV4JN",
"timestamp": "1970-01-01T00:00:00.000Z",
"type": "MyCustomActivity",
"title": "My custom activity",
"message": "{{caller}} did something with {{entity payload.entity.id}}.",
"payload": {
"entity": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"schema": "contact"
}
}
}

saveEntityFile​

Add files to an entity

POST /v2/portal/entity/file

const { data } = await client.saveEntityFile(
null,
{
entity_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
entity_type: 'order',
files: [
{
filename: 'document.pdf',
access_control: 'private',
s3ref: {
bucket: 12345,
key: 12345
}
}
]
},
)
Response
{
"createdFiles": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "file"
}
]
}

getRegistrationIdentifiers​

Get valid attributes from entities that can be used as identifier to map contact to user on registration

GET /v2/portal/registration/identifiers

const { data } = await client.getRegistrationIdentifiers()
Response
{
"data": {
"contact": [
{
"label": "First name",
"name": "first_name",
"type": "string"
}
],
"contract": [
{
"label": "Contract number",
"name": "contract_number",
"type": "string"
}
]
}
}

getFilePreview​

resolves an in-portal preview for a file. Returns a Content-Disposition: inline URL for directly-previewable files (PDF, common image formats), or a document-api PDF conversion result for the Office f

GET /v2/portal/user/file/{id}/preview

const { data } = await client.getFilePreview({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"kind": "pdf",
"url": "https://example.com/path",
"requires_auth": true,
"download_url": "https://example.com/path"
}

trackFileDownloaded​

Track that user has downloaded a file

POST /v2/portal/user/file/{id}/downloaded

const { data } = await client.trackFileDownloaded({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"file": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "file",
"filename": "document.pdf",
"access_control": "private",
"file_date": "2021-02-09T12:41:43.662Z",
"public_url": "https://epilot-files-prod.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
"type": "document",
"mime_type": "application/pdf",
"_relations": [
{
"entity_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_schema": "contact"
}
],
"is_new": true,
"custom_download_url_auth": "token"
}
}

getBillingEvents​

Fetch billing events for a portal user

GET /v2/portal/billing/events

const { data } = await client.getBillingEvents({
from: 1,
size: 1,
entity_id: ['...'],
event_type: 'example',
paid: true,
date_after: 'example',
date_before: 'example',
sort: 'example',
})
Response
{
"results": [
{
"billing_amount_decimal": "100.50",
"billing_amount": 10050,
"billing_currency": "EUR",
"external_id": "d4fb2a4e-3f74-4fc4-8fba-6fdaaaa3b08e",
"contract": {
"$relation": [
{
"entity_id": "f589786b-3024-43cd-9cb3-5a3c953f2896"
}
]
},
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"type": "installment",
"due_date": "1970-01-01",
"paid_date": "1970-01-01"
}
],
"hits": 50
}

getCustomerBalance​

Get total balance across all contracts and orders of a customer entity.

GET /v2/portal/billing/customers/balance

const { data } = await client.getCustomerBalance()
Response
{
"balance": 8990,
"balance_decimal": "89.90",
"balance_currency": "EUR"
}

getBillingAccount​

Get a billing account by id.

GET /v2/portal/billing/accounts/{id}

const { data } = await client.getBillingAccount({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"entity": {
"billing_account_number": "string",
"balance": 0,
"balance_decimal": "string",
"balance_currency": "EUR",
"billing_contact": {
"$relation": [
{
"entity_id": "f589786b-3024-43cd-9cb3-5a3c953f2896"
}
]
},
"billing_address": {
"$relation_ref": [
{
"entity_id": "f589786b-3024-43cd-9cb3-5a3c953f2896",
"path": "address",
"_id": "f589786b-3024-43cd-9cb3-5a3c953f2896"
}
]
},
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
]
},
"relations": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"templates_output": {
"content_top_name": "Customer #123456",
"main_content_name": "Orange Flexible A2 (654321)",
"content_bottom_name": "Porscheplatz 1, 70435 Stuttgart, Germany",
"nested_content": {
"title": "Orange Flexible A2",
"subtitle": "654321"
}
},
"_schema": "contact"
}
]
}

loginToPortalAsUser​

Generate a token to log in to a portal impersonating a users.

POST /v2/portal/admin:login-as-user

const { data } = await client.loginToPortalAsUser(
null,
{
email: 'portal-customer@email.com',
origin: 'string',
portal_id: 'string',
domain: 'string'
},
)
Response
{
"login_as_token": "string",
"portal_url": "https://my-portal.ecp.epilot.io"
}

triggerEntityAccessEventV3​

Trigger entity access event for a portal user. Supports two identification methods:

  1. Using portal_id
  2. Using domain

POST /v3/portal/entity/{schema}/access

const { data } = await client.triggerEntityAccessEventV3({
schema: 'example',
entity_id: 'example',
portal_id: 'example',
domain: 'example',
})
Response
{
"eventId": "string"
}

getPortalUserEntity​

Get a single entity for a portal user

POST /v2/portal/entity:get

const { data } = await client.getPortalUserEntity(
null,
{
slug: 'contact',
entity_id: '3ec28ab5-8598-41ef-9486-b57fca1d5e2a',
hydrate: false,
fields: ['_id', '_title'],
templates: {
content_top_name: 'Customer #{{contract.customer_number}}',
main_content_name: '{{contract.contract_name}} ({{contract.contract_number}})',
content_bottom_name: '{{custom_contract_delivery_address}}',
nested_content: {
title: '{{contract.contract_name}}',
subtitle: '{{contract.contract_number}}'
}
},
templates_ref: {
page_id: 'string',
block_id: 'string',
config_id: 'string',
global_search_config_id: 'string'
},
filters: [
{
term: {
'status.keyword': 'active'
}
},
{
range: {
_created_at: {
gte: '2023-01-01'
}
}
}
],
filters_context: [
{
portal_user: true
},
{
contact: true
},
/* ... 1 more */
],
targets: ['3ec28ab5-8598-41ef-9486-b57fca1d5e2a']
},
)
Response
{
"result": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"templates_output": {
"content_top_name": "Customer #123456",
"main_content_name": "Orange Flexible A2 (654321)",
"content_bottom_name": "Porscheplatz 1, 70435 Stuttgart, Germany",
"nested_content": {
"title": "Orange Flexible A2",
"subtitle": "654321"
}
},
"_schema": "contact"
}
}

searchPortalUserEntities​

Search all entities of a portal user

POST /v2/portal/entity:search

const { data } = await client.searchPortalUserEntities(
null,
{
slug: 'contact',
q: 'contract',
q_fields: ['_title', 'customer._title', 'customer.first_name', 'customer.last_name'],
group: 'customer._title',
group_title: '{{customer[Primary].first_name}} {{customer[Primary].last_name}}',
group_size: 100,
group_sort: 'desc',
group_after_key: {},
sort: '_created_at:desc',
from: 0,
size: 100,
hydrate: false,
fields: ['_id', '_title'],
templates: {
content_top_name: 'Customer #{{contract.customer_number}}',
main_content_name: '{{contract.contract_name}} ({{contract.contract_number}})',
content_bottom_name: '{{custom_contract_delivery_address}}'
},
templates_ref: {
page_id: 'string',
block_id: 'string',
config_id: 'string',
global_search_config_id: 'string'
},
filters: [
{
term: {
'status.keyword': 'active'
}
},
{
range: {
_created_at: {
gte: '2023-01-01'
}
}
}
],
filters_context: [
{
portal_user: true
},
{
contact: true
},
/* ... 1 more */
],
targets: ['3ec28ab5-8598-41ef-9486-b57fca1d5e2a'],
match_any_targets: ['3ec28ab5-8598-41ef-9486-b57fca1d5e2a', '5f2c1e7a-6b0d-4a8e-9c3f-1d2e3f4a5b6c'],
include: ['active_workflow'],
highlight: {}
},
)
Response
{
"results": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"templates_output": {
"content_top_name": "Customer #123456",
"main_content_name": "Orange Flexible A2 (654321)",
"content_bottom_name": "Porscheplatz 1, 70435 Stuttgart, Germany",
"nested_content": {
"title": "Orange Flexible A2",
"subtitle": "654321"
}
},
"_schema": "contact"
}
],
"pagination": {
"from": 0,
"size": 10,
"total": 50,
"has_more": true
},
"hits": 10,
"includes": {
"active_workflow": {}
}
}

canTriggerPortalFlow​

Returns whether the user can trigger a portal flow

POST /v2/portal/can-trigger-portal-flow

const { data } = await client.canTriggerPortalFlow(
{
origin: 'example',
portal_id: 'example',
},
{
activity_id: '01F130Q52Q6MWSNS8N2AVXV4JN',
ecp_config: {
file_config: {
shared_with_end_customer: true,
_tags: ['example', 'mock']
}
}
},
)
Response
{
"can_trigger": true
}

getAutomationContext​

Retrieves the automation context.

GET /v2/portal/automation-context

const { data } = await client.getAutomationContext({
activity_id: 'example',
type: 'example',
})
Response
{}

updateWorkflowStepAsDone​

Update a workflow step as done

PUT /v2/portal/workflow/{workflow_id}/{step_id}:markDone

const { data } = await client.updateWorkflowStepAsDone({
workflow_id: 'example',
step_id: 'example',
})
Response
{
"startedTime": "2024-01-12T13:29:55.942Z",
"requirements": [],
"created": "2023-10-20T17:41:10.256Z",
"executionType": "MANUAL",
"assignedToInProgress": "-",
"sectionId": "lzxsw2sblj7",
"type": "STEP",
"entityRefId": "q1d6vcbsqvn",
"assignedTo": ["10014532"],
"lastUpdated": "2024-01-13T05:18:43.838Z",
"ecp": {},
"userIds": [],
"name": "Hinterlege den vereinbarten LIC Termin",
"id": "q1d6vcbsqvn",
"definitionId": "9UjHKq",
"status": "COMPLETED",
"manuallyCreated": false,
"enabled": true,
"completedTime": "2024-01-13T05:18:43.827Z"
}

getEntityWorkflows​

Get all workflows associated with an entity (requires access to the entity)

GET /v2/portal/entity/{slug}/{id}/workflows

const { data } = await client.getEntityWorkflows({
slug: 'example',
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"workflow_executions": [
{
"id": "8gja72h6kas6h",
"name": "Lead Qualification",
"trigger": "MANUAL",
"status": "STARTED",
"creationTime": "2021-04-27T12:01:13.000Z",
"lastUpdateTime": "2021-04-27T12:01:13.000Z",
"dueDate": "2021-04-27T12:01:13.000Z",
"assignedTo": ["252", "29052"],
"flow": [
{
"id": "sectionId1",
"name": "Initial Information Gathering",
"steps": [
{
"id": "sada5641f3a21",
"name": "Call client and confirm address and product",
"status": "ASSIGNED",
"assignedTo": ["11"]
},
{
"id": "sada5641f3a22",
"name": "Check product availability",
"status": "UNASSIGNED"
}
]
},
{
"id": "firstLevelStepId1",
"name": "Print and send catalog",
"status": "SKIPPED",
"dueDate": "2023-01-15T20:00:00"
}
]
}
]
}

getOutstandingTasks​

Get outstanding workflow tasks for the portal user

GET /v2/portal/engagement/tasks

const { data } = await client.getOutstandingTasks()
Response
{
"tasks": [
{
"entity_id": "string",
"entity_schema": "string",
"entity_title": "string",
"workflow_id": "string",
"workflow_name": "string",
"step_id": "string",
"step_name": "string",
"journey_id": "string",
"complete_task_automatically": true,
"title": "string",
"subtitle": "string"
}
],
"total": 0
}

getEntityPortalWorkflows​

Get all portal-relevant workflows associated with an entity (requires access to the entity), linearized by the Workflows API into a flat, ordered list of portal-visible tasks.

GET /v2/portal/entity/{slug}/{id}/workflows/linearized

const { data } = await client.getEntityPortalWorkflows({
slug: 'example',
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"portal_workflows": [
{
"id": "string",
"definition_id": "string",
"name": "string",
"status": "STARTED",
"version": 2,
"created_at": "string",
"updated_at": "string",
"completed_at": "string",
"due_date": "string",
"assigned_to": ["string"],
"contexts": [
{
"entity_id": "string",
"entity_schema": "string",
"is_primary": true
}
],
"is_path_complete": true,
"tasks": [
{
"id": "string",
"name": "string",
"order": 0,
"status": "COMPLETED",
"is_active": true,
"start_date": "1970-01-01T00:00:00.000Z",
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"portal_button_label": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"portal_button_label": "string",
"complete_task_automatically": true
}
},
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"portal_button_label": "string",
"complete_task_automatically": true
},
"assigned_to": ["string"],
"phase_id": "string",
"phase_name": "string",
"stage_id": "string",
"completed_at": "string",
"updated_at": "string"
}
],
"stages": [
{
"id": "string",
"name": "string",
"description": "string",
"status": "COMPLETED",
"completed_at": "string",
"portal_names": {
"ecp": "string",
"installer": "string"
},
"portal_descriptions": {
"ecp": "string",
"installer": "string"
}
}
],
"portal_titles": {
"ecp": "string",
"installer": "string"
}
}
]
}

getEntityPortalWorkflowsBatch​

Batch variant of getEntityPortalWorkflows: returns portal-relevant workflows for up to 50 entities — schemas may differ — in a single call, each already linearized by the Workflows API into a flat,

POST /v2/portal/entities/workflows/linearized/batch

const { data } = await client.getEntityPortalWorkflowsBatch(
null,
{
entities: [
{
id: 'string',
slug: 'order'
}
]
},
)
Response
{
"results": [
{
"entity_id": "string",
"portal_workflows": [
{
"id": "string",
"definition_id": "string",
"name": "string",
"status": "STARTED",
"version": 2,
"created_at": "string",
"updated_at": "string",
"completed_at": "string",
"due_date": "string",
"assigned_to": ["string"],
"contexts": [
{
"entity_id": "string",
"entity_schema": "string",
"is_primary": true
}
],
"is_path_complete": true,
"tasks": [
{
"id": "string",
"name": "string",
"order": 0,
"status": "COMPLETED",
"is_active": true,
"start_date": "1970-01-01T00:00:00.000Z",
"ecp": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"portal_button_label": "string",
"complete_task_automatically": true
}
},
"installer": {
"enabled": true,
"label": "string",
"description": "string",
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"portal_button_label": "string",
"complete_task_automatically": true
}
},
"journey": {
"id": "string",
"journeyId": "string",
"name": "string",
"portal_button_label": "string",
"complete_task_automatically": true
},
"assigned_to": ["string"],
"phase_id": "string",
"phase_name": "string",
"stage_id": "string",
"completed_at": "string",
"updated_at": "string"
}
],
"stages": [
{
"id": "string",
"name": "string",
"description": "string",
"status": "COMPLETED",
"completed_at": "string",
"portal_names": {
"ecp": "string",
"installer": "string"
},
"portal_descriptions": {
"ecp": "string",
"installer": "string"
}
}
],
"portal_titles": {
"ecp": "string",
"installer": "string"
}
}
]
}
]
}

uploadMeterReadingPhoto​

Uploads a Meter Reading photo and - if enabled - gives back data extracted from the photo.

POST /v2/portal/metering/reading/photo

const { data } = await client.uploadMeterReadingPhoto(
null,
{
filename: 'Reading 10.01.2025.jpg',
mime_type: 'image/jpeg',
contents: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTExMWFhUXGBgYGBgYGBgYGBgYGBgYFxgYFxgYHSggGBolHRgXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGy0lHyUt',
meter_id: '5da0a718-c822-403d-9f5d-20d4584e0528'
},
)
Response
{
"data": {
"filename": "Reading 10.01.2025.jpg",
"s3ref": {
"bucket": "meter-readings",
"key": "uuid/reading-10.01.2025.jpg"
},
"reading": "000123.45",
"sector": "water",
"meter_numbers": ["00123456"],
"file_id": "abc123def456"
}
}

createMeterReading​

Inserts a new meter reading.

POST /v2/portal/metering/reading

const { data } = await client.createMeterReading(
{
override_plausibility: true,
},
{
value: 240,
read_by: 'John Doe',
reason: 'Storing the feed-in record',
meter_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
counter_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
direction: 'feed-in',
timestamp: '2022-10-10',
source: 'ECP',
status: 'valid',
external_id: 'string',
remark: 'Customer reported unusual consumption',
metadata: {
registration_id: '1234567890',
business_unit: 'ABC'
}
},
)
Response
{
"data": {
"value": 240,
"read_by": "John Doe",
"reason": "Storing the feed-in record",
"meter_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"counter_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"direction": "feed-in",
"timestamp": "2022-10-10",
"source": "ECP",
"status": "valid",
"external_id": "string",
"remark": "Customer reported unusual consumption",
"metadata": {
"registration_id": "1234567890",
"business_unit": "ABC"
}
}
}

getAllowedMeterReadingRange​

Get allowed reading range for all counters of a meter from the configured third-party plausibility check hook using 'range' mode. This endpoint requires a plausibility check hook to be configured for

GET /v2/portal/metering/reading/allowed-range/{meter_id}

const { data } = await client.getAllowedMeterReadingRange({
meter_id: 'example',
origin: 'example',
timestamp: 'example',
context_entities: 'example',
})
Response
{
"data": [
{
"meter_counter_id": "string",
"min_value": 0,
"max_value": 0
}
]
}

getMeterReadings​

Fetches meter readings for a counter and optionally resolves Handlebars template strings against each reading object using @epilot/variables.

POST /v2/portal/metering/readings

const { data } = await client.getMeterReadings(
null,
{
meter_id: 'string',
counter_id: 'string',
sort: 'desc',
from: 0,
size: 10,
templates: {},
counter_templates: {},
include_counter: false,
templates_ref: {
page_id: 'string',
block_id: 'string',
config_id: 'string',
global_search_config_id: 'string'
}
},
)
Response
{
"results": [
{
"templates_output": {}
}
],
"hits": 0,
"counter_templates_output": {},
"counter": {
"unit": "kwh",
"obis_number": "1-1:1.8.1",
"direction": "feed-in",
"tariff_type": "string"
}
}

getMeter​

Retrieves a meter of the portal user, with its journey actions and related entities.

GET /v2/portal/metering/meter/{meter_id}

const { data } = await client.getMeter({
meter_id: 'example',
})
Response
{
"data": {
"entity": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "meter"
},
"journey_actions": {
"journey_id": "string",
"action_label": {
"en": "string",
"de": "string"
},
"slug": "string",
"rules": [
{
"entity": "string",
"attribute": "string",
"attribute_value": "string"
}
]
},
"relations": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"templates_output": {
"content_top_name": "Customer #123456",
"main_content_name": "Orange Flexible A2 (654321)",
"content_bottom_name": "Porscheplatz 1, 70435 Stuttgart, Germany",
"nested_content": {
"title": "Orange Flexible A2",
"subtitle": "654321"
}
},
"_schema": "contact"
}
]
}
}

getMeterCounters​

Retrieves the counters of a meter of the portal user.

GET /v2/portal/metering/meter/{meter_id}/counters

const { data } = await client.getMeterCounters({
meter_id: 'example',
})
Response
{
"data": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"_schema": "meter_counter",
"obis_number": "string",
"direction": "feed-in",
"transformer_ratio": 0,
"unit": "string",
"forecast_reading_value": "string",
"forecast_as_of": "string",
"current_consumption": 0,
"last_reading": "string",
"conversion_factor": 0,
"tariff_type": "ht"
}
]
}

createMeterReadings​

Inserts readings for several counters of a meter of the portal user at once, one reading per counter and at most 100 per request. Use createMeterReading instead when the portal has a meter reading p

POST /v2/portal/metering/meter/{meter_id}/readings

const { data } = await client.createMeterReadings(
{
meter_id: 'example',
},
{
readings: [
{
value: 0,
counter_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
direction: 'feed-in',
timestamp: 'string',
read_by: 'John Doe',
reason: 'Storing the feed-in record',
source: 'ECP',
status: 'valid',
remark: 'string',
metadata: {}
}
]
},
)
Response
{
"data": [
{
"value": 240,
"read_by": "John Doe",
"reason": "Storing the feed-in record",
"meter_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"counter_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"direction": "feed-in",
"timestamp": "2022-10-10",
"source": "ECP",
"status": "valid",
"external_id": "string",
"remark": "Customer reported unusual consumption",
"metadata": {
"registration_id": "1234567890",
"business_unit": "ABC"
}
}
]
}

getAllowedMeterReading​

Returns the allowed min/max reading per counter of the meter, derived from its reading history. Unlike getAllowedMeterReadingRange, this needs no plausibility check hook.

GET /v2/portal/metering/meter/{meter_id}/allowed-reading

const { data } = await client.getAllowedMeterReading({
meter_id: 'example',
timestamp: 'example',
})
Response
{
"data": [
{
"counter_id": "string",
"min_value": 0,
"max_value": 0,
"last_reading": "1970-01-01T00:00:00.000Z"
}
]
}

getMeterCounter​

Retrieves a counter of a meter of the portal user, incl. its unit and last reading.

GET /v2/portal/metering/counter/{counter_id}

const { data } = await client.getMeterCounter({
counter_id: 'example',
})
Response
{
"data": {
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"_schema": "meter_counter",
"obis_number": "string",
"direction": "feed-in",
"transformer_ratio": 0,
"unit": "string",
"forecast_reading_value": "string",
"forecast_as_of": "string",
"current_consumption": 0,
"last_reading": "string",
"conversion_factor": 0,
"tariff_type": "ht"
}
}

getContractMeters​

Retrieves the meters of a contract of the portal user.

GET /v2/portal/metering/contract/{contract_id}/meters

const { data } = await client.getContractMeters({
contract_id: 'example',
})
Response
{
"data": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"_title": "Example Entity",
"_org": "123",
"_tags": ["example", "mock"],
"_created_at": "2021-02-09T12:41:43.662Z",
"_updated_at": "2021-02-09T12:41:43.662Z",
"templates_output_highlighted": {},
"search_snippets": [
{
"field": "string",
"fragment": "string"
}
],
"_schema": "meter"
}
]
}

getPublicSSOProviderV3​

Returns the public configuration of a single SSO identity provider with env var placeholders (incl. secrets) already resolved against the organization's environment.

GET /v3/portal/public/sso/providers/{provider_slug}

const { data } = await client.getPublicSSOProviderV3({
provider_slug: 'example',
org_id: 'example',
portal_id: 'example',
})
Response
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"oidc_config": {
"type": "implicit",
"oidc_issuer": "https://login.microsoftonline.com/33d4f3e5-3df2-421e-b92e-a63cfa680a88/v2.0",
"redirect_uri": "https://customer-portal.com/login",
"client_id": "ab81daf8-8b1f-42d6-94ca-c51621054c75",
"client_secret": "7BIUnn~6shh.7fNtXb..3k1Mp3s6k6WK3B",
"has_client_secret": true,
"scope": "openid email",
"metadata": {
"response_modes_supported": ["form_post"],
"authorization_endpoint": "https://www.facebook.com/v12.0/dialog/oauth",
"token_endpoint": "https://graph.facebook.com/v12.0/oauth/access_token",
"userinfo_endpoint": "https://graph.facebook.com/me",
"logout_uri": "https://login.microsoftonline.com/common/oauth2/v2.0/logout",
"logout_redirect_uri": "https://customer-portal.com/login",
"skip_login_as_logout": false,
"mobile_redirect_uri": "msauth.io.epilot.ecp://auth",
"test_auth_username": "test@epilot.io",
"test_auth_password": "string"
},
"prompt": "login"
},
"debug_mode": false
}

ssoLoginV3​

Initiate login using external SSO identity.

POST /v3/portal/public/sso/login

const { data } = await client.ssoLoginV3(
{
portal_id: 'example',
org_id: 'example',
domain: 'example',
contact_id: 'example',
},
{
provider_slug: 'office-365-login',
login_only: false
},
)
Response
{
"token": "string",
"email": "portal-customer@email.com"
}

ssoRedirect​

Handles the redirect from the external SSO provider. Validates the authorization code and state received from the provider. Redirects the user to the provided web_uri with the validated credenti

POST /v2/portal/public/sso/redirect

const { data } = await client.ssoRedirect({
web_uri: 'example',
})

ssoCallback​

Handles the callback from the external SSO provider, validates the authorization code and generates a external provider token to be used with the CUSTOM_AUTH flow against Cognito.

POST /v2/portal/public/sso/callback

const { data } = await client.ssoCallback(
{
domain: 'example',
},
{
provider_slug: 'office-365-login',
token_endpoint: 'https://www.facebook.com/v12.0/dialog/oauth',
grant_type: 'authorization_code',
code: '123456',
redirect_uri: 'https://customer-portal.com/sso',
client_id: '123456',
code_verifier: '123456'
},
)
Response
{
"access_token": "123456",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "123456",
"id_token": "123456",
"scope": "openid email"
}

getPortalPage​

Fetch a portal page by id

GET /v2/portal/pages/{id}

const { data } = await client.getPortalPage({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {
"is_hidden": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}

updatePortalPage​

Update a portal page by id. On a portal with versioning enabled, the change is stored as a revision (Updated via API) and published in the same call, so every change to the portal has a revision. A

PUT /v2/portal/pages/{id}

const { data } = await client.updatePortalPage(
{
id: '123e4567-e89b-12d3-a456-426614174000',
},
{
slug: 'dashboard',
path: '/dashboard',
schema: ['string'],
visibility: {
is_hidden: true,
hidden_in_app: true,
start_date: '1970-01-01T00:00:00.000Z',
end_date: '1970-01-01T00:00:00.000Z',
visible_for_targets: ['string'],
visible_for_operator: 'and',
hidden_for_targets: ['string'],
hidden_for_operator: 'and'
},
content: {},
design: {},
blocks: {},
order: 1,
is_system: false,
is_detail: false,
detail_schema: 'contact',
show_in_navigation: false,
is_public: true,
parentId: 'c495fef9-eeca-4019-a989-8390dcd9825b',
is_entry_route: false,
is_deleted: false
},
)
Response
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {
"is_hidden": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}

deletePortalPage​

Delete a portal page by id. On a portal with versioning enabled, the change is stored as a revision (Updated via API) and published in the same call, so every change to the portal has a revision. A

DELETE /v2/portal/pages/{id}

const { data } = await client.deletePortalPage({
id: '123e4567-e89b-12d3-a456-426614174000',
})

detachPortalPage​

Detach a blueprint-managed page from its blueprint. The page and all of its blocks become local (editable, no longer updated by the blueprint) and the page's lineage is tombstoned on the portal so fut

POST /v2/portal/pages/{id}/detach

const { data } = await client.detachPortalPage({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {
"is_hidden": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}

detachPortalPageBlock​

Detach a blueprint-managed block. The block becomes the customer's and its lineage is tombstoned on the page so future syncs skip it. A managed page stays managed and keeps receiving blueprint updates

POST /v2/portal/pages/{id}/blocks/{block_id}/detach

const { data } = await client.detachPortalPageBlock({
id: '123e4567-e89b-12d3-a456-426614174000',
block_id: 'example',
})
Response
{
"props": {
"visibility": {
"is_hidden": true,
"hidden_on_mobile": true,
"hidden_on_desktop": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {}
},
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"type": "tab",
"order": 1,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"_manifest": ["string"],
"_lineage_id": "string",
"_level": "string"
}

getPortalPages​

Fetch all portal pages

GET /v2/portal/pages

const { data } = await client.getPortalPages({
domain: 'example',
fields: 'example',
filter: 'example',
contract_id: 'example',
context_entities: 'example',
})
Response
[
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {
"is_hidden": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}
]

createPortalPage​

Create a new portal page. On a portal with versioning enabled, the change is stored as a revision (Updated via API) and published in the same call, so every change to the portal has a revision. A co

POST /v2/portal/pages

const { data } = await client.createPortalPage(
{
domain: 'example',
},
{
slug: 'dashboard',
path: '/dashboard',
schema: ['string'],
visibility: {
is_hidden: true,
hidden_in_app: true,
start_date: '1970-01-01T00:00:00.000Z',
end_date: '1970-01-01T00:00:00.000Z',
visible_for_targets: ['string'],
visible_for_operator: 'and',
hidden_for_targets: ['string'],
hidden_for_operator: 'and'
},
content: {},
design: {},
blocks: {},
order: 1,
is_system: false,
is_detail: false,
detail_schema: 'contact',
show_in_navigation: false,
is_public: true,
parentId: 'c495fef9-eeca-4019-a989-8390dcd9825b',
is_entry_route: false,
is_deleted: false
},
)
Response
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {
"is_hidden": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}

getPublicPages​

Fetch all public portal pages

GET /v2/portal/public/pages

const { data } = await client.getPublicPages({
domain: 'example',
fields: 'example',
filter: 'example',
})
Response
[
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {
"is_hidden": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}
]

interpolatePortalPages​

Interpolate template variables in portal pages without reading from the database. Accepts pages in the request body and returns them with templates resolved. Portal Builder preview only: requires a 36

POST /v2/portal/pages/interpolate

const { data } = await client.interpolatePortalPages(
null,
{
pages: [
{
slug: 'dashboard',
path: '/dashboard',
schema: ['string'],
visibility: {
is_hidden: true,
hidden_in_app: true,
start_date: '1970-01-01T00:00:00.000Z',
end_date: '1970-01-01T00:00:00.000Z',
visible_for_targets: ['string'],
visible_for_operator: 'and',
hidden_for_targets: ['string'],
hidden_for_operator: 'and'
},
content: {},
design: {},
blocks: {},
order: 1,
is_system: false,
is_detail: false,
detail_schema: 'contact',
show_in_navigation: false,
is_public: true,
parentId: 'c495fef9-eeca-4019-a989-8390dcd9825b',
is_entry_route: false,
is_deleted: false,
id: 'c495fef9-eeca-4019-a989-8390dcd9825b',
last_modified_at: '2021-02-09T12:41:43.662Z',
portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c',
past_routes: ['old-dashboard', 'home'],
_manifest: ['string'],
_lineage_id: 'string',
detached_lineage_ids: ['string']
}
],
context_entities: [
{
entity_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
entity_schema: 'contract'
}
],
evaluate_targeting: true
},
)
Response
[
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {
"is_hidden": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}
]

getTriggeredJourney​

Returns the auto-triggered journey configured for the given trigger with handlebars templates in context_params already resolved. Uses the caller's auth context (contact, portal user) plus any `cont

GET /v2/portal/config/triggered-journeys/{trigger_name}

const { data } = await client.getTriggeredJourney({
trigger_name: 'example',
context_entities: 'example',
})
Response
{
"trigger_name": "FIRST_LOGIN",
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"context_params": [
{
"key": "string",
"value": "string"
}
]
}

getDefaultPages​

Fetch all default portal pages

GET /v2/portal/pages/default

const { data } = await client.getDefaultPages()
Response
[
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {
"is_hidden": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}
]

createPortalPageBlock​

Create a new portal page block. On a portal with versioning enabled, the change is stored as a revision (Updated via API) and published in the same call, so every change to the portal has a revision

POST /v2/portal/pages/{id}/blocks

const { data } = await client.createPortalPageBlock(
{
id: '123e4567-e89b-12d3-a456-426614174000',
},
{
props: {
visibility: {
is_hidden: true,
hidden_on_mobile: true,
hidden_on_desktop: true,
hidden_in_app: true,
start_date: '1970-01-01T00:00:00.000Z',
end_date: '1970-01-01T00:00:00.000Z',
visible_for_targets: ['string'],
visible_for_operator: 'and',
hidden_for_targets: ['string'],
hidden_for_operator: 'and'
},
content: {},
design: {}
},
parentId: 'c495fef9-eeca-4019-a989-8390dcd9825b',
type: 'tab',
order: 1
},
)
Response
{
"props": {
"visibility": {
"is_hidden": true,
"hidden_on_mobile": true,
"hidden_on_desktop": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {}
},
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"type": "tab",
"order": 1,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"_manifest": ["string"],
"_lineage_id": "string",
"_level": "string"
}

getPortalPageBlocks​

Fetch all portal page blocks

GET /v2/portal/pages/{id}/blocks

const { data } = await client.getPortalPageBlocks({
id: '123e4567-e89b-12d3-a456-426614174000',
})
Response
[
{
"props": {
"visibility": {
"is_hidden": true,
"hidden_on_mobile": true,
"hidden_on_desktop": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {}
},
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"type": "tab",
"order": 1,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"_manifest": ["string"],
"_lineage_id": "string",
"_level": "string"
}
]

getPortalPageBlock​

Fetch a portal page block by id

GET /v2/portal/pages/{id}/blocks/{block_id}

const { data } = await client.getPortalPageBlock({
id: '123e4567-e89b-12d3-a456-426614174000',
block_id: 'example',
})
Response
{
"props": {
"visibility": {
"is_hidden": true,
"hidden_on_mobile": true,
"hidden_on_desktop": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {}
},
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"type": "tab",
"order": 1,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"_manifest": ["string"],
"_lineage_id": "string",
"_level": "string"
}

updatePortalPageBlock​

Update a portal page block by id. On a portal with versioning enabled, the change is stored as a revision (Updated via API) and published in the same call, so every change to the portal has a revisi

PUT /v2/portal/pages/{id}/blocks/{block_id}

const { data } = await client.updatePortalPageBlock(
{
id: '123e4567-e89b-12d3-a456-426614174000',
block_id: 'example',
},
{
props: {
visibility: {
is_hidden: true,
hidden_on_mobile: true,
hidden_on_desktop: true,
hidden_in_app: true,
start_date: '1970-01-01T00:00:00.000Z',
end_date: '1970-01-01T00:00:00.000Z',
visible_for_targets: ['string'],
visible_for_operator: 'and',
hidden_for_targets: ['string'],
hidden_for_operator: 'and'
},
content: {},
design: {}
},
parentId: 'c495fef9-eeca-4019-a989-8390dcd9825b',
type: 'tab',
order: 1
},
)
Response
{
"props": {
"visibility": {
"is_hidden": true,
"hidden_on_mobile": true,
"hidden_on_desktop": true,
"hidden_in_app": true,
"start_date": "1970-01-01T00:00:00.000Z",
"end_date": "1970-01-01T00:00:00.000Z",
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
},
"content": {},
"design": {}
},
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"type": "tab",
"order": 1,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"_manifest": ["string"],
"_lineage_id": "string",
"_level": "string"
}

deletePortalPageBlock​

Delete a portal page block by id. On a portal with versioning enabled, the change is stored as a revision (Updated via API) and published in the same call, so every change to the portal has a revisi

DELETE /v2/portal/pages/{id}/blocks/{block_id}

const { data } = await client.deletePortalPageBlock({
id: '123e4567-e89b-12d3-a456-426614174000',
block_id: 'example',
})

getUserEntryPoint​

Get the entry point for the user

GET /v2/portal/public/user/entry-point

const { data } = await client.getUserEntryPoint({
email: 'example',
domain: 'example',
})
Response
{
"user_exists": true,
"entry_point": "PASSWORD",
"preferred_sso_providers": ["office-365-login"],
"is_soft_deleted": true
}

completeTemporaryPassword​

Replaces a portal user's temporary password with the password they chose.

POST /v3/portal/public/user/temporary-password/complete

const { data } = await client.completeTemporaryPassword(
null,
{
org_id: '123',
portal_id: '7hj28akg-97fb-4f5c-b2a1-3e4fbc1d8c7a',
email: 'user@example.com',
temporary_password: 'string',
new_password: 'string'
},
)
Response
{
"message": "Password set successfully."
}

updateCampaignPortalBlockStatus​

Updates the status of a campaign portal block for multiple recipients.

PUT /v2/portal/campaign/{campaign_id}/entity:status

const { data } = await client.updateCampaignPortalBlockStatus(
{
campaign_id: 'example',
},
{
status: 'seen',
entity_refs: [
{
entity_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
entity_schema: 'string'
}
]
},
)
Response
{
"success": true,
"updated": 2,
"failed": 0,
"total": 2
}

listPortalNotifications​

Lists the 360 notifications addressed to the authenticated portal user, newest first. The organization and the portal user are derived from the authenticated session, so a user can only ever read thei

GET /v2/portal/notifications

const { data } = await client.listPortalNotifications({
cursor: 'example',
limit: 1,
})
Response
{
"cursor": "string",
"total_unread": 0,
"results": [
{
"id": "1234567890",
"notification_id": 1234567890,
"type": "workflow_step_overdue",
"title": {
"en": "string",
"de": "string"
},
"message": {
"en": "string",
"de": "string"
},
"created_at": "1970-01-01T00:00:00.000Z",
"read": false,
"redirect_url": "string"
}
]
}

getPortalNotificationsUnreadCount​

Returns the number of unread notifications for the authenticated portal user.

GET /v2/portal/notifications/unread-count

const { data } = await client.getPortalNotificationsUnreadCount()
Response
{
"count": 3
}

markAllPortalNotificationsRead​

Marks all notifications of the authenticated portal user as read.

PUT /v2/portal/notifications/read-all

const { data } = await client.markAllPortalNotificationsRead()

markPortalNotificationRead​

Marks a single notification of the authenticated portal user as read.

PUT /v2/portal/notifications/{id}/read

const { data } = await client.markPortalNotificationRead({
id: 1,
})

updateNotificationsStatus​

Updates the statuses of multiple notifications at once.

PUT /v2/portal/notifications/entity:status

const { data } = await client.updateNotificationsStatus(
null,
{
notifications: [
{
id: 'string',
status: 'read'
}
]
},
)
Response
{
"message": "Notifications status updated successfully."
}

deRegisterMLoginUser​

Deregisters a user from the M Login client

DELETE /v2/portal/public/m-login/deregister/{client_id}/{user_id}

const { data } = await client.deRegisterMLoginUser({
client_id: 'example',
user_id: 'example',
})

notifyMLoginInterestChange​

Notifies the interest change of a user in the M Login client

POST /v2/portal/public/m-login/notify-interest-change/{client_id}/{user_id}

const { data } = await client.notifyMLoginInterestChange(
{
client_id: 'example',
user_id: 'example',
},
{
resource_id: 'string',
user_id: 'string',
interest_tag: 'string',
action: 'string',
resource: {
resource_id: 'string',
description: 'string',
contact: 'string',
kind: 'string'
}
},
)

createPortalConfig​

Creates a new portal configuration.

POST /v3/portal/config

const { data } = await client.createPortalConfig(
null,
{
entity_actions: [
{
journey_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
slug: 'contact',
action_Label: { /* ... */ }
}
],
extensions: [
{
id: 'string',
status: 'installed',
options: {}
}
],
extension_hooks: {},
default_user_to_notify: {
onPendingUser: [
{ /* ... */ }
]
},
identity_providers: [
{
slug: 'office-365-login',
display_name: 'Office 365 Login',
provider_type: 'OIDC',
attribute_mappings: { /* ... */ },
entity_matching: { /* ... */ },
oidc_config: { /* ... */ },
mobile_oidc_config: { /* ... */ },
expose_client_secret: false,
debug_mode_until: '2026-10-30T12:00:00.000Z'
}
],
mobile_config: {
portal_id: 'string',
enabled: true,
display_name: 'string',
app_host: 'string',
environment: 'prod',
branding: {
app_icon: 'string',
splash: 'string',
splash_dark: 'string',
icon_background_color: 'string',
splash_background_color: 'string',
splash_background_color_dark: 'string'
},
ios: {
bundle_id: 'string',
team_id: 'string',
credentials_status: 'not_configured',
app_store_id: 'string',
store_url: 'string',
last_build: { /* ... */ }
},
android: {
package_name: 'string',
credentials_status: 'not_configured',
upload_key_status: 'not_configured',
store_url: 'string',
last_build: { /* ... */ }
},
ota: {
enabled: true,
channel: 'canary',
auto_update: true,
update_strategy: 'next-launch',
min_native_version: 'string'
}
},
enabled: true,
name: 'Installer Portal',
domain: 'abc.com',
is_epilot_domain: true,
epilot_domain: 'example-portal-1.ecp.epilot.io',
domain_settings: {
is_custom_domain_enabled: true,
is_epilot_domain_enabled: true,
is_redirection_enabled: true
},
design_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
header: {
design: {
overrides: { /* ... */ }
}
},
allowed_portal_entities: ['contact', 'contract'],
self_registration_setting: 'ALLOW_WITH_CONTACT_CREATION',
self_registration_account_setting: 'ALLOW_WITH_CREATION',
block_registration_if_portal_user_exists: true,
self_registration_entity: 'contact',
user_account_self_management: false,
feature_settings: {
start_page: true,
billing: true,
commodity_billing: true,
change_due_date: true,
new_design: true,
mcp_enabled: true,
mcp_grant_version: 0,
portal_copilot: false,
portal_copilot_agent_id: 'string',
portal_copilot_visibility: {
visible_for_targets: ['string'],
visible_for_operator: 'and',
hidden_for_targets: ['string'],
hidden_for_operator: 'and'
}
},
accessToken: 'string',
advanced_mfa: {
enabled: true
},
auth_settings: {
passwordless_login: {
enabled: true
},
passkeys: {
enabled: false
},
entry_point: 'PASSWORD',
preferred_sso_providers: ['office-365-login'],
auto_redirect_to_sso: true,
prevent_user_enumeration: true
},
cognito_details: {
cognito_user_pool_client_id: '6bsd0jkgoie74k2i8mrhc1vest',
cognito_mobile_client_id: '3k9fj2l1m0n8b7v6c5x4z3a2s1',
cognito_user_pool_arn: 'arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341',
cognito_user_pool_id: 'eu-central-1_CUEQRNbUb',
timeouts: {
refresh_token: 300,
access_token: 300,
id_token: 300
},
advanced_authentication: {
user_activity_logging: true,
adaptive_authentication: true,
compromised_credentials_detection: true
},
password_policy: {
minimum_length: 8,
maximum_length: 256,
require_lowercase: true,
require_uppercase: true,
require_numbers: true,
require_symbols: true,
password_history_size: 3
}
},
config: 'string',
contact_identifiers: ['email', 'last_name'],
approval_state_attributes: {
contact: ['name', 'address'],
contract: ['installment_amount']
},
email_templates: {
confirmAccount: '5da0a718-c822-403d-9f5d-20d4584e0528',
advancedAuth: '5da0a718-c822-403d-9f5d-20d4584e0528',
advancedMFA: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeySignUp: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeySignInOneTimePassword: '5da0a718-c822-403d-9f5d-20d4584e0528',
passkeyVerificationCode: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeyLoginOTP: '5da0a718-c822-403d-9f5d-20d4584e0528',
forgotPassword: '5da0a718-c822-403d-9f5d-20d4584e0528',
invitation: '5da0a718-c822-403d-9f5d-20d4584e0528',
partnerInvitation: '5da0a718-c822-403d-9f5d-20d4584e0528',
onNewQuote: '5da0a718-c822-403d-9f5d-20d4584e0528',
onMapAPendingUser: '5da0a718-c822-403d-9f5d-20d4584e0528',
onDocUpload: '5da0a718-c822-403d-9f5d-20d4584e0528',
onWorkflowStepAssigned: '5da0a718-c822-403d-9f5d-20d4584e0528',
confirmEmailUpdate: '5da0a718-c822-403d-9f5d-20d4584e0528',
verifyCodeToSetPassword: '5da0a718-c822-403d-9f5d-20d4584e0528'
},
images: {
orderLeftTeaser: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg',
orderRightTeaser: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg',
welcomeBanner: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg'
},
entity_identifiers: {
type: {
isEnabled: true,
attributes: ['contract_number']
}
},
contract_identifiers: [
{
name: 'email',
schema: 'contact'
},
{
name: 'last_name',
schema: 'contact'
},
/* ... 1 more */
],
self_assignment_mode: 'contracts',
contract_selector_config: {
show_inactive: true,
title_path: 'string'
},
registration_identifiers: [
{
name: 'last_name',
schema: 'contact'
},
{
name: 'contract_number',
schema: 'contract'
}
],
surfaces: [
{
id: 'website-journeys',
name: 'Website journeys',
description: 'string',
authentication: 'login',
token_ttl_seconds: 300,
identifiers: [ /* ... */ ],
data_access: { /* ... */ }
}
],
contact_identifiers_for_account: [
{
name: 'first_name',
schema: 'contact'
},
{
name: 'last_name',
schema: 'contact'
}
],
additional_contact_attributes: [
{
name: 'first_name',
required: true
},
{
name: 'last_name',
required: true
}
],
triggered_journeys: [
{
trigger_name: 'FIRST_LOGIN',
journey_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
context_params: [ /* ... */ ]
}
],
entity_edit_rules: [
{
slug: 'contact',
attribute: 'first_name',
rule_type: 'cadence',
cadence_period_type: 'days',
cadence_period: 1,
changes_allowed: 1,
grace_period: 1,
allowed_increment: '10%',
allowed_decrement: '10%',
number_of_days_before_restriction: 10
}
],
allowed_file_extensions: {
document: ['pdf'],
image: ['jpg'],
spreadsheet: ['xls'],
presentation: ['ppt'],
audioVideo: ['mp4'],
email: ['eml'],
archive: ['zip'],
cad: ['cad'],
calendar: ['ics'],
other: ['txt']
},
prevent_search_engine_indexing: true,
meter_reading_grace_period: 0,
inactive_contract_cutoff_years: 0,
is_dummy: true,
is_v3_item: true,
published_revision_id: '2026-08-25T14:03:11.482Z-a7f3c1d9',
portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c',
portal_sk_v3: 'PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c',
origin: 'string',
global_blocks: {},
pages: [
{
slug: 'dashboard',
path: '/dashboard',
schema: ['string'],
visibility: { /* ... */ },
content: {},
design: {},
blocks: {},
order: 1,
is_system: false,
is_detail: false,
detail_schema: 'contact',
show_in_navigation: false,
is_public: true,
parentId: 'c495fef9-eeca-4019-a989-8390dcd9825b',
is_entry_route: false,
is_deleted: false
}
]
},
)
Response
{
"entity_actions": [
{
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"slug": "contact",
"action_Label": {}
}
],
"extensions": [
{
"id": "string",
"status": "installed",
"options": {}
}
],
"extension_hooks": {},
"default_user_to_notify": {
"onPendingUser": [
{}
]
},
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"provider_type": "OIDC",
"attribute_mappings": {},
"entity_matching": {},
"oidc_config": {},
"mobile_oidc_config": {},
"expose_client_secret": false,
"debug_mode_until": "2026-10-30T12:00:00.000Z",
"debug_mode": false
}
],
"mobile_config": {
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-1.ecp.epilot.io",
"domain_settings": {
"is_custom_domain_enabled": true,
"is_epilot_domain_enabled": true,
"is_redirection_enabled": true
},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {
"design": {
"overrides": {}
}
},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {
"start_page": true,
"billing": true,
"commodity_billing": true,
"change_due_date": true,
"new_design": true,
"mcp_enabled": true,
"mcp_grant_version": 0,
"portal_copilot": false,
"portal_copilot_agent_id": "string",
"portal_copilot_visibility": {
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
}
},
"accessToken": "string",
"advanced_mfa": {
"enabled": true
},
"auth_settings": {
"passwordless_login": {
"enabled": true
},
"passkeys": {
"enabled": false
},
"entry_point": "PASSWORD",
"preferred_sso_providers": ["office-365-login"],
"auto_redirect_to_sso": true,
"prevent_user_enumeration": true
},
"cognito_details": {
"cognito_user_pool_client_id": "6bsd0jkgoie74k2i8mrhc1vest",
"cognito_mobile_client_id": "3k9fj2l1m0n8b7v6c5x4z3a2s1",
"cognito_user_pool_arn": "arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341",
"cognito_user_pool_id": "eu-central-1_CUEQRNbUb",
"timeouts": {
"refresh_token": 300,
"access_token": 300,
"id_token": 300
},
"advanced_authentication": {
"user_activity_logging": true,
"adaptive_authentication": true,
"compromised_credentials_detection": true
},
"password_policy": {
"minimum_length": 8,
"maximum_length": 256,
"require_lowercase": true,
"require_uppercase": true,
"require_numbers": true,
"require_symbols": true,
"password_history_size": 3
}
},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {
"contact": ["name", "address"],
"contract": ["installment_amount"]
},
"email_templates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
},
"images": {
"orderLeftTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg",
"orderRightTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg",
"welcomeBanner": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg"
},
"entity_identifiers": {
"type": {
"isEnabled": true,
"attributes": ["contract_number"]
}
},
"contract_identifiers": [
{
"name": "email",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"self_assignment_mode": "contracts",
"contract_selector_config": {
"show_inactive": true,
"title_path": "string"
},
"registration_identifiers": [
{
"name": "last_name",
"schema": "contact"
},
{
"name": "contract_number",
"schema": "contract"
}
],
"surfaces": [
{
"id": "website-journeys",
"name": "Website journeys",
"description": "string",
"authentication": "login",
"token_ttl_seconds": 300,
"identifiers": [],
"data_access": {}
}
],
"contact_identifiers_for_account": [
{
"name": "first_name",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"additional_contact_attributes": [
{
"name": "first_name",
"required": true
},
{
"name": "last_name",
"required": true
}
],
"triggered_journeys": [
{
"trigger_name": "FIRST_LOGIN",
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"context_params": []
}
],
"entity_edit_rules": [
{
"slug": "contact",
"attribute": "first_name",
"rule_type": "cadence",
"cadence_period_type": "days",
"cadence_period": 1,
"changes_allowed": 1,
"grace_period": 1,
"allowed_increment": "10%",
"allowed_decrement": "10%",
"number_of_days_before_restriction": 10
}
],
"allowed_file_extensions": {
"document": ["pdf"],
"image": ["jpg"],
"spreadsheet": ["xls"],
"presentation": ["ppt"],
"audioVideo": ["mp4"],
"email": ["eml"],
"archive": ["zip"],
"cad": ["cad"],
"calendar": ["ics"],
"other": ["txt"]
},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"global_blocks": {},
"organization_id": 12345,
"org_settings": {
"canary": {
"enabled": true
},
"notracking": {
"enabled": true
}
},
"feature_flags": {},
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"effect": "allow"
}
],
"pages": [
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}
]
}

getPortalConfigV3​

Retrieves a specific portal configuration by ID.

GET /v3/portal/config/{portal_id}

const { data } = await client.getPortalConfigV3({
portal_id: 'example',
})
Response
{
"entity_actions": [
{
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"slug": "contact",
"action_Label": {}
}
],
"extensions": [
{
"id": "string",
"status": "installed",
"options": {}
}
],
"extension_hooks": {},
"default_user_to_notify": {
"onPendingUser": [
{}
]
},
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"provider_type": "OIDC",
"attribute_mappings": {},
"entity_matching": {},
"oidc_config": {},
"mobile_oidc_config": {},
"expose_client_secret": false,
"debug_mode_until": "2026-10-30T12:00:00.000Z",
"debug_mode": false
}
],
"mobile_config": {
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-1.ecp.epilot.io",
"domain_settings": {
"is_custom_domain_enabled": true,
"is_epilot_domain_enabled": true,
"is_redirection_enabled": true
},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {
"design": {
"overrides": {}
}
},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {
"start_page": true,
"billing": true,
"commodity_billing": true,
"change_due_date": true,
"new_design": true,
"mcp_enabled": true,
"mcp_grant_version": 0,
"portal_copilot": false,
"portal_copilot_agent_id": "string",
"portal_copilot_visibility": {
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
}
},
"accessToken": "string",
"advanced_mfa": {
"enabled": true
},
"auth_settings": {
"passwordless_login": {
"enabled": true
},
"passkeys": {
"enabled": false
},
"entry_point": "PASSWORD",
"preferred_sso_providers": ["office-365-login"],
"auto_redirect_to_sso": true,
"prevent_user_enumeration": true
},
"cognito_details": {
"cognito_user_pool_client_id": "6bsd0jkgoie74k2i8mrhc1vest",
"cognito_mobile_client_id": "3k9fj2l1m0n8b7v6c5x4z3a2s1",
"cognito_user_pool_arn": "arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341",
"cognito_user_pool_id": "eu-central-1_CUEQRNbUb",
"timeouts": {
"refresh_token": 300,
"access_token": 300,
"id_token": 300
},
"advanced_authentication": {
"user_activity_logging": true,
"adaptive_authentication": true,
"compromised_credentials_detection": true
},
"password_policy": {
"minimum_length": 8,
"maximum_length": 256,
"require_lowercase": true,
"require_uppercase": true,
"require_numbers": true,
"require_symbols": true,
"password_history_size": 3
}
},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {
"contact": ["name", "address"],
"contract": ["installment_amount"]
},
"email_templates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
},
"images": {
"orderLeftTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg",
"orderRightTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg",
"welcomeBanner": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg"
},
"entity_identifiers": {
"type": {
"isEnabled": true,
"attributes": ["contract_number"]
}
},
"contract_identifiers": [
{
"name": "email",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"self_assignment_mode": "contracts",
"contract_selector_config": {
"show_inactive": true,
"title_path": "string"
},
"registration_identifiers": [
{
"name": "last_name",
"schema": "contact"
},
{
"name": "contract_number",
"schema": "contract"
}
],
"surfaces": [
{
"id": "website-journeys",
"name": "Website journeys",
"description": "string",
"authentication": "login",
"token_ttl_seconds": 300,
"identifiers": [],
"data_access": {}
}
],
"contact_identifiers_for_account": [
{
"name": "first_name",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"additional_contact_attributes": [
{
"name": "first_name",
"required": true
},
{
"name": "last_name",
"required": true
}
],
"triggered_journeys": [
{
"trigger_name": "FIRST_LOGIN",
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"context_params": []
}
],
"entity_edit_rules": [
{
"slug": "contact",
"attribute": "first_name",
"rule_type": "cadence",
"cadence_period_type": "days",
"cadence_period": 1,
"changes_allowed": 1,
"grace_period": 1,
"allowed_increment": "10%",
"allowed_decrement": "10%",
"number_of_days_before_restriction": 10
}
],
"allowed_file_extensions": {
"document": ["pdf"],
"image": ["jpg"],
"spreadsheet": ["xls"],
"presentation": ["ppt"],
"audioVideo": ["mp4"],
"email": ["eml"],
"archive": ["zip"],
"cad": ["cad"],
"calendar": ["ics"],
"other": ["txt"]
},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"global_blocks": {},
"organization_id": 12345,
"org_settings": {
"canary": {
"enabled": true
},
"notracking": {
"enabled": true
}
},
"feature_flags": {},
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"effect": "allow"
}
],
"pages": [
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}
]
}

putPortalConfig​

Updates a specific portal configuration by ID. On a portal with versioning enabled, the change is stored as a revision (Updated via API) and published in the same call, so every change to the portal

PUT /v3/portal/config/{portal_id}

const { data } = await client.putPortalConfig(
{
portal_id: 'example',
page_upsert_mode: 'example',
expected_updated_at: 'example',
},
{
entity_actions: [
{
journey_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
slug: 'contact',
action_Label: { /* ... */ }
}
],
extensions: [
{
id: 'string',
status: 'installed',
options: {}
}
],
extension_hooks: {},
default_user_to_notify: {
onPendingUser: [
{ /* ... */ }
]
},
identity_providers: [
{
slug: 'office-365-login',
display_name: 'Office 365 Login',
provider_type: 'OIDC',
attribute_mappings: { /* ... */ },
entity_matching: { /* ... */ },
oidc_config: { /* ... */ },
mobile_oidc_config: { /* ... */ },
expose_client_secret: false,
debug_mode_until: '2026-10-30T12:00:00.000Z',
debug_mode: false
}
],
mobile_config: {
portal_id: 'string',
enabled: true,
display_name: 'string',
app_host: 'string',
environment: 'prod',
branding: {
app_icon: 'string',
splash: 'string',
splash_dark: 'string',
icon_background_color: 'string',
splash_background_color: 'string',
splash_background_color_dark: 'string'
},
ios: {
bundle_id: 'string',
team_id: 'string',
credentials_status: 'not_configured',
app_store_id: 'string',
store_url: 'string',
last_build: { /* ... */ }
},
android: {
package_name: 'string',
credentials_status: 'not_configured',
upload_key_status: 'not_configured',
store_url: 'string',
last_build: { /* ... */ }
},
ota: {
enabled: true,
channel: 'canary',
auto_update: true,
update_strategy: 'next-launch',
min_native_version: 'string'
}
},
enabled: true,
name: 'Installer Portal',
domain: 'abc.com',
is_epilot_domain: true,
epilot_domain: 'example-portal-1.ecp.epilot.io',
domain_settings: {
is_custom_domain_enabled: true,
is_epilot_domain_enabled: true,
is_redirection_enabled: true
},
design_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
header: {
design: {
overrides: { /* ... */ }
}
},
allowed_portal_entities: ['contact', 'contract'],
self_registration_setting: 'ALLOW_WITH_CONTACT_CREATION',
self_registration_account_setting: 'ALLOW_WITH_CREATION',
block_registration_if_portal_user_exists: true,
self_registration_entity: 'contact',
user_account_self_management: false,
feature_settings: {
start_page: true,
billing: true,
commodity_billing: true,
change_due_date: true,
new_design: true,
mcp_enabled: true,
mcp_grant_version: 0,
portal_copilot: false,
portal_copilot_agent_id: 'string',
portal_copilot_visibility: {
visible_for_targets: ['string'],
visible_for_operator: 'and',
hidden_for_targets: ['string'],
hidden_for_operator: 'and'
}
},
accessToken: 'string',
advanced_mfa: {
enabled: true
},
auth_settings: {
passwordless_login: {
enabled: true
},
passkeys: {
enabled: false
},
entry_point: 'PASSWORD',
preferred_sso_providers: ['office-365-login'],
auto_redirect_to_sso: true,
prevent_user_enumeration: true
},
cognito_details: {
cognito_user_pool_client_id: '6bsd0jkgoie74k2i8mrhc1vest',
cognito_mobile_client_id: '3k9fj2l1m0n8b7v6c5x4z3a2s1',
cognito_user_pool_arn: 'arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341',
cognito_user_pool_id: 'eu-central-1_CUEQRNbUb',
timeouts: {
refresh_token: 300,
access_token: 300,
id_token: 300
},
advanced_authentication: {
user_activity_logging: true,
adaptive_authentication: true,
compromised_credentials_detection: true
},
password_policy: {
minimum_length: 8,
maximum_length: 256,
require_lowercase: true,
require_uppercase: true,
require_numbers: true,
require_symbols: true,
password_history_size: 3
}
},
config: 'string',
contact_identifiers: ['email', 'last_name'],
approval_state_attributes: {
contact: ['name', 'address'],
contract: ['installment_amount']
},
email_templates: {
confirmAccount: '5da0a718-c822-403d-9f5d-20d4584e0528',
advancedAuth: '5da0a718-c822-403d-9f5d-20d4584e0528',
advancedMFA: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeySignUp: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeySignInOneTimePassword: '5da0a718-c822-403d-9f5d-20d4584e0528',
passkeyVerificationCode: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeyLoginOTP: '5da0a718-c822-403d-9f5d-20d4584e0528',
forgotPassword: '5da0a718-c822-403d-9f5d-20d4584e0528',
invitation: '5da0a718-c822-403d-9f5d-20d4584e0528',
partnerInvitation: '5da0a718-c822-403d-9f5d-20d4584e0528',
onNewQuote: '5da0a718-c822-403d-9f5d-20d4584e0528',
onMapAPendingUser: '5da0a718-c822-403d-9f5d-20d4584e0528',
onDocUpload: '5da0a718-c822-403d-9f5d-20d4584e0528',
onWorkflowStepAssigned: '5da0a718-c822-403d-9f5d-20d4584e0528',
confirmEmailUpdate: '5da0a718-c822-403d-9f5d-20d4584e0528',
verifyCodeToSetPassword: '5da0a718-c822-403d-9f5d-20d4584e0528'
},
images: {
orderLeftTeaser: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg',
orderRightTeaser: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg',
welcomeBanner: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg'
},
entity_identifiers: {
type: {
isEnabled: true,
attributes: ['contract_number']
}
},
contract_identifiers: [
{
name: 'email',
schema: 'contact'
},
{
name: 'last_name',
schema: 'contact'
},
/* ... 1 more */
],
self_assignment_mode: 'contracts',
contract_selector_config: {
show_inactive: true,
title_path: 'string'
},
registration_identifiers: [
{
name: 'last_name',
schema: 'contact'
},
{
name: 'contract_number',
schema: 'contract'
}
],
surfaces: [
{
id: 'website-journeys',
name: 'Website journeys',
description: 'string',
authentication: 'login',
token_ttl_seconds: 300,
identifiers: [ /* ... */ ],
data_access: { /* ... */ }
}
],
contact_identifiers_for_account: [
{
name: 'first_name',
schema: 'contact'
},
{
name: 'last_name',
schema: 'contact'
}
],
additional_contact_attributes: [
{
name: 'first_name',
required: true
},
{
name: 'last_name',
required: true
}
],
triggered_journeys: [
{
trigger_name: 'FIRST_LOGIN',
journey_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
context_params: [ /* ... */ ]
}
],
entity_edit_rules: [
{
slug: 'contact',
attribute: 'first_name',
rule_type: 'cadence',
cadence_period_type: 'days',
cadence_period: 1,
changes_allowed: 1,
grace_period: 1,
allowed_increment: '10%',
allowed_decrement: '10%',
number_of_days_before_restriction: 10
}
],
allowed_file_extensions: {
document: ['pdf'],
image: ['jpg'],
spreadsheet: ['xls'],
presentation: ['ppt'],
audioVideo: ['mp4'],
email: ['eml'],
archive: ['zip'],
cad: ['cad'],
calendar: ['ics'],
other: ['txt']
},
prevent_search_engine_indexing: true,
meter_reading_grace_period: 0,
inactive_contract_cutoff_years: 0,
is_dummy: true,
is_v3_item: true,
published_revision_id: '2026-08-25T14:03:11.482Z-a7f3c1d9',
portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c',
portal_sk_v3: 'PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c',
origin: 'string',
global_blocks: {},
organization_id: 12345,
org_settings: {
canary: {
enabled: true
},
notracking: {
enabled: true
}
},
feature_flags: {},
grants: [
{
action: 'entity-read',
resource: 'entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947',
effect: 'allow'
}
],
pages: [
{
slug: 'dashboard',
path: '/dashboard',
schema: ['string'],
visibility: { /* ... */ },
content: {},
design: {},
blocks: {},
order: 1,
is_system: false,
is_detail: false,
detail_schema: 'contact',
show_in_navigation: false,
is_public: true,
parentId: 'c495fef9-eeca-4019-a989-8390dcd9825b',
is_entry_route: false,
is_deleted: false,
id: 'c495fef9-eeca-4019-a989-8390dcd9825b',
last_modified_at: '2021-02-09T12:41:43.662Z',
portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c',
past_routes: ['old-dashboard', 'home'],
_manifest: ['string'],
_lineage_id: 'string',
detached_lineage_ids: ['string']
}
]
},
)
Response
{
"entity_actions": [
{
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"slug": "contact",
"action_Label": {}
}
],
"extensions": [
{
"id": "string",
"status": "installed",
"options": {}
}
],
"extension_hooks": {},
"default_user_to_notify": {
"onPendingUser": [
{}
]
},
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"provider_type": "OIDC",
"attribute_mappings": {},
"entity_matching": {},
"oidc_config": {},
"mobile_oidc_config": {},
"expose_client_secret": false,
"debug_mode_until": "2026-10-30T12:00:00.000Z",
"debug_mode": false
}
],
"mobile_config": {
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-1.ecp.epilot.io",
"domain_settings": {
"is_custom_domain_enabled": true,
"is_epilot_domain_enabled": true,
"is_redirection_enabled": true
},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {
"design": {
"overrides": {}
}
},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {
"start_page": true,
"billing": true,
"commodity_billing": true,
"change_due_date": true,
"new_design": true,
"mcp_enabled": true,
"mcp_grant_version": 0,
"portal_copilot": false,
"portal_copilot_agent_id": "string",
"portal_copilot_visibility": {
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
}
},
"accessToken": "string",
"advanced_mfa": {
"enabled": true
},
"auth_settings": {
"passwordless_login": {
"enabled": true
},
"passkeys": {
"enabled": false
},
"entry_point": "PASSWORD",
"preferred_sso_providers": ["office-365-login"],
"auto_redirect_to_sso": true,
"prevent_user_enumeration": true
},
"cognito_details": {
"cognito_user_pool_client_id": "6bsd0jkgoie74k2i8mrhc1vest",
"cognito_mobile_client_id": "3k9fj2l1m0n8b7v6c5x4z3a2s1",
"cognito_user_pool_arn": "arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341",
"cognito_user_pool_id": "eu-central-1_CUEQRNbUb",
"timeouts": {
"refresh_token": 300,
"access_token": 300,
"id_token": 300
},
"advanced_authentication": {
"user_activity_logging": true,
"adaptive_authentication": true,
"compromised_credentials_detection": true
},
"password_policy": {
"minimum_length": 8,
"maximum_length": 256,
"require_lowercase": true,
"require_uppercase": true,
"require_numbers": true,
"require_symbols": true,
"password_history_size": 3
}
},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {
"contact": ["name", "address"],
"contract": ["installment_amount"]
},
"email_templates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
},
"images": {
"orderLeftTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg",
"orderRightTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg",
"welcomeBanner": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg"
},
"entity_identifiers": {
"type": {
"isEnabled": true,
"attributes": ["contract_number"]
}
},
"contract_identifiers": [
{
"name": "email",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"self_assignment_mode": "contracts",
"contract_selector_config": {
"show_inactive": true,
"title_path": "string"
},
"registration_identifiers": [
{
"name": "last_name",
"schema": "contact"
},
{
"name": "contract_number",
"schema": "contract"
}
],
"surfaces": [
{
"id": "website-journeys",
"name": "Website journeys",
"description": "string",
"authentication": "login",
"token_ttl_seconds": 300,
"identifiers": [],
"data_access": {}
}
],
"contact_identifiers_for_account": [
{
"name": "first_name",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"additional_contact_attributes": [
{
"name": "first_name",
"required": true
},
{
"name": "last_name",
"required": true
}
],
"triggered_journeys": [
{
"trigger_name": "FIRST_LOGIN",
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"context_params": []
}
],
"entity_edit_rules": [
{
"slug": "contact",
"attribute": "first_name",
"rule_type": "cadence",
"cadence_period_type": "days",
"cadence_period": 1,
"changes_allowed": 1,
"grace_period": 1,
"allowed_increment": "10%",
"allowed_decrement": "10%",
"number_of_days_before_restriction": 10
}
],
"allowed_file_extensions": {
"document": ["pdf"],
"image": ["jpg"],
"spreadsheet": ["xls"],
"presentation": ["ppt"],
"audioVideo": ["mp4"],
"email": ["eml"],
"archive": ["zip"],
"cad": ["cad"],
"calendar": ["ics"],
"other": ["txt"]
},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"global_blocks": {},
"organization_id": 12345,
"org_settings": {
"canary": {
"enabled": true
},
"notracking": {
"enabled": true
}
},
"feature_flags": {},
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"effect": "allow"
}
],
"pages": [
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}
]
}

deletePortalConfig​

Deletes a specific portal configuration by ID, together with everything the portal owns: its pages, revisions, email templates and widget configuration. The custom domain network setup is torn down as

DELETE /v3/portal/config/{portal_id}

const { data } = await client.deletePortalConfig({
portal_id: 'example',
})

createPortalRevision​

Creates a new revision — a complete, immutable snapshot of the portal's configuration, pages and email templates. Nothing about the live portal changes; the snapshot only becomes live when it is publi

POST /v3/portal/config/{portal_id}/revisions

const { data } = await client.createPortalRevision(
{
portal_id: 'example',
},
{
entity_actions: [
{
journey_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
slug: 'contact',
action_Label: { /* ... */ }
}
],
extensions: [
{
id: 'string',
status: 'installed',
options: {}
}
],
extension_hooks: {},
default_user_to_notify: {
onPendingUser: [
{ /* ... */ }
]
},
identity_providers: [
{
slug: 'office-365-login',
display_name: 'Office 365 Login',
provider_type: 'OIDC',
attribute_mappings: { /* ... */ },
entity_matching: { /* ... */ },
oidc_config: { /* ... */ },
mobile_oidc_config: { /* ... */ },
expose_client_secret: false,
debug_mode_until: '2026-10-30T12:00:00.000Z'
}
],
mobile_config: {
portal_id: 'string',
enabled: true,
display_name: 'string',
app_host: 'string',
environment: 'prod',
branding: {
app_icon: 'string',
splash: 'string',
splash_dark: 'string',
icon_background_color: 'string',
splash_background_color: 'string',
splash_background_color_dark: 'string'
},
ios: {
bundle_id: 'string',
team_id: 'string',
credentials_status: 'not_configured',
app_store_id: 'string',
store_url: 'string',
last_build: { /* ... */ }
},
android: {
package_name: 'string',
credentials_status: 'not_configured',
upload_key_status: 'not_configured',
store_url: 'string',
last_build: { /* ... */ }
},
ota: {
enabled: true,
channel: 'canary',
auto_update: true,
update_strategy: 'next-launch',
min_native_version: 'string'
}
},
enabled: true,
name: 'Installer Portal',
domain: 'abc.com',
is_epilot_domain: true,
epilot_domain: 'example-portal-1.ecp.epilot.io',
domain_settings: {
is_custom_domain_enabled: true,
is_epilot_domain_enabled: true,
is_redirection_enabled: true
},
design_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
header: {
design: {
overrides: { /* ... */ }
}
},
allowed_portal_entities: ['contact', 'contract'],
self_registration_setting: 'ALLOW_WITH_CONTACT_CREATION',
self_registration_account_setting: 'ALLOW_WITH_CREATION',
block_registration_if_portal_user_exists: true,
self_registration_entity: 'contact',
user_account_self_management: false,
feature_settings: {
start_page: true,
billing: true,
commodity_billing: true,
change_due_date: true,
new_design: true,
mcp_enabled: true,
mcp_grant_version: 0,
portal_copilot: false,
portal_copilot_agent_id: 'string',
portal_copilot_visibility: {
visible_for_targets: ['string'],
visible_for_operator: 'and',
hidden_for_targets: ['string'],
hidden_for_operator: 'and'
}
},
accessToken: 'string',
advanced_mfa: {
enabled: true
},
auth_settings: {
passwordless_login: {
enabled: true
},
passkeys: {
enabled: false
},
entry_point: 'PASSWORD',
preferred_sso_providers: ['office-365-login'],
auto_redirect_to_sso: true,
prevent_user_enumeration: true
},
cognito_details: {
cognito_user_pool_client_id: '6bsd0jkgoie74k2i8mrhc1vest',
cognito_mobile_client_id: '3k9fj2l1m0n8b7v6c5x4z3a2s1',
cognito_user_pool_arn: 'arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341',
cognito_user_pool_id: 'eu-central-1_CUEQRNbUb',
timeouts: {
refresh_token: 300,
access_token: 300,
id_token: 300
},
advanced_authentication: {
user_activity_logging: true,
adaptive_authentication: true,
compromised_credentials_detection: true
},
password_policy: {
minimum_length: 8,
maximum_length: 256,
require_lowercase: true,
require_uppercase: true,
require_numbers: true,
require_symbols: true,
password_history_size: 3
}
},
config: 'string',
contact_identifiers: ['email', 'last_name'],
approval_state_attributes: {
contact: ['name', 'address'],
contract: ['installment_amount']
},
email_templates: {
confirmAccount: '5da0a718-c822-403d-9f5d-20d4584e0528',
advancedAuth: '5da0a718-c822-403d-9f5d-20d4584e0528',
advancedMFA: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeySignUp: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeySignInOneTimePassword: '5da0a718-c822-403d-9f5d-20d4584e0528',
passkeyVerificationCode: '5da0a718-c822-403d-9f5d-20d4584e0528',
journeyLoginOTP: '5da0a718-c822-403d-9f5d-20d4584e0528',
forgotPassword: '5da0a718-c822-403d-9f5d-20d4584e0528',
invitation: '5da0a718-c822-403d-9f5d-20d4584e0528',
partnerInvitation: '5da0a718-c822-403d-9f5d-20d4584e0528',
onNewQuote: '5da0a718-c822-403d-9f5d-20d4584e0528',
onMapAPendingUser: '5da0a718-c822-403d-9f5d-20d4584e0528',
onDocUpload: '5da0a718-c822-403d-9f5d-20d4584e0528',
onWorkflowStepAssigned: '5da0a718-c822-403d-9f5d-20d4584e0528',
confirmEmailUpdate: '5da0a718-c822-403d-9f5d-20d4584e0528',
verifyCodeToSetPassword: '5da0a718-c822-403d-9f5d-20d4584e0528'
},
images: {
orderLeftTeaser: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg',
orderRightTeaser: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg',
welcomeBanner: 'https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg'
},
entity_identifiers: {
type: {
isEnabled: true,
attributes: ['contract_number']
}
},
contract_identifiers: [
{
name: 'email',
schema: 'contact'
},
{
name: 'last_name',
schema: 'contact'
},
/* ... 1 more */
],
self_assignment_mode: 'contracts',
contract_selector_config: {
show_inactive: true,
title_path: 'string'
},
registration_identifiers: [
{
name: 'last_name',
schema: 'contact'
},
{
name: 'contract_number',
schema: 'contract'
}
],
surfaces: [
{
id: 'website-journeys',
name: 'Website journeys',
description: 'string',
authentication: 'login',
token_ttl_seconds: 300,
identifiers: [ /* ... */ ],
data_access: { /* ... */ }
}
],
contact_identifiers_for_account: [
{
name: 'first_name',
schema: 'contact'
},
{
name: 'last_name',
schema: 'contact'
}
],
additional_contact_attributes: [
{
name: 'first_name',
required: true
},
{
name: 'last_name',
required: true
}
],
triggered_journeys: [
{
trigger_name: 'FIRST_LOGIN',
journey_id: '5da0a718-c822-403d-9f5d-20d4584e0528',
context_params: [ /* ... */ ]
}
],
entity_edit_rules: [
{
slug: 'contact',
attribute: 'first_name',
rule_type: 'cadence',
cadence_period_type: 'days',
cadence_period: 1,
changes_allowed: 1,
grace_period: 1,
allowed_increment: '10%',
allowed_decrement: '10%',
number_of_days_before_restriction: 10
}
],
allowed_file_extensions: {
document: ['pdf'],
image: ['jpg'],
spreadsheet: ['xls'],
presentation: ['ppt'],
audioVideo: ['mp4'],
email: ['eml'],
archive: ['zip'],
cad: ['cad'],
calendar: ['ics'],
other: ['txt']
},
prevent_search_engine_indexing: true,
meter_reading_grace_period: 0,
inactive_contract_cutoff_years: 0,
is_dummy: true,
is_v3_item: true,
published_revision_id: '2026-08-25T14:03:11.482Z-a7f3c1d9',
portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c',
portal_sk_v3: 'PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c',
origin: 'string',
global_blocks: {},
based_on_revision_id: 'string',
base_published_revision_id: 'string',
revision_source: {
type: 'blueprint_sync',
blueprint_title: 'string'
},
publish: {
name: 'string',
description: 'string',
force: false
},
pages: [
{
id: 'c495fef9-eeca-4019-a989-8390dcd9825b',
slug: 'dashboard',
order: 0,
blocks: {}
}
]
},
)
Response
{
"revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"created_at": "1970-01-01T00:00:00.000Z",
"created_by": "string",
"name": "FAQ page launch",
"description": "string",
"source": {
"type": "blueprint_sync",
"blueprint_title": "string"
},
"page_count": 0,
"published_at": "1970-01-01T00:00:00.000Z",
"published_by": "string",
"is_published": true,
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"provider_type": "OIDC",
"attribute_mappings": {
"contact": {
"email": "email",
"first_name": "first_name",
"last_name": "last_name",
"phone": "tel",
"preferred_language": "language",
"concession": "GPE",
"installer_number": 123456
},
"account": {
"name": "company_name",
"street": "street_name",
"house_number": "house_number",
"postal_code": "postal_code",
"city": "city"
},
"portal_user": {
"access_status": "access_status",
"expires_at": "expires_at"
},
"concession_attributes": {
"water": "water",
"energy": "energy",
"gas": "gas"
}
},
"entity_matching": {
"portal_user": {
"external_id": "sub"
},
"contact": {
"customer_number": "customer_id",
"external_id": "sub"
},
"auto_create_cognito_user": true
},
"oidc_config": {
"type": "implicit",
"oidc_issuer": "https://login.microsoftonline.com/33d4f3e5-3df2-421e-b92e-a63cfa680a88/v2.0",
"redirect_uri": "https://customer-portal.com/login",
"client_id": "ab81daf8-8b1f-42d6-94ca-c51621054c75",
"client_secret": "7BIUnn~6shh.7fNtXb..3k1Mp3s6k6WK3B",
"has_client_secret": true,
"scope": "openid email",
"metadata": {
"response_modes_supported": ["form_post"],
"authorization_endpoint": "https://www.facebook.com/v12.0/dialog/oauth",
"token_endpoint": "https://graph.facebook.com/v12.0/oauth/access_token",
"userinfo_endpoint": "https://graph.facebook.com/me",
"logout_uri": "https://login.microsoftonline.com/common/oauth2/v2.0/logout",
"logout_redirect_uri": "https://customer-portal.com/login",
"skip_login_as_logout": false,
"mobile_redirect_uri": "msauth.io.epilot.ecp://auth",
"test_auth_username": "test@epilot.io",
"test_auth_password": "string"
},
"prompt": "login"
},
"mobile_oidc_config": {
"client_id": 123456,
"client_secret": 123456
},
"expose_client_secret": false,
"debug_mode_until": "2026-10-30T12:00:00.000Z"
}
],
"published": {
"revision_id": "string",
"published_at": "1970-01-01T00:00:00.000Z",
"published_by": "string",
"name": "FAQ page launch",
"post_publish_warnings": ["string"],
"held_back": ["allowed_entities_change"]
}
}

listPortalRevisions​

Lists a portal's revision history, newest first. Metadata only — no config blob, no page bodies. is_published says whether that revision is the one currently live, which is a different question from

GET /v3/portal/config/{portal_id}/revisions

const { data } = await client.listPortalRevisions({
portal_id: 'example',
limit: 1,
cursor: 'example',
})
Response
{
"results": [
{
"revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"created_at": "1970-01-01T00:00:00.000Z",
"created_by": "string",
"name": "FAQ page launch",
"description": "string",
"source": {
"type": "blueprint_sync",
"blueprint_title": "string"
},
"page_count": 0,
"published_at": "1970-01-01T00:00:00.000Z",
"published_by": "string",
"is_published": true
}
],
"next_cursor": "string"
}

getPortalRevision​

Returns the full content of one revision: the snapshotted config, its pages (in the live Page shape), email templates and identity providers with secrets redacted.

GET /v3/portal/config/{portal_id}/revisions/{revision_id}

const { data } = await client.getPortalRevision({
portal_id: 'example',
revision_id: 'example',
})
Response
{
"revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"created_at": "1970-01-01T00:00:00.000Z",
"created_by": "string",
"name": "FAQ page launch",
"description": "string",
"source": {
"type": "blueprint_sync",
"blueprint_title": "string"
},
"page_count": 0,
"published_at": "1970-01-01T00:00:00.000Z",
"published_by": "string",
"is_published": true,
"config": {},
"pages": [
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"],
"org_id": "string"
}
],
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"provider_type": "OIDC",
"attribute_mappings": {},
"entity_matching": {},
"oidc_config": {},
"mobile_oidc_config": {},
"expose_client_secret": false,
"debug_mode_until": "2026-10-30T12:00:00.000Z"
}
],
"email_templates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
},
"email_template_settings": {}
}

updatePortalRevision​

Renames a revision without publishing it. Any revision can be renamed, published or not. Only the revision's name changes: its content, published_at, published_by and which revision is live stay

PATCH /v3/portal/config/{portal_id}/revisions/{revision_id}

const { data } = await client.updatePortalRevision(
{
portal_id: 'example',
revision_id: 'example',
},
{
name: 'FAQ page launch'
},
)
Response
{
"revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"created_at": "1970-01-01T00:00:00.000Z",
"created_by": "string",
"name": "FAQ page launch",
"description": "string",
"source": {
"type": "blueprint_sync",
"blueprint_title": "string"
},
"page_count": 0,
"published_at": "1970-01-01T00:00:00.000Z",
"published_by": "string",
"is_published": true
}

createPortalRevisionPreview​

Mints a short-lived preview token for one revision and returns a link that opens the revision inside the real end-customer portal, on the portal's live domain, without publishing it.

POST /v3/portal/config/{portal_id}/revisions/{revision_id}:preview

const { data } = await client.createPortalRevisionPreview({
portal_id: 'example',
revision_id: 'example',
})
Response
{
"preview_token": "string",
"expires_at": "1970-01-01T00:00:00.000Z",
"url": "https://portal.example.com/?preview_token=eyJhbGciOiJIUzI1NiIs..."
}

publishPortalRevision​

Makes one revision the portal's live configuration, atomically: either everything below takes effect or nothing does. Publish is a full-snapshot replace: it writes config, every page and email templat

POST /v3/portal/config/{portal_id}/publish

const { data } = await client.publishPortalRevision(
{
portal_id: 'example',
},
{
revision_id: '2026-08-25T14:03:11.482Z-a7f3c1d9',
name: 'FAQ page launch',
description: 'string',
force: false
},
)
Response
{
"revision_id": "string",
"published_at": "1970-01-01T00:00:00.000Z",
"published_by": "string",
"name": "FAQ page launch",
"post_publish_warnings": ["string"],
"held_back": ["allowed_entities_change"]
}

listAllPortalConfigs​

Retrieves all portal configurations.

GET /v3/portal/configs

const { data } = await client.listAllPortalConfigs()
Response
{
"data": [
{
"entity_actions": [],
"extensions": [],
"extension_hooks": {},
"default_user_to_notify": {},
"identity_providers": [],
"mobile_config": {},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-1.ecp.epilot.io",
"domain_settings": {},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {},
"accessToken": "string",
"advanced_mfa": {},
"auth_settings": {},
"cognito_details": {},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {},
"email_templates": {},
"images": {},
"entity_identifiers": {},
"contract_identifiers": [],
"self_assignment_mode": "contracts",
"contract_selector_config": {},
"registration_identifiers": [],
"surfaces": [],
"contact_identifiers_for_account": [],
"additional_contact_attributes": [],
"triggered_journeys": [],
"entity_edit_rules": [],
"allowed_file_extensions": {},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"global_blocks": {},
"organization_id": 12345,
"org_settings": {},
"feature_flags": {},
"grants": [],
"pages": []
}
]
}

listPortalConfigSummaries​

Lists the portals of the organization as lightweight summaries: the identifying, display and registration fields of each portal config, without pages, email templates, grants, feature flags, identity

GET /v3/portal/configs/summaries

const { data } = await client.listPortalConfigSummaries()
Response
{
"data": [
{
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"organization_id": 12345,
"origin": "string",
"name": "string",
"enabled": true,
"domain": "string",
"epilot_domain": "string",
"is_epilot_domain": true,
"dnsStatus": "CONFIGURING",
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"logo_image": {
"url": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/logo.png",
"dark_url": "string"
},
"default_user_to_notify": {
"onPendingUser": [
{
"type": "user",
"user_id": "123456",
"display_name": "John",
"image_uri": {
"original": "https://fuafjvoHKsu.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/fuafjvoHKsudhfagweucjasdvga/original",
"thumbnail_32": "https://fuafjvoHKsu.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/fuafjvoHKsudhfagweucjasdvga/original?w=32&h=32",
"thumbnail_64": "https://fuafjvoHKsu.cloudimg.io/v7/e-mage-sam-bucket-dev.s3.eu-central-1.amazonaws.com/files/fuafjvoHKsudhfagweucjasdvga/original?w=64&h=64",
"key": "fuafjvoHKsudhfagweucjasdvga"
},
"org_id": "123",
"email": "j.doe@epilot.cloud",
"phone": "12345 67890"
}
]
},
"feature_settings": {
"start_page": true,
"billing": true,
"commodity_billing": true,
"change_due_date": true,
"new_design": true,
"mcp_enabled": true,
"mcp_grant_version": 0,
"portal_copilot": false,
"portal_copilot_agent_id": "string",
"portal_copilot_visibility": {
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
}
},
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": true,
"registration_identifiers": [
{
"name": "string",
"schema": "contact",
"validation_rule_id": "string"
}
],
"surfaces": [
{
"id": "website-journeys",
"name": "Website journeys",
"description": "string",
"authentication": "login",
"token_ttl_seconds": 300,
"identifiers": [
{
"name": "customer_number",
"schema": "contact"
},
{
"name": "meter_number",
"schema": "meter"
}
],
"data_access": {
"entities": [
{
"schema": "contract",
"target_ids": ["string"]
}
],
"role_id": "728:public_journeys_readonly"
}
}
],
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "string",
"_created_at": "1970-01-01T00:00:00.000Z",
"_updated_at": "1970-01-01T00:00:00.000Z"
}
]
}

swapPortalConfig​

Swaps the portal configuration of two portals. Without mode both portals exchange pages and experience config live, as before. With mode: copy (portal versioning only) nothing live changes: the so

POST /v3/portal/config/swap

const { data } = await client.swapPortalConfig(
null,
{
source_portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c',
target_portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c',
items_to_swap: ['email_templates'],
mode: 'copy'
},
)
Response
{
"message": "Domain and users swapped successfully.",
"portal_references": {
"journeys": {
"updated": [
{
"id": "string",
"name": "string",
"paths": ["steps[0].uischema.elements[2].options.portalId"],
"error": "string"
}
],
"failed": [
{
"id": "string",
"name": "string",
"paths": ["steps[0].uischema.elements[2].options.portalId"],
"error": "string"
}
],
"list_error": "string"
},
"automation_flows": {
"updated": [
{
"id": "string",
"name": "string",
"paths": ["steps[0].uischema.elements[2].options.portalId"],
"error": "string"
}
],
"failed": [
{
"id": "string",
"name": "string",
"paths": ["steps[0].uischema.elements[2].options.portalId"],
"error": "string"
}
],
"list_error": "string"
}
},
"revisions": [
{
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"revision_id": "string"
}
]
}

clonePortalConfig​

Creates a new portal by cloning configuration and pages from an existing portal. The new portal gets its own domain, users, email templates, and authentication settings.

POST /v3/portal/config/clone

const { data } = await client.clonePortalConfig(
null,
{
source_portal_id: '453ad7bf-86d5-46c8-8252-bcc868df5e3c',
name: 'string'
},
)
Response
{
"entity_actions": [
{
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"slug": "contact",
"action_Label": {}
}
],
"extensions": [
{
"id": "string",
"status": "installed",
"options": {}
}
],
"extension_hooks": {},
"default_user_to_notify": {
"onPendingUser": [
{}
]
},
"identity_providers": [
{
"slug": "office-365-login",
"display_name": "Office 365 Login",
"provider_type": "OIDC",
"attribute_mappings": {},
"entity_matching": {},
"oidc_config": {},
"mobile_oidc_config": {},
"expose_client_secret": false,
"debug_mode_until": "2026-10-30T12:00:00.000Z",
"debug_mode": false
}
],
"mobile_config": {
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
},
"enabled": true,
"name": "Installer Portal",
"domain": "abc.com",
"is_epilot_domain": true,
"epilot_domain": "example-portal-1.ecp.epilot.io",
"domain_settings": {
"is_custom_domain_enabled": true,
"is_epilot_domain_enabled": true,
"is_redirection_enabled": true
},
"design_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"header": {
"design": {
"overrides": {}
}
},
"allowed_portal_entities": ["contact", "contract"],
"self_registration_setting": "ALLOW_WITH_CONTACT_CREATION",
"self_registration_account_setting": "ALLOW_WITH_CREATION",
"block_registration_if_portal_user_exists": true,
"self_registration_entity": "contact",
"user_account_self_management": false,
"feature_settings": {
"start_page": true,
"billing": true,
"commodity_billing": true,
"change_due_date": true,
"new_design": true,
"mcp_enabled": true,
"mcp_grant_version": 0,
"portal_copilot": false,
"portal_copilot_agent_id": "string",
"portal_copilot_visibility": {
"visible_for_targets": ["string"],
"visible_for_operator": "and",
"hidden_for_targets": ["string"],
"hidden_for_operator": "and"
}
},
"accessToken": "string",
"advanced_mfa": {
"enabled": true
},
"auth_settings": {
"passwordless_login": {
"enabled": true
},
"passkeys": {
"enabled": false
},
"entry_point": "PASSWORD",
"preferred_sso_providers": ["office-365-login"],
"auto_redirect_to_sso": true,
"prevent_user_enumeration": true
},
"cognito_details": {
"cognito_user_pool_client_id": "6bsd0jkgoie74k2i8mrhc1vest",
"cognito_mobile_client_id": "3k9fj2l1m0n8b7v6c5x4z3a2s1",
"cognito_user_pool_arn": "arn:aws:cognito-idp:us-east-1:123412341234:userpool/us-east-1_123412341",
"cognito_user_pool_id": "eu-central-1_CUEQRNbUb",
"timeouts": {
"refresh_token": 300,
"access_token": 300,
"id_token": 300
},
"advanced_authentication": {
"user_activity_logging": true,
"adaptive_authentication": true,
"compromised_credentials_detection": true
},
"password_policy": {
"minimum_length": 8,
"maximum_length": 256,
"require_lowercase": true,
"require_uppercase": true,
"require_numbers": true,
"require_symbols": true,
"password_history_size": 3
}
},
"config": "string",
"contact_identifiers": ["email", "last_name"],
"approval_state_attributes": {
"contact": ["name", "address"],
"contract": ["installment_amount"]
},
"email_templates": {
"confirmAccount": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedAuth": "5da0a718-c822-403d-9f5d-20d4584e0528",
"advancedMFA": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignUp": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeySignInOneTimePassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"passkeyVerificationCode": "5da0a718-c822-403d-9f5d-20d4584e0528",
"journeyLoginOTP": "5da0a718-c822-403d-9f5d-20d4584e0528",
"forgotPassword": "5da0a718-c822-403d-9f5d-20d4584e0528",
"invitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"partnerInvitation": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onNewQuote": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onMapAPendingUser": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onDocUpload": "5da0a718-c822-403d-9f5d-20d4584e0528",
"onWorkflowStepAssigned": "5da0a718-c822-403d-9f5d-20d4584e0528",
"confirmEmailUpdate": "5da0a718-c822-403d-9f5d-20d4584e0528",
"verifyCodeToSetPassword": "5da0a718-c822-403d-9f5d-20d4584e0528"
},
"images": {
"orderLeftTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-left-teaser.jpeg",
"orderRightTeaser": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/order-right-teaser.jpeg",
"welcomeBanner": "https://epilot-bucket.s3.eu-central-1.amazonaws.com/12344/6538fddb-f0e9-4f0f-af51-6e57891ff20a/welcome-banner.jpeg"
},
"entity_identifiers": {
"type": {
"isEnabled": true,
"attributes": ["contract_number"]
}
},
"contract_identifiers": [
{
"name": "email",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"self_assignment_mode": "contracts",
"contract_selector_config": {
"show_inactive": true,
"title_path": "string"
},
"registration_identifiers": [
{
"name": "last_name",
"schema": "contact"
},
{
"name": "contract_number",
"schema": "contract"
}
],
"surfaces": [
{
"id": "website-journeys",
"name": "Website journeys",
"description": "string",
"authentication": "login",
"token_ttl_seconds": 300,
"identifiers": [],
"data_access": {}
}
],
"contact_identifiers_for_account": [
{
"name": "first_name",
"schema": "contact"
},
{
"name": "last_name",
"schema": "contact"
}
],
"additional_contact_attributes": [
{
"name": "first_name",
"required": true
},
{
"name": "last_name",
"required": true
}
],
"triggered_journeys": [
{
"trigger_name": "FIRST_LOGIN",
"journey_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"context_params": []
}
],
"entity_edit_rules": [
{
"slug": "contact",
"attribute": "first_name",
"rule_type": "cadence",
"cadence_period_type": "days",
"cadence_period": 1,
"changes_allowed": 1,
"grace_period": 1,
"allowed_increment": "10%",
"allowed_decrement": "10%",
"number_of_days_before_restriction": 10
}
],
"allowed_file_extensions": {
"document": ["pdf"],
"image": ["jpg"],
"spreadsheet": ["xls"],
"presentation": ["ppt"],
"audioVideo": ["mp4"],
"email": ["eml"],
"archive": ["zip"],
"cad": ["cad"],
"calendar": ["ics"],
"other": ["txt"]
},
"prevent_search_engine_indexing": true,
"meter_reading_grace_period": 0,
"inactive_contract_cutoff_years": 0,
"is_dummy": true,
"is_v3_item": true,
"published_revision_id": "2026-08-25T14:03:11.482Z-a7f3c1d9",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"portal_sk_v3": "PORTAL_CONFIG#453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"origin": "string",
"global_blocks": {},
"organization_id": 12345,
"org_settings": {
"canary": {
"enabled": true
},
"notracking": {
"enabled": true
}
},
"feature_flags": {},
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"effect": "allow"
}
],
"pages": [
{
"slug": "dashboard",
"path": "/dashboard",
"schema": ["string"],
"visibility": {},
"content": {},
"design": {},
"blocks": {},
"order": 1,
"is_system": false,
"is_detail": false,
"detail_schema": "contact",
"show_in_navigation": false,
"is_public": true,
"parentId": "c495fef9-eeca-4019-a989-8390dcd9825b",
"is_entry_route": false,
"is_deleted": false,
"id": "c495fef9-eeca-4019-a989-8390dcd9825b",
"last_modified_at": "2021-02-09T12:41:43.662Z",
"portal_id": "453ad7bf-86d5-46c8-8252-bcc868df5e3c",
"past_routes": ["old-dashboard", "home"],
"_manifest": ["string"],
"_lineage_id": "string",
"detached_lineage_ids": ["string"]
}
]
}

invitePartner​

Invites a partner to a portal

POST /v3/portal/partner/invite

const { data } = await client.invitePartner(
null,
{
email: 'string',
contact_data: {},
portal_user_data: {}
},
)
Response
{
"message": "User invited successfully"
}

listBusinessPartners​

Lists all business partners linked to the businessaccount

GET /v3/portal/partner/list

const { data } = await client.listBusinessPartners()
Response
{
"data": [
{
"_id": "5da0a718-c822-403d-9f5d-20d4584e0528",
"has_portal_user": true,
"registration_status": "Registration Pending",
"email": "john.doe@example.com",
"_title": "John Doe",
"first_name": "John",
"last_name": "Doe",
"access_status": true
}
]
}

resendPartnerInvitation​

Resends an invitation email to a partner

POST /v3/portal/partner/{partner_id}/resend-invitation

const { data } = await client.resendPartnerInvitation({
partner_id: 'example',
})
Response
{
"message": "Partner invitation resent successfully"
}

revokePartner​

Revokes a partner from a portal

DELETE /v3/portal/partner/{partner_id}/revoke

const { data } = await client.revokePartner({
partner_id: 'example',
})
Response
{
"message": "Partner revoked from portal successfully"
}

disablePartner​

Disables a partner from a portal

POST /v3/portal/partner/{partner_id}/disable

const { data } = await client.disablePartner({
partner_id: 'example',
})
Response
{
"message": "Partner disabled from portal successfully"
}

enablePartner​

Enables a partner from a portal

POST /v3/portal/partner/{partner_id}/enable

const { data } = await client.enablePartner({
partner_id: 'example',
})
Response
{
"message": "Partner enabled from portal successfully"
}

verifyDns​

Manually triggers DNS verification for a portal's domain setup. Runs the same verification logic as the scheduled processAllPendingNetworks lambda.

POST /v3/portal/verify-dns

const { data } = await client.verifyDns({
portal_id: 'example',
})
Response
{
"domain_status": "PENDING",
"message": "string"
}

portalProxyExecute​

Execute an Integration Hub managed-call use case on behalf of a portal user. Bridges PortalAuth to the Integration API by generating an internal token.

POST /v2/portal/proxy/execute

const { data } = await client.portalProxyExecute(
null,
{
integration_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
use_case_slug: 'string',
payload: {}
},
)
Response
{
"success": true,
"data": {}
}

getMobileConfig​

Returns the portal's mobile app configuration. By default the response is build-ready (resolved): base info (display_name from the portal name, app_host from the domain, environment) and branding (log

GET /v1/portal/mobile-config

const { data } = await client.getMobileConfig({
portal_id: 'example',
raw: true,
})
Response
{
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {
"version": "string",
"build_number": 0,
"track": "string",
"status": "building",
"updated_at": "1970-01-01T00:00:00.000Z",
"error": "string"
}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {
"version": "string",
"build_number": 0,
"track": "string",
"status": "building",
"updated_at": "1970-01-01T00:00:00.000Z",
"error": "string"
}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
}

putMobileConfig​

Merges the provided fields into the portal's mobile app configuration (deep merge). Only mobile_config is modified; all other portal settings are left untouched.

PUT /v1/portal/mobile-config

const { data } = await client.putMobileConfig(
{
portal_id: 'example',
},
{
enabled: true,
ios: {
bundle_id: 'string',
team_id: 'string',
store_url: 'string',
app_store_id: 'string'
},
android: {
package_name: 'string',
store_url: 'string'
},
branding: {
app_icon: 'string',
splash: 'string',
splash_dark: 'string',
icon_background_color: 'string',
splash_background_color: 'string',
splash_background_color_dark: 'string'
},
ota: {
enabled: true,
channel: 'canary',
auto_update: true,
update_strategy: 'next-launch',
min_native_version: 'string'
}
},
)
Response
{
"portal_id": "string",
"enabled": true,
"display_name": "string",
"app_host": "string",
"environment": "prod",
"branding": {
"app_icon": "string",
"splash": "string",
"splash_dark": "string",
"icon_background_color": "string",
"splash_background_color": "string",
"splash_background_color_dark": "string"
},
"ios": {
"bundle_id": "string",
"team_id": "string",
"credentials_status": "not_configured",
"app_store_id": "string",
"store_url": "string",
"last_build": {
"version": "string",
"build_number": 0,
"track": "string",
"status": "building",
"updated_at": "1970-01-01T00:00:00.000Z",
"error": "string"
}
},
"android": {
"package_name": "string",
"credentials_status": "not_configured",
"upload_key_status": "not_configured",
"store_url": "string",
"last_build": {
"version": "string",
"build_number": 0,
"track": "string",
"status": "building",
"updated_at": "1970-01-01T00:00:00.000Z",
"error": "string"
}
},
"ota": {
"enabled": true,
"channel": "canary",
"auto_update": true,
"update_strategy": "next-launch",
"min_native_version": "string"
}
}

Schemas​

PortalUserPasskey​

type PortalUserPasskey = {
credential_id: string
name?: string
rp_id: string
is_usable: boolean
device_type?: "singleDevice" | "multiDevice"
backed_up?: boolean
created_at: string // date-time
last_used_at?: string // date-time
}

MeterReadingCounterDetails​

Display details of the counter the readings belong to. Only returned when include_counter is true and the counter could be resolved.

type MeterReadingCounterDetails = {
unit?: string
obis_number?: string
direction?: string
tariff_type?: string
}

PortalNotification​

A 360 notification addressed to a portal user.

type PortalNotification = {
id: string
notification_id?: number
type?: string
title?: {
en?: string
de?: string
}
message?: {
en?: string
de?: string
}
created_at?: string // date-time
read: boolean
redirect_url?: string
}

PortalUserNotificationPreferences​

Resolved notification preferences of a portal user. Notifications are opt-out: a channel that was never stored on the portal user resolves to enabled (true).

type PortalUserNotificationPreferences = {
in_app: boolean
}

MobileBuildStatus​

Latest build/upload status for a platform (system-written).

type MobileBuildStatus = {
version?: string
build_number?: number
track?: string
status?: "building" | "uploaded" | "failed"
updated_at?: string // date-time
error?: string
}

MobileBranding​

type MobileBranding = {
app_icon?: string
splash?: string
splash_dark?: string
icon_background_color?: string
splash_background_color?: string
splash_background_color_dark?: string
}

MobileConfig​

Mobile app configuration for the portal. Stored inside the portal's config object. Identifiers/branding are non-secret; signing credentials live in a secure store, never here.

type MobileConfig = {
portal_id?: string
enabled?: boolean
display_name?: string
app_host?: string
environment?: "prod" | "staging" | "dev"
branding?: {
app_icon?: string
splash?: string
splash_dark?: string
icon_background_color?: string
splash_background_color?: string
splash_background_color_dark?: string
}
ios?: {
bundle_id?: string
team_id?: string
credentials_status?: "not_configured" | "configured"
app_store_id?: string
store_url?: string
last_build?: {
version?: { ... }
build_number?: { ... }
track?: { ... }
status?: { ... }
updated_at?: { ... }
error?: { ... }
}
}
android?: {
package_name?: string
credentials_status?: "not_configured" | "configured"
upload_key_status?: "not_configured" | "generated" | "enrolled"
store_url?: string
last_build?: {
version?: { ... }
build_number?: { ... }
track?: { ... }
status?: { ... }
updated_at?: { ... }
error?: { ... }
}
}
ota?: {
enabled?: boolean
channel?: "canary" | "stable"
auto_update?: boolean
update_strategy?: "next-launch" | "immediate"
min_native_version?: string
}
}

MobileConfigUpdate​

Editable mobile fields for PUT. Only mobile-relevant settings + app branding can be changed. Portal-derived values (display_name, app_host), the portal logo, and system-written fields (credentials_status, app_store_id, last_build, …) are ignored if sent.

type MobileConfigUpdate = {
enabled?: boolean
ios?: {
bundle_id?: string
team_id?: string
store_url?: string
app_store_id?: string
}
android?: {
package_name?: string
store_url?: string
}
branding?: {
app_icon?: string
splash?: string
splash_dark?: string
icon_background_color?: string
splash_background_color?: string
splash_background_color_dark?: string
}
ota?: {
enabled?: boolean
channel?: "canary" | "stable"
auto_update?: boolean
update_strategy?: "next-launch" | "immediate"
min_native_version?: string
}
}

MobileOtaConfig​

OTA (over-the-air) update settings for the portal's mobile app. Drives the OTA build pipeline and the per-portal manifest. channel / update_strategy / min_native_version are epilot-internal controls.

type MobileOtaConfig = {
enabled?: boolean
channel?: "canary" | "stable"
auto_update?: boolean
update_strategy?: "next-launch" | "immediate"
min_native_version?: string
}

NewDesignMigrationResult​

type NewDesignMigrationResult = {
org_id?: string
portal_id?: string
origin?: string
name?: string
is_v3_item?: boolean
dry_run?: boolean
migrated?: boolean
summary?: Record<string, unknown>
before?: Record<string, unknown>
}

OtaPortal​

A portal that has mobile OTA updates enabled.

type OtaPortal = {
domain: string
channel: "canary" | "stable"
autoUpdate: boolean
updateStrategy: "next-launch" | "immediate"
minNativeVersion?: string
}

ContextEntity​

An entity reference for context-aware operations

type ContextEntity = {
entity_schema: string
entity_id: string // uuid
}

ContextEntities​

Additional entities to include in the context for variable interpolation. Portal User and Contact entities are automatically part of the context.

type ContextEntities = Array<{
entity_schema: string
entity_id: string // uuid
}>

ErrorResp​

type ErrorResp = {
message?: string
reason?: string
}

SSOErrorResp​

Error response of the public SSO endpoints. Like every error response the message is in error; reason carries a stable machine-readable cause when one is known (e.g. MISSING_EMAIL_CLAIM, INVALID_PROVIDER, SELF_REGISTRATION_NOT_ALLOWED, TOKEN_EXCHANGE_FAILED). debug is only present whil

type SSOErrorResp = {
status?: number
error?: string
reason?: string
debug?: {
stage?: "exchange" | "login"
reason?: string
message?: string
upstream_status?: number
oauth_error?: string
oauth_error_description?: string
token_endpoint_host?: string
token_endpoint_path?: string
redirect_uri?: string
received_claims?: string[]
request_id?: string
hint?: string
}
}

SSODebugInfo​

Technical details of a failed SSO login or token exchange, returned only while SSO debug mode is active for the provider. Never carries secrets, authorization codes, PKCE verifiers, tokens or claim values.

type SSODebugInfo = {
stage?: "exchange" | "login"
reason?: string
message?: string
upstream_status?: number
oauth_error?: string
oauth_error_description?: string
token_endpoint_host?: string
token_endpoint_path?: string
redirect_uri?: string
received_claims?: string[]
request_id?: string
hint?: string
}

FailedRuleErrorResp​

type FailedRuleErrorResp = {
message?: string
failed_rule?: object
}

EmailTemplates​

Email templates used for authentication and internal processes

type EmailTemplates = {
confirmAccount?: string // uuid
advancedAuth?: string // uuid
advancedMFA?: string // uuid
journeySignUp?: string // uuid
journeySignInOneTimePassword?: string // uuid
passkeyVerificationCode?: string // uuid
journeyLoginOTP?: string // uuid
forgotPassword?: string // uuid
invitation?: string // uuid
partnerInvitation?: string // uuid
onNewQuote?: string // uuid
onMapAPendingUser?: string // uuid
onDocUpload?: string // uuid
onWorkflowStepAssigned?: string // uuid
confirmEmailUpdate?: string // uuid
verifyCodeToSetPassword?: string // uuid
}

SaveEntityFile​

type SaveEntityFile = {
entity_id: string // uuid
entity_type: string
files: Array<{
filename: string
access_control?: "private" | "public-read"
s3ref: {
bucket: { ... }
key: { ... }
}
}>
}

SavePortalFile​

type SavePortalFile = {
origin: string
draft?: boolean
files: Array<{
filename?: string
file_type: string
_tags?: string[]
s3ref?: {
bucket: { ... }
key: { ... }
}
}>
}

ExtraSchemaAttributes​

type ExtraSchemaAttributes = Array<{
name: string
label: string
group: string
}>

Origin​

Origin of the portal

type Origin = string

AllowedFileExtensions​

Allowed file extensions for upload

type AllowedFileExtensions = {
document?: string[]
image?: string[]
spreadsheet?: string[]
presentation?: string[]
audioVideo?: string[]
email?: string[]
archive?: string[]
cad?: string[]
calendar?: string[]
other?: string[]
}

UpdateOnlyPortalConfigAttributes​

type UpdateOnlyPortalConfigAttributes = {
entity_actions?: Array<{
journey_id?: string // uuid
slug?: string
action_Label?: {
en?: { ... }
de?: { ... }
}
}>
extensions?: Array<{
id: string
status: "installed" | "enabled"
options?: Record<string, string>
}>
extension_hooks?: Record<string, {
app_id: string
extension_id: string
hook_id: string
}>
default_user_to_notify?: {
onPendingUser?: Array<{
type?: { ... }
user_id?: { ... }
display_name?: { ... }
image_uri?: { ... }
org_id?: { ... }
email?: { ... }
phone?: { ... }
}>
}
identity_providers?: Array<{
slug?: string
display_name: string
provider_type: "OIDC"
attribute_mappings?: {
contact: { ... }
account?: { ... }
portal_user?: { ... }
concession_attributes?: { ... }
}
entity_matching?: {
portal_user?: { ... }
contact?: { ... }
auto_create_cognito_user?: { ... }
}
oidc_config?: {
type?: { ... }
oidc_issuer: { ... }
redirect_uri?: { ... }
client_id: { ... }
client_secret?: { ... }
has_client_secret?: { ... }
scope: { ... }
metadata?: { ... }
prompt?: { ... }
}
mobile_oidc_config?: {
client_id?: { ... }
client_secret?: { ... }
}
expose_client_secret?: boolean
debug_mode_until?: string // date-time
}>
}

CommonConfigAttributes​

type CommonConfigAttributes = {
mobile_config?: {
portal_id?: string
enabled?: boolean
display_name?: string
app_host?: string
environment?: "prod" | "staging" | "dev"
branding?: {
app_icon?: { ... }
splash?: { ... }
splash_dark?: { ... }
icon_background_color?: { ... }
splash_background_color?: { ... }
splash_background_color_dark?: { ... }
}
ios?: {
bundle_id?: { ... }
team_id?: { ... }
credentials_status?: { ... }
app_store_id?: { ... }
store_url?: { ... }
last_build?: { ... }
}
android?: {
package_name?: { ... }
credentials_status?: { ... }
upload_key_status?: { ... }
store_url?: { ... }
last_build?: { ... }
}
ota?: {
enabled?: { ... }
channel?: { ... }
auto_update?: { ... }
update_strategy?: { ... }
min_native_version?: { ... }
}
}
enabled?: boolean
name?: string
domain?: string
is_epilot_domain?: boolean
epilot_domain?: string
domain_settings?: {
is_custom_domain_enabled?: boolean
is_epilot_domain_enabled?: boolean
is_redirection_enabled?: boolean
}
design_id?: string // uuid
header?: {
design?: {
overrides?: { ... }
}
}
allowed_portal_entities?: string[]
self_registration_setting?: "ALLOW_WITH_CONTACT_CREATION" | "ALLOW_WITHOUT_CONTACT_CREATION" | "DENY" | "ALWAYS_CREATE_CONTACT" | "DISALLOW_COMPLETELY" | "BLOCK_IF_PORTAL_USER_EXISTS"
self_registration_account_setting?: "ALLOW_WITH_CREATION" | "DENY" | "ALWAYS_CREATE" | "BLOCK_IF_PORTAL_USER_EXISTS" | "DISALLOW_COMPLETELY"
block_registration_if_portal_user_exists?: boolean
self_registration_entity?: "contact" | "account"
user_account_self_management?: boolean
feature_settings?: {
start_page?: boolean
billing?: boolean
commodity_billing?: boolean
change_due_date?: boolean
new_design?: boolean
mcp_enabled?: boolean
mcp_grant_version?: number
portal_copilot?: boolean
portal_copilot_agent_id?: string
portal_copilot_visibility?: {
visible_for_targets?: { ... }
visible_for_operator?: { ... }
hidden_for_targets?: { ... }
hidden_for_operator?: { ... }
}
}
accessToken?: string
advanced_mfa?: {
enabled?: boolean
}
auth_settings?: {
passwordless_login?: {
enabled?: { ... }
}
passkeys?: {
enabled?: { ... }
}
entry_point?: "PASSWORD" | "SSO"
preferred_sso_providers?: string[]
auto_redirect_to_sso?: boolean
prevent_user_enumeration?: boolean
}
cognito_details?: {
cognito_user_pool_client_id?: string
cognito_mobile_client_id?: string
cognito_user_pool_arn?: string
cognito_user_pool_id?: string
timeouts?: {
refresh_token?: { ... }
// ...
}

EngagementCenterTaskTemplates​

Handlebars templates rendering each outstanding task (to-do) row in the portal's engagement center. Resolved server-side per task against the task's entity (same variable syntax as page block templates, e.g. {{order.order_number}}, custom and environment variables) plus task.* (the workflow step

type EngagementCenterTaskTemplates = {
title?: string
subtitle?: string
}

NotificationTriggerConfig​

type NotificationTriggerConfig = {
trigger_type: "entity_added" | "entity_created" | "entity_assigned" | "workflow_step_overdue"
entity_schema?: string
enabled?: boolean
template_id?: string // uuid
target_ids?: string[]
}

UpsertPortalConfig​

type UpsertPortalConfig = {
entity_actions?: Array<{
journey_id?: string // uuid
slug?: string
action_Label?: {
en?: { ... }
de?: { ... }
}
}>
extensions?: Array<{
id: string
status: "installed" | "enabled"
options?: Record<string, string>
}>
extension_hooks?: Record<string, {
app_id: string
extension_id: string
hook_id: string
}>
default_user_to_notify?: {
onPendingUser?: Array<{
type?: { ... }
user_id?: { ... }
display_name?: { ... }
image_uri?: { ... }
org_id?: { ... }
email?: { ... }
phone?: { ... }
}>
}
identity_providers?: Array<{
slug?: string
display_name: string
provider_type: "OIDC"
attribute_mappings?: {
contact: { ... }
account?: { ... }
portal_user?: { ... }
concession_attributes?: { ... }
}
entity_matching?: {
portal_user?: { ... }
contact?: { ... }
auto_create_cognito_user?: { ... }
}
oidc_config?: {
type?: { ... }
oidc_issuer: { ... }
redirect_uri?: { ... }
client_id: { ... }
client_secret?: { ... }
has_client_secret?: { ... }
scope: { ... }
metadata?: { ... }
prompt?: { ... }
}
mobile_oidc_config?: {
client_id?: { ... }
client_secret?: { ... }
}
expose_client_secret?: boolean
debug_mode_until?: string // date-time
}>
mobile_config?: {
portal_id?: string
enabled?: boolean
display_name?: string
app_host?: string
environment?: "prod" | "staging" | "dev"
branding?: {
app_icon?: { ... }
splash?: { ... }
splash_dark?: { ... }
icon_background_color?: { ... }
splash_background_color?: { ... }
splash_background_color_dark?: { ... }
}
ios?: {
bundle_id?: { ... }
team_id?: { ... }
credentials_status?: { ... }
app_store_id?: { ... }
store_url?: { ... }
last_build?: { ... }
}
android?: {
package_name?: { ... }
credentials_status?: { ... }
upload_key_status?: { ... }
store_url?: { ... }
last_build?: { ... }
}
ota?: {
enabled?: { ... }
channel?: { ... }
auto_update?: { ... }
update_strategy?: { ... }
min_native_version?: { ... }
}
}
// ...
}

PortalConfig​

type PortalConfig = {
mobile_config?: {
portal_id?: string
enabled?: boolean
display_name?: string
app_host?: string
environment?: "prod" | "staging" | "dev"
branding?: {
app_icon?: { ... }
splash?: { ... }
splash_dark?: { ... }
icon_background_color?: { ... }
splash_background_color?: { ... }
splash_background_color_dark?: { ... }
}
ios?: {
bundle_id?: { ... }
team_id?: { ... }
credentials_status?: { ... }
app_store_id?: { ... }
store_url?: { ... }
last_build?: { ... }
}
android?: {
package_name?: { ... }
credentials_status?: { ... }
upload_key_status?: { ... }
store_url?: { ... }
last_build?: { ... }
}
ota?: {
enabled?: { ... }
channel?: { ... }
auto_update?: { ... }
update_strategy?: { ... }
min_native_version?: { ... }
}
}
enabled?: boolean
name?: string
domain?: string
is_epilot_domain?: boolean
epilot_domain?: string
domain_settings?: {
is_custom_domain_enabled?: boolean
is_epilot_domain_enabled?: boolean
is_redirection_enabled?: boolean
}
design_id?: string // uuid
header?: {
design?: {
overrides?: { ... }
}
}
allowed_portal_entities?: string[]
self_registration_setting?: "ALLOW_WITH_CONTACT_CREATION" | "ALLOW_WITHOUT_CONTACT_CREATION" | "DENY" | "ALWAYS_CREATE_CONTACT" | "DISALLOW_COMPLETELY" | "BLOCK_IF_PORTAL_USER_EXISTS"
self_registration_account_setting?: "ALLOW_WITH_CREATION" | "DENY" | "ALWAYS_CREATE" | "BLOCK_IF_PORTAL_USER_EXISTS" | "DISALLOW_COMPLETELY"
block_registration_if_portal_user_exists?: boolean
self_registration_entity?: "contact" | "account"
user_account_self_management?: boolean
feature_settings?: {
start_page?: boolean
billing?: boolean
commodity_billing?: boolean
change_due_date?: boolean
new_design?: boolean
mcp_enabled?: boolean
mcp_grant_version?: number
portal_copilot?: boolean
portal_copilot_agent_id?: string
portal_copilot_visibility?: {
visible_for_targets?: { ... }
visible_for_operator?: { ... }
hidden_for_targets?: { ... }
hidden_for_operator?: { ... }
}
}
accessToken?: string
advanced_mfa?: {
enabled?: boolean
}
auth_settings?: {
passwordless_login?: {
enabled?: { ... }
}
passkeys?: {
enabled?: { ... }
}
entry_point?: "PASSWORD" | "SSO"
preferred_sso_providers?: string[]
auto_redirect_to_sso?: boolean
prevent_user_enumeration?: boolean
}
cognito_details?: {
cognito_user_pool_client_id?: string
cognito_mobile_client_id?: string
cognito_user_pool_arn?: string
cognito_user_pool_id?: string
timeouts?: {
refresh_token?: { ... }
// ...
}

UpsertPortalWidget​

type UpsertPortalWidget = {
portal_sk_v3?: string
is_v3_item?: boolean
widgets: Array<{
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: { ... }
de?: { ... }
}
subHeadline?: {
en?: { ... }
de?: { ... }
}
schema?: string
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: { ... }
de?: { ... }
}
subHeadline?: {
en?: { ... }
de?: { ... }
}
content?: string
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: { ... }
de?: { ... }
}
subHeadline?: {
en?: { ... }
de?: { ... }
}
actions?: Array<{
_id: { ... }
type: { ... }
label: { ... }
url: { ... }
rules?: { ... }
}>
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: { ... }
de?: { ... }
}
subHeadline?: {
en?: { ... }
de?: { ... }
}
imageUrl?: string
button?: {
label?: { ... }
url?: { ... }
}
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: { ... }
de?: { ... }
}
subHeadline?: {
en?: { ... }
de?: { ... }
}
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: { ... }
de?: { ... }
}
subHeadline?: {
en?: { ... }
de?: { ... }
}
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: { ... }
de?: { ... }
}
subHeadline?: {
en?: { ... }
de?: { ... }
// ...
}

DomainSettings​

Domain settings for the portal

type DomainSettings = {
is_custom_domain_enabled?: boolean
is_epilot_domain_enabled?: boolean
is_redirection_enabled?: boolean
}

WidgetBase​

type WidgetBase = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
}

EntityWidget​

type EntityWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
schema?: string
}

MeterReadingWidget​

type MeterReadingWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
schema?: string
}

MeterChartWidget​

type MeterChartWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
schema?: string
}

WidgetAction​

type WidgetAction = {
_id: string
type: "link" | "journey"
label: {
en?: string
de?: string
}
url: string
rules?: Array<{
attribute: string
attribute_value: string
entity: string
}>
}

ActionWidget​

type ActionWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
actions?: Array<{
_id: string
type: "link" | "journey"
label: {
en?: { ... }
de?: { ... }
}
url: string
rules?: Array<{
attribute: { ... }
attribute_value: { ... }
entity: { ... }
}>
}>
}

TeaserWidget​

type TeaserWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
imageUrl?: string
button?: {
label?: {
en?: { ... }
de?: { ... }
}
url?: string
}
}

ContentWidget​

type ContentWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
content?: string
}

DocumentWidget​

type DocumentWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
}

PaymentWidget​

type PaymentWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
}

CampaignWidget​

type CampaignWidget = {
campaign_id?: string
}

ProductRecommendationsWidget​

type ProductRecommendationsWidget = {
campaign_id?: string
}

PortalWidget​

type PortalWidget = {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
schema?: string
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
content?: string
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
actions?: Array<{
_id: string
type: "link" | "journey"
label: {
en?: { ... }
de?: { ... }
}
url: string
rules?: Array<{
attribute: { ... }
attribute_value: { ... }
entity: { ... }
}>
}>
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
imageUrl?: string
button?: {
label?: {
en?: { ... }
de?: { ... }
}
url?: string
}
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
headline?: {
en?: string
de?: string
}
subHeadline?: {
en?: string
de?: string
}
} | {
id: string
type: "ACTION_WIDGET" | "CONTENT_WIDGET" | "ENTITY_WIDGET" | "TEASER_WIDGET" | "DOCUMENT_WIDGET" | "PAYMENT_WIDGET" | "METER_READING_WIDGET" | "METER_CHART_WIDGET" | "CAMPAIGN_WIDGET" | "PRODUCT_RECOMMENDATIONS_WIDGET"
listIndex: number
// ...
}

ContactCountRequest​

type ContactCountRequest = {
orgId: string
contactIdentifiers: Record<string, string>
}

ContactExistsRequest​

type ContactExistsRequest = {
org_id: string
registration_identifiers: Record<string, Record<string, string>>
trigger_identifiers_check?: boolean
}

ContactIdentifyRequest​

ContactExistsRequest plus the surface the token is requested for. registration_identifiers carries the values of the surface's effective identifiers (keyed by schema, then attribute name): the surface's own identifiers when it configures any, otherwise the portal's registration_identifiers.

type ContactIdentifyRequest = {
org_id: string
registration_identifiers: Record<string, Record<string, string>>
trigger_identifiers_check?: boolean
surface_id: string
}

ContactIdentifyResponse​

type ContactIdentifyResponse = {
contact_id?: string // uuid
account_id?: string // uuid
token?: string
token_type?: "contact_identification"
surface_id?: string
expires_at?: string // date-time
allowed_operations?: string[]
has_portal_user?: boolean
portal_user_email?: string
reason?: "TIMEOUT" | "NOT_FOUND"
}

AccountExistsRequest​

type AccountExistsRequest = {
org_id: string
registration_identifiers: Record<string, Record<string, string>>
}

UserRequest​

type UserRequest = {
email?: string
first_name?: string
last_name?: string
contactId?: string // uuid
}

CreateUserRequest​

type CreateUserRequest = {
email?: string
first_name?: string
last_name?: string
contactId?: string // uuid
orgId?: string
password?: string
contactIdentifiers?: Record<string, string>
registration_identifiers?: Record<string, Record<string, string>>
contact_identifiers_for_account?: Record<string, string>
additional_contact_attributes?: Record<string, string>
account_id?: string
}

OrganizationSettings​

type OrganizationSettings = {
automation_entity_mapping?: {
enabled?: boolean
}
automation_preview?: {
enabled?: boolean
}
central_inbox_preview_setting?: {
enabled?: boolean
}
contracts_preview_setting?: {
enabled?: boolean
}
disable_ivy?: {
enabled?: boolean
}
double_opt_in?: {
enabled?: boolean
}
ecommerce_catalog_preview?: {
enabled?: boolean
}
ecommerce_opportunities_preview?: {
enabled?: boolean
}
ecommerce_preview?: {
enabled?: boolean
}
end_customer_portal?: {
enabled?: boolean
}
installer_portal?: {
enabled?: boolean
}
entity_schema_builder?: {
enabled?: boolean
}
logic_editor_preview?: {
enabled?: boolean
}
new_navigation?: {
enabled?: boolean
}
partnering?: {
enabled?: boolean
}
product-availability?: {
enabled?: boolean
}
sso?: {
enabled?: boolean
}
submission_preview?: {
enabled?: boolean
}
user_roles_preview?: {
enabled?: boolean
}
}

AuthConfig​

type AuthConfig = {
user_pool_id: string
user_pool_client_id: string
user_pool_identity_pool_id?: string
portal_id: string
}

Exists​

type Exists = {
exists: boolean
active?: boolean
}

EntitySlug​

URL-friendly identifier for the entity schema

type EntitySlug = string

EntitySlugConfig​

Per-slug search configuration with scoped targets and templates

type EntitySlugConfig = {
slug: string
targets?: string // uuid[]
match_any_targets?: string // uuid[]
templates?: Record<string, string>
templates_ref?: {
page_id?: string
block_id?: string
config_id?: string
global_search_config_id?: string
}
}

TemplatesRef​

Reference to admin-authored portal configuration (a page block or a global search configuration item) from which the API derives Handlebars templates server-side. This replaces client-supplied template strings so portal users can never submit arbitrary templates for resolution. When both a reference

type TemplatesRef = {
page_id?: string
block_id?: string
config_id?: string
global_search_config_id?: string
}

EntityId​

Entity ID

type EntityId = string // uuid

BaseEntity​

type BaseEntity = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
}

Schema​

type Schema = {
slug?: string
}

Entity​

type Entity = {
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
}

EntityTemplates​

type EntityTemplates = {
templates_output?: Record<string, string | Record<string, string>>
}

EntityItem​

type EntityItem = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
templates_output?: Record<string, string | Record<string, string>>
_schema: string
}

EntityResponse​

Response for entity get request

type EntityResponse = {
result?: {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: { ... }
fragment?: { ... }
}>
templates_output?: Record<string, string | Record<string, string>>
_schema: string
}
}

EntityResponseWithHits​

Response for entity search requests

type EntityResponseWithHits = {
results?: Array<{
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: { ... }
fragment?: { ... }
}>
templates_output?: Record<string, string | Record<string, string>>
_schema: string
}>
pagination?: {
from?: number
size?: number
total?: number
has_more?: boolean
}
hits?: number
includes?: {
active_workflow?: Record<string, object>
}
}

EntityResponseGroupedWithHits​

Response for entity search requests, but with groupings

type EntityResponseGroupedWithHits = {
groups?: Array<{
group?: string
group_title?: string
count?: number
results?: Array<{
_id: { ... }
_title: { ... }
_org: { ... }
_tags?: { ... }
_created_at: { ... }
_updated_at: { ... }
templates_output_highlighted?: { ... }
search_snippets?: { ... }
templates_output?: { ... }
_schema: { ... }
}>
pagination?: {
from?: { ... }
size?: { ... }
total?: { ... }
has_more?: { ... }
}
}>
groups_pagination?: {
has_more?: boolean
after_key?: Record<string, string>
}
hits?: number
includes?: {
active_workflow?: Record<string, object>
}
}

SearchIncludes​

Side-loaded enrichment data requested via the include parameter.

type SearchIncludes = {
active_workflow?: Record<string, object>
}

PortalUser​

The portal user entity

type PortalUser = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
_schema: "portal_user"
}

PortalContactUpdate​

Contact attributes a portal user can change. Other attributes are ignored. Value types follow the organization's contact schema.

type PortalContactUpdate = {
language?: string
first_name?: unknown
last_name?: unknown
salutation?: unknown
phone?: unknown
phone_number?: unknown
mobile?: unknown
street?: unknown
street_number?: unknown
postal_code?: unknown
city?: unknown
country?: unknown
preferred_language?: unknown
communication_preferences?: unknown
}

PortalContractUpdate​

Contract attributes a portal user can change. Other attributes are ignored.

type PortalContractUpdate = {
installment_amount?: number
installment_amount_decimal?: string
}

Contact​

The mapped contact of the portal user

type Contact = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
_schema: "contact"
}

WorfklowIdentifier​

Workflow identifier object

type WorfklowIdentifier = {
defition_id?: string
name?: string
}

Meter​

The meter entity

type Meter = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
_schema: "meter"
}

Order​

The order entity

type Order = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
_schema: "order"
}

Opportunity​

The opportunity entity

type Opportunity = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
_schema: "opportunity"
}

Contract​

The contract entity

type Contract = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
contract_name?: string
contract_number?: string
status?: "draft" | "in_approval_process" | "approved" | "active" | "deactivated" | "revoked" | "terminated" | "expired"
description?: string
account_number?: string
branch?: "power" | "gas" | "water" | "waste_water" | "district_heating"
billing_address?: string
delivery_address?: string
additional_addresses?: string
termination_date?: string
termination_reason?: string
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly"
billing_duration_amount?: number
renewal_duration_amount?: number
renewal_duration_unit?: "weeks" | "months" | "years"
notice_time_amount?: number
notice_time_unit?: "weeks" | "months" | "years"
start_date?: string
billing_due_day?: number
installment_amount?: number
balance?: number
balance_currency?: string
}

File​

The file entity

type File = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
_schema: "file"
}

Product​

The product entity

type Product = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
_schema: "product"
}

ActivityId​

See https://github.com/ulid/spec

type ActivityId = string // ulid

ActivityCallerContext​

type ActivityCallerContext = {
PortalAuth?: {
token?: {
sub?: { ... }
email?: { ... }
cognito:username?: { ... }
custom:portal_user_id?: { ... }
custom:contact_entity_id?: { ... }
}
}
}

Activity​

type Activity = {
type: string
title: string
message: string
payload?: Record<string, unknown>
}

EntityEditRule​

type EntityEditRule = {
slug?: string
attribute?: string
rule_type?: string
cadence_period_type?: string
changes_allowed?: number
cadence_period?: number
allowed_decrement?: string
allowed_increment?: string
number_of_days_before_restriction?: number
grace_period?: number
}

ActivityItem​

type ActivityItem = {
_id?: string // ulid
timestamp?: string // date-time
type: string
title: string
message: string
payload?: {
entity?: {
id?: { ... }
schema?: { ... }
}
caller?: {
PortalAuth?: { ... }
}
}
}

FileItem​

type FileItem = {
filename?: string
access_control?: "private" | "public-read"
file_date?: string // date-time
public_url?: string // url
type?: "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
mime_type?: string
_relations?: Array<{
entity_id?: string // uuid
_schema?: string
}>
is_new?: boolean
custom_download_url_auth?: "token" | "presigned"
}

FilePreviewResult​

type FilePreviewResult = {
kind: "pdf" | "image" | "unsupported"
url?: string // uri
requires_auth?: boolean
download_url?: string // uri
}

AdminUser​

type AdminUser = {
type?: string
user_id?: string
display_name?: string
image_uri?: {
original?: string
thumbnail_32?: string
thumbnail_64?: string
key?: string
}
org_id?: string
email?: string
phone?: string
}

PortalSurface​

One surface a portal's data is reached from (see surfaces on the portal config).

A surface names how callers authenticate on it and what they may reach once they have. Data access is always a subset of the portal's own: a schema not in allowed_portal_entities cannot be opened up by a surface, a

type PortalSurface = {
id: string
name: string
description?: string
authentication: "login" | "registration_identifiers"
token_ttl_seconds?: number
identifiers?: Array<{
name?: string
schema?: string
validation_rule_id?: string
}>
data_access?: {
entities?: Array<{
schema: { ... }
target_ids?: { ... }
}>
role_id?: string
}
}

PortalSurfaceDataAccess​

What a caller on a surface may reach. Every property is optional; omitting all of them is the portal's default scope.

type PortalSurfaceDataAccess = {
entities?: Array<{
schema: string
target_ids?: string[]
}>
role_id?: string
}

PortalSurfaceEntityAccess​

One schema this surface reaches, with the targets that always apply to it.

type PortalSurfaceEntityAccess = {
schema: string
target_ids?: string[]
}

Grant​

type Grant = {
action: string
resource?: string
effect?: "allow" | "deny"
}

ActionLabel​

type ActionLabel = {
en?: string
de?: string
}

Rule​

type Rule = {
entity?: string
attribute?: string
attribute_value?: string
}

JourneyActions​

type JourneyActions = {
journey_id?: string
action_label?: {
en?: string
de?: string
}
slug?: string
rules?: Array<{
entity?: string
attribute?: string
attribute_value?: string
}>
}

JourneyContextUsagesRequest​

type JourneyContextUsagesRequest = {
journey_id: string
param_keys: string[]
param_ids?: string[]
}

JourneyContextUsagesResponse​

type JourneyContextUsagesResponse = {
status: "ok" | "partial"
scanned: number
usages: Array<{
kind: "portal-config" | "portal-block"
resource: {
type: { ... }
id: { ... }
name?: { ... }
}
location: Record<string, unknown>
matched_as: {
dialect: { ... }
token: { ... }
at?: { ... }
}
link_hint?: {
route: { ... }
params: { ... }
}
}>
}
type ExternalLink = {
id: string
label: Record<string, string>
type: "link" | "journey" | "seamless"
link: string
rules?: object[]
attribute?: string
entity?: string
attribute_value?: string
icon?: {
name?: string
color?: string
size?: number
}
extension_link_id?: string[]
}

OutstandingTask​

type OutstandingTask = {
entity_id: string
entity_schema: string
entity_title: string
workflow_id: string
workflow_name: string
step_id: string
step_name: string
journey_id: string
complete_task_automatically?: boolean
title?: string
subtitle?: string
}

WorkflowExecution​

type WorkflowExecution = Record<string, unknown>

WorkflowStep​

type WorkflowStep = Record<string, unknown>

PortalWorkflow​

A portal-facing projection of a workflow execution (V1 or V2), with the execution graph already linearized by the Workflows API into a flat, ordered list of portal-visible tasks.

type PortalWorkflow = {
id: string
definition_id?: string
name: string
status: "STARTED" | "DONE" | "CLOSED"
version: 2 | 3
created_at?: string
updated_at?: string
completed_at?: string
due_date?: string
assigned_to?: string[]
contexts?: Array<{
entity_id?: string
entity_schema?: string
is_primary?: boolean
}>
is_path_complete: boolean
tasks: Array<{
id: string
name: string
order: number
status: "COMPLETED" | "SKIPPED" | "IN_PROGRESS" | "PENDING"
is_active: boolean
start_date?: string // date-time
ecp?: {
enabled?: { ... }
label?: { ... }
description?: { ... }
journey?: { ... }
}
installer?: {
enabled?: { ... }
label?: { ... }
description?: { ... }
journey?: { ... }
}
journey?: {
id?: { ... }
journeyId?: { ... }
name?: { ... }
portal_button_label?: { ... }
complete_task_automatically?: { ... }
}
assigned_to?: string[]
phase_id?: string
phase_name?: string
stage_id?: string
completed_at?: string
updated_at?: string
}>
stages?: Array<{
id: string
name: string
description?: string
status: "COMPLETED" | "IN_PROGRESS" | "UPCOMING" | "NOT_REACHED"
completed_at?: string
portal_names?: {
ecp?: { ... }
installer?: { ... }
}
portal_descriptions?: {
ecp?: { ... }
installer?: { ... }
}
}>
portal_titles?: {
ecp?: string
installer?: string
}
}

PortalWorkflowStage​

A customer-facing stage of a flow execution, with a progress status derived from the execution's tasks by the Workflows API. Stages form a strict total order; the array order is the stage order.

type PortalWorkflowStage = {
id: string
name: string
description?: string
status: "COMPLETED" | "IN_PROGRESS" | "UPCOMING" | "NOT_REACHED"
completed_at?: string
portal_names?: {
ecp?: string
installer?: string
}
portal_descriptions?: {
ecp?: string
installer?: string
}
}

PortalNameOverrides​

Portal-facing overrides of a flow or stage title, configured per portal audience in the Flows Hub. Served unresolved because this endpoint asks the Workflows API for audience all — one cached response feeds blocks of both audiences, so each block picks its own override and falls back to name whe

type PortalNameOverrides = {
ecp?: string
installer?: string
}

PortalDescriptionOverrides​

Portal-facing overrides of a stage description, configured per portal audience in the Flows Hub. Served unresolved for the same reason as PortalNameOverrides; a block falls back to description when its audience's key is absent. The values are rich text, like description itself.

type PortalDescriptionOverrides = {
ecp?: string
installer?: string
}

PortalWorkflowTask​

A single portal-visible task of a linearized workflow execution

type PortalWorkflowTask = {
id: string
name: string
order: number
status: "COMPLETED" | "SKIPPED" | "IN_PROGRESS" | "PENDING"
is_active: boolean
start_date?: string // date-time
ecp?: {
enabled?: boolean
label?: string
description?: string
journey?: {
id?: { ... }
journeyId?: { ... }
name?: { ... }
portal_button_label?: { ... }
complete_task_automatically?: { ... }
}
}
installer?: {
enabled?: boolean
label?: string
description?: string
journey?: {
id?: { ... }
journeyId?: { ... }
name?: { ... }
portal_button_label?: { ... }
complete_task_automatically?: { ... }
}
}
journey?: {
id?: string
journeyId?: string
name?: string
portal_button_label?: string
complete_task_automatically?: boolean
}
assigned_to?: string[]
phase_id?: string
phase_name?: string
stage_id?: string
completed_at?: string
updated_at?: string
}

EntityPortalWorkflows​

Linearized portal workflows of a single entity

type EntityPortalWorkflows = {
entity_id: string
portal_workflows: Array<{
id: string
definition_id?: string
name: string
status: "STARTED" | "DONE" | "CLOSED"
version: 2 | 3
created_at?: string
updated_at?: string
completed_at?: string
due_date?: string
assigned_to?: string[]
contexts?: Array<{
entity_id?: { ... }
entity_schema?: { ... }
is_primary?: { ... }
}>
is_path_complete: boolean
tasks: Array<{
id: { ... }
name: { ... }
order: { ... }
status: { ... }
is_active: { ... }
start_date?: { ... }
ecp?: { ... }
installer?: { ... }
journey?: { ... }
assigned_to?: { ... }
phase_id?: { ... }
phase_name?: { ... }
stage_id?: { ... }
completed_at?: { ... }
updated_at?: { ... }
}>
stages?: Array<{
id: { ... }
name: { ... }
description?: { ... }
status: { ... }
completed_at?: { ... }
portal_names?: { ... }
portal_descriptions?: { ... }
}>
portal_titles?: {
ecp?: { ... }
installer?: { ... }
}
}>
}

PortalTaskConfig​

Portal-specific (ECP / installer) display config of a workflow task

type PortalTaskConfig = {
enabled?: boolean
label?: string
description?: string
journey?: {
id?: string
journeyId?: string
name?: string
portal_button_label?: string
complete_task_automatically?: boolean
}
}

BaseBillingEvent​

A base billing event to be inherited by all billing events.

type BaseBillingEvent = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
}

InstallmentEvent​

An entity that describes an installment billing event.

type InstallmentEvent = {
billing_amount?: number
billing_amount_decimal?: string
billing_currency?: string
external_id?: string
contract: {
$relation?: Array<{
entity_id?: { ... }
}>
}
type: "installment"
due_date: string // date
paid_date?: string // date
}

ReimbursementEvent​

An entity that describes a reimbursement billing event.

type ReimbursementEvent = {
billing_amount?: number
billing_amount_decimal?: string
billing_currency?: string
external_id?: string
contract: {
$relation?: Array<{
entity_id?: { ... }
}>
}
type: "reimbursement"
due_date?: string // date
paid_date?: string // date
}

BillingEvent​

An entity that describes a billing event such as a future installment or a reimbursement back to the customer.

type BillingEvent = {
billing_amount?: number
billing_amount_decimal?: string
billing_currency?: string
external_id?: string
contract: {
$relation?: Array<{
entity_id?: { ... }
}>
}
type: "installment"
due_date: string // date
paid_date?: string // date
} | {
billing_amount?: number
billing_amount_decimal?: string
billing_currency?: string
external_id?: string
contract: {
$relation?: Array<{
entity_id?: { ... }
}>
}
type: "reimbursement"
due_date?: string // date
paid_date?: string // date
}

BillingAccount​

A billing account

type BillingAccount = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
templates_output_highlighted?: Record<string, string | Record<string, string>>
search_snippets?: Array<{
field?: string
fragment?: string
}>
}

Balance​

type Balance = {
balance?: number
balance_decimal?: number
balance_currency?: string
}

Currency​

Currency code in ISO 4217 format

type Currency = string

EntityGetParams​

type EntityGetParams = {
slug: string
entity_id?: string // uuid
hydrate?: boolean
fields?: string[]
templates?: Record<string, string | Record<string, string>>
templates_ref?: {
page_id?: string
block_id?: string
config_id?: string
global_search_config_id?: string
}
filters?: object[]
filters_context?: Record<string, boolean | string>[]
targets?: string // uuid[]
}

EntitySearchParams​

type EntitySearchParams = {
slug: string | string[] | Array<{
slug: string
targets?: string // uuid[]
match_any_targets?: string // uuid[]
templates?: Record<string, string>
templates_ref?: {
page_id?: { ... }
block_id?: { ... }
config_id?: { ... }
global_search_config_id?: { ... }
}
}>
q?: string
q_fields?: string[]
group?: string
group_title?: string
group_size?: number
group_sort?: "asc" | "desc"
group_after_key?: Record<string, string | number>
sort?: string | string[]
from?: number
size?: number
hydrate?: boolean
fields?: string[]
templates?: Record<string, string>
templates_ref?: {
page_id?: string
block_id?: string
config_id?: string
global_search_config_id?: string
}
filters?: object[]
filters_context?: Record<string, boolean | string>[]
targets?: string // uuid[]
match_any_targets?: string // uuid[]
include?: "active_workflow"[]
highlight?: object
}

IdentifierAttribute​

type IdentifierAttribute = {
label?: string
name?: string
type?: string
}

RegistrationIdentifier​

type RegistrationIdentifier = {
name?: string
schema?: string
validation_rule_id?: string
}

AdditionalContactAttribute​

A contact attribute that is collected from the user during self-registration and written onto the newly created contact, but is NOT used to identify an existing contact.

type AdditionalContactAttribute = {
name: string
required?: boolean
validation_rule_id?: string
}

ContractIdentifier​

type ContractIdentifier = {
name?: string
schema?: string
validation_rule_id?: string
}

RegistrationValidationRule​

A validation rule of the organization, as embedded in the public portal config.

type RegistrationValidationRule = {
_id: string
_schema_version: string
title: string
rule: Record<string, unknown>
}

AcceptanceDecision​

type AcceptanceDecision = {
decision: "accept" | "decline"
}

TriggerPortalFlow​

type TriggerPortalFlow = {
activity_id?: string
ecp_config?: {
file_config?: {
shared_with_end_customer?: { ... }
_tags?: { ... }
}
}
}

ExtensionConfig​

type ExtensionConfig = {
id: string
status: "installed" | "enabled"
options?: Record<string, string>
}

ExtensionHookSelection​

type ExtensionHookSelection = {
app_id: string
extension_id: string
hook_id: string
}

PublicExtensionCapabilities​

type PublicExtensionCapabilities = {
consumptionDataRetrieval?: Array<{
app?: {
app_id?: { ... }
name?: { ... }
}
extension?: {
id?: { ... }
name?: { ... }
}
hook?: {
id?: { ... }
name?: { ... }
intervals?: { ... }
block_types?: { ... }
}
}>
dataExport?: Array<{
app?: {
app_id?: { ... }
name?: { ... }
}
extension?: {
id?: { ... }
name?: { ... }
}
hook?: {
id?: { ... }
name?: { ... }
intervals?: { ... }
block_types?: { ... }
}
}>
priceDataRetrieval?: Array<{
app?: {
app_id?: { ... }
name?: { ... }
}
extension?: {
id?: { ... }
name?: { ... }
}
hook?: {
id?: { ... }
name?: { ... }
intervals?: { ... }
block_types?: { ... }
}
}>
costDataRetrieval?: Array<{
app?: {
app_id?: { ... }
name?: { ... }
}
extension?: {
id?: { ... }
name?: { ... }
}
hook?: {
id?: { ... }
name?: { ... }
intervals?: { ... }
block_types?: { ... }
}
}>
contractIdentification?: {
app?: {
app_id?: { ... }
name?: { ... }
}
extension?: {
id?: { ... }
name?: { ... }
}
hook?: {
explanation?: { ... }
}
}
meterReadingPlausibilityCheck?: {
extension?: {
id?: { ... }
name?: { ... }
}
hook?: {
plausibility_mode?: { ... }
}
}
changeEmail?: {
app?: {
app_id?: { ... }
name?: { ... }
}
extension?: {
id?: { ... }
name?: { ... }
}
hook?: {
id?: { ... }
change_mode?: { ... }
require_password_confirmation?: { ... }
// ...
}

PublicSelfManagementExplanation​

Explanation of the hook.

type PublicSelfManagementExplanation = {
en: string
}

PublicChangeEmailDetails​

type PublicChangeEmailDetails = {
id?: string
change_mode?: "synchronous" | "asynchronous"
require_password_confirmation?: boolean
explanation?: {
en: string
}
}

PublicChangePasswordDetails​

type PublicChangePasswordDetails = {
id?: string
require_new_password?: boolean
explanation?: {
en: string
}
}

PublicDeleteAccountDetails​

type PublicDeleteAccountDetails = {
id?: string
explanation?: {
en: string
}
}

DataRetrievalItem​

type DataRetrievalItem = {
app?: {
app_id?: string
name?: {
en: { ... }
}
}
extension?: {
id?: string
name?: {
en: { ... }
}
}
hook?: {
id?: string
name?: {
en: { ... }
}
intervals?: string[]
block_types?: string[]
}
}

PublicAppDetails​

type PublicAppDetails = {
app_id?: string
name?: {
en: string
}
}

PublicExtensionDetails​

type PublicExtensionDetails = {
id?: string
name?: {
en: string
}
}

PublicDataRetrievalHookDetails​

type PublicDataRetrievalHookDetails = {
id?: string
name?: {
en: string
}
intervals?: string[]
block_types?: string[]
}

VisualizationMetadata​

Runtime metadata describing how a visualization should be rendered for a given portal context. Returned by GET /v2/portal/visualization/metadata.

type VisualizationMetadata = {
type_options?: Array<{
id: string
label?: Record<string, string>
aggregation_group?: string
statistical_method?: "sum" | "average" | "min" | "max"
unit?: string
color?: "primary" | "slate" | "mauve" | "orange" | "red" | "tomato" | "amber" | "green" | "blue"
precision?: number
}>
intervals?: "PT15M" | "PT1H" | "P1D" | "P1M" | "P1Y" | "custom"[]
data_range?: {
from?: string // date-time
to?: string // date-time
}
}

VisualizationTypeOption​

type VisualizationTypeOption = {
id: string
label?: Record<string, string>
aggregation_group?: string
statistical_method?: "sum" | "average" | "min" | "max"
unit?: string
color?: "primary" | "slate" | "mauve" | "orange" | "red" | "tomato" | "amber" | "green" | "blue"
precision?: number
}

VisualizationDataRange​

Earliest / latest timestamps for which data is available in the current context.

type VisualizationDataRange = {
from?: string // date-time
to?: string // date-time
}

PublicContractIdentificationDetails​

type PublicContractIdentificationDetails = {
explanation?: {
en: string
}
}

PublicMeterReadingPlausibilityCheckDetails​

type PublicMeterReadingPlausibilityCheckDetails = {
plausibility_mode?: "check" | "range"
}

Extension​

type Extension = {
id: string
app_id?: string
app_name?: string
name: {
en: string
}
description?: {
en: string
}
version?: string
options?: Array<{
id: string
name: {
en: { ... }
}
type: "text" | "secret"
description?: {
en: { ... }
}
default?: string
required?: boolean
}>
links?: Array<{
id: string
name: {
en: { ... }
}
description?: {
en: { ... }
}
type: "seamless"
condition?: string
auth?: {
method?: { ... }
url: { ... }
params?: { ... }
headers?: { ... }
body?: { ... }
cache?: { ... }
}
redirect: {
url?: { ... }
params?: { ... }
}
}>
hooks?: Array<{
id?: string
}>
}
type ExtensionSeamlessLink = {
id: string
name: {
en: string
}
description?: {
en: string
}
type: "seamless"
condition?: string
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
redirect: {
url?: string
params?: Record<string, string>
}
}

ExtensionHook​

type ExtensionHook = {
id?: string
}

ExtensionHookRegistrationIdentifiersCheck​

Hook that replaces the built-in registration identifiers check. This hook makes a POST call whenever a user is trying to register to find the corresponding contact. The expected response to the call is:

  • 200 with contact id if exactly one contact is found
  • 404 if no contact is found or more th
type ExtensionHookRegistrationIdentifiersCheck = {
type: "registrationIdentifiersCheck"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
result?: string
}
resolved?: {
result?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookContractIdentification​

Hook that replaces the built-in Contract identification for self-assignment. This hook involves an HTTP request whenever a user is trying to self-assign Contract(s). The expected response http status code to the call is:

  • 200 if found
  • 404 if not found

The following assignment modes are suppo

type ExtensionHookContractIdentification = {
type: "contractIdentification"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
result?: string
}
resolved?: {
result?: string
error_message_path?: string
}
assignment_mode?: "contracts" | "contact_to_contracts" | "contact_to_portal_user"
contact_relation_attribute?: string
explanation?: {
en: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookMeterReadingPlausibilityCheck​

Hook that checks the plausibility of meter readings before they are saved. This hook makes a POST call whenever a user is trying to save a meter reading. The expected response to the call is:

  • 200: If meter reading is plausible, the response should contain:
    • valid: true If meter re
type ExtensionHookMeterReadingPlausibilityCheck = {
type: "meterReadingPlausibilityCheck"
plausibility_mode?: "check" | "range"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
url: string
body: Record<string, string>
headers: Record<string, string>
}
resolved: {
data_path?: string
dataPath?: string
counter_identifiers?: string | Record<string, string>
valid?: string
upper_limit?: string
lower_limit?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookPriceDataRetrieval​

Hook that will allow using the specified source as data for price visualizations. This hook is triggered to fetch the data. Format of the request and response has to follow the following specification: TBD. The expected response to the call is:

  • 200 with the time series data
type ExtensionHookPriceDataRetrieval = {
type: "priceDataRetrieval"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
}
resolved?: {
data_path?: string
dataPath?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookConsumptionDataRetrieval​

Hook that will allow using the specified source as data for consumption visualizations. This hook is triggered to fetch the data. Format of the request and response has to follow the following specification: TBD. The expected response to the call is:

  • 200 with the time series data
type ExtensionHookConsumptionDataRetrieval = {
type: "consumptionDataRetrieval"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
}
resolved?: {
data_path?: string
dataPath?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookDataExport​

Generic data export hook. When configured on a visualization block, the portal delegates the export action (e.g. CSV/Excel/PDF download) to the configured external source instead of generating the file itself. Can be used by any block that supports export — consumption charts, dynamic tariff charts,

type ExtensionHookDataExport = {
type: "dataExport"
block_types?: string[]
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
}
resolved?: {
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookVisualizationMetadata​

Hook that returns runtime metadata describing how a visualization should be rendered for a given portal context. Invoked by the portal before fetching data, with the same context the data hook receives.

type ExtensionHookVisualizationMetadata = {
type: "visualizationMetadata"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
}
resolved?: {
data_path?: string
dataPath?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookCostDataRetrieval​

Hook that will allow using the specified source as data for consumption visualizations. This hook is triggered to fetch the data. Format of the request and response has to follow the following specification: TBD. The expected response to the call is:

  • 200 with the time series data
type ExtensionHookCostDataRetrieval = {
type: "costDataRetrieval"
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
}
resolved?: {
data_path?: string
dataPath?: string
error_message_path?: string
}
use_static_ips?: boolean
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookChangeEmail​

Hook that replaces the built-in change email functionality for portal users. When configured, the portal does not run its own change email flow. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the email change. The change_mode controls what the portal d

type ExtensionHookChangeEmail = {
type: "changeEmail"
change_mode?: "synchronous" | "asynchronous"
require_password_confirmation?: boolean
explanation?: {
en: string
}
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
}
resolved?: {
error_message_path?: string
}
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookChangePassword​

Hook that replaces the built-in change password functionality for portal users. When configured, the portal does not change the user's password itself. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the password change (most likely by sending the user in

type ExtensionHookChangePassword = {
type: "changePassword"
require_new_password?: boolean
explanation?: {
en: string
}
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
}
resolved?: {
error_message_path?: string
}
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

ExtensionHookDeleteAccount​

Hook that replaces the built-in delete account functionality for portal users. When configured, the portal does not delete the user itself. Instead, this hook makes an HTTP call to the third-party system, which is expected to handle the deletion. The deletion_mode controls what the portal does aft

type ExtensionHookDeleteAccount = {
type: "deleteAccount"
deletion_mode?: "synchronous" | "asynchronous"
delete_contact?: "none" | "soft" | "hard"
explanation?: {
en: string
}
auth?: {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: { ... }
ttl: { ... }
}
}
call: {
method?: string
url: string
params?: Record<string, string>
headers: Record<string, string>
body?: object
}
resolved?: {
error_message_path?: string
}
secure_proxy?: {
integration_id: string // uuid
use_case_slug: string
}
}

SecureProxyConfig​

Configuration for routing requests through the ERP Integration secure proxy. Mutually exclusive with use_static_ips.

type SecureProxyConfig = {
integration_id: string // uuid
use_case_slug: string
}

ExtensionAuthBlock​

type ExtensionAuthBlock = {
method?: string
url: string
params?: Record<string, string>
headers?: Record<string, string>
body?: Record<string, string>
cache?: {
key: string
ttl: string
}
}

Direction​

type Direction = "feed-in" | "feed-out"

TariffType​

type TariffType = "ht" | "nt"

Source​

type Source = "ECP" | "ERP" | "360" | "journey-submission"

Reason​

The reason for recording the reading If no reason is specified or left empty, the Epilot UI will show 'Regular' as the default display text

type Reason = "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"

ReadBy​

The person who recorded the reading

type ReadBy = string

ReadingStatus​

type ReadingStatus = "valid" | "in-validation" | "implausible" | null | ""

MeterReading​

type MeterReading = {
value: number
read_by?: string
reason?: "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"
meter_id: string // uuid
counter_id?: string // uuid
direction?: "feed-in" | "feed-out"
timestamp?: string
source: "ECP" | "ERP" | "360" | "journey-submission"
status?: "valid" | "in-validation" | "implausible" | null | ""
external_id?: string
remark?: string
metadata?: Record<string, string>
}

PortalMeterReading​

A meter reading submitted by a portal user for a counter of the meter in the path.

type PortalMeterReading = {
value: number
counter_id: string // uuid
direction?: "feed-in" | "feed-out"
timestamp?: string
read_by?: string
reason?: "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"
source?: "ECP" | "ERP" | "360" | "journey-submission"
status?: "valid" | "in-validation" | "implausible" | null | ""
remark?: string
metadata?: Record<string, string>
}

MeterCounter​

A counter (measurement channel) of a meter

type MeterCounter = {
_id: string // uuid
_title: string
_org: string
_tags?: string[]
_created_at: string // date-time
_updated_at: string // date-time
_schema: "meter_counter"
obis_number?: string
direction?: "feed-in" | "feed-out"
transformer_ratio?: number
unit?: string
forecast_reading_value?: string
forecast_as_of?: string
current_consumption?: number
last_reading?: string
conversion_factor?: number
tariff_type?: "ht" | "nt"
}

MeterReadingPhoto​

type MeterReadingPhoto = {
filename: string
mime_type: string
contents: string
meter_id: string // uuid
}

MeterReadingPhotoData​

type MeterReadingPhotoData = {
filename: string
s3ref: {
bucket: string
key: string
}
reading?: string
sector?: string
meter_numbers?: string[]
file_id?: string
}

SSOLoginToken​

type SSOLoginToken = string

ProviderSlug​

URL-friendly slug to use as organization-unique identifier for Provider

type ProviderSlug = string

ProviderDisplayName​

Human-readable display name for identity provider shown in login

type ProviderDisplayName = string

ProviderConfig​

SSO identity provider configuration.

Env var interpolation: only string fields under oidc_config and mobile_oidc_config (incl. their nested metadata) are passed through Liquid templating, so they may contain {{ env.VAR }} placeholders that get resolved at runtime against the organization's

type ProviderConfig = {
slug?: string
display_name: string
provider_type: "OIDC"
attribute_mappings?: {
contact: {
email: { ... }
first_name?: { ... }
last_name?: { ... }
phone?: { ... }
preferred_language?: { ... }
concession?: { ... }
installer_number?: { ... }
}
account?: {
name?: { ... }
street?: { ... }
house_number?: { ... }
postal_code?: { ... }
city?: { ... }
}
portal_user?: {
access_status?: { ... }
expires_at?: { ... }
}
concession_attributes?: {
water?: { ... }
energy?: { ... }
gas?: { ... }
}
}
entity_matching?: {
portal_user?: Record<string, string>
contact?: Record<string, string>
auto_create_cognito_user?: boolean
}
oidc_config?: {
type?: "authorization_code" | "implicit"
oidc_issuer: string
redirect_uri?: string
client_id: string
client_secret?: string
has_client_secret?: boolean
scope: string
metadata?: {
response_modes_supported?: { ... }
authorization_endpoint?: { ... }
token_endpoint?: { ... }
userinfo_endpoint?: { ... }
logout_uri?: { ... }
logout_redirect_uri?: { ... }
skip_login_as_logout?: { ... }
mobile_redirect_uri?: { ... }
test_auth_username?: { ... }
test_auth_password?: { ... }
}
prompt?: "login" | "select_account" | "consent" | "signup"
}
mobile_oidc_config?: {
client_id?: string
client_secret?: string
}
expose_client_secret?: boolean
debug_mode_until?: string // date-time
}

ProviderPublicConfig​

type ProviderPublicConfig = {
slug: string
display_name: string
oidc_config?: {
type?: "authorization_code" | "implicit"
oidc_issuer: string
redirect_uri?: string
client_id: string
client_secret?: string
has_client_secret?: boolean
scope: string
metadata?: {
response_modes_supported?: { ... }
authorization_endpoint?: { ... }
token_endpoint?: { ... }
userinfo_endpoint?: { ... }
logout_uri?: { ... }
logout_redirect_uri?: { ... }
skip_login_as_logout?: { ... }
mobile_redirect_uri?: { ... }
test_auth_username?: { ... }
test_auth_password?: { ... }
}
prompt?: "login" | "select_account" | "consent" | "signup"
}
mobile_oidc_config?: {
client_id?: string
client_secret?: string
}
debug_mode?: boolean
}

ProviderPublicConfigV3​

Web-only public provider configuration served by getPublicSSOProviderV3. Unlike ProviderPublicConfig there is no mobile_oidc_config, and oidc_config never carries client_secret or the metadata.test_auth_* credentials — oidc_config.has_client_secret signals their presence so clients rou

type ProviderPublicConfigV3 = {
slug: string
display_name: string
oidc_config?: {
type?: "authorization_code" | "implicit"
oidc_issuer: string
redirect_uri?: string
client_id: string
client_secret?: string
has_client_secret?: boolean
scope: string
metadata?: {
response_modes_supported?: { ... }
authorization_endpoint?: { ... }
token_endpoint?: { ... }
userinfo_endpoint?: { ... }
logout_uri?: { ... }
logout_redirect_uri?: { ... }
skip_login_as_logout?: { ... }
mobile_redirect_uri?: { ... }
test_auth_username?: { ... }
test_auth_password?: { ... }
}
prompt?: "login" | "select_account" | "consent" | "signup"
}
debug_mode?: boolean
}

PublicIdentityProvider​

Minimal public identity provider info — enough to render a provider login button.

type PublicIdentityProvider = {
slug: string
display_name: string
}

AttributeMappingConfig​

Dictionary of epilot user attributes to claims

type AttributeMappingConfig = {
contact: {
email: string
first_name?: string
last_name?: string
phone?: string
preferred_language?: string
concession?: string
installer_number?: string
}
account?: {
name?: string
street?: string
house_number?: string
postal_code?: string
city?: string
}
portal_user?: {
access_status?: string
expires_at?: string
}
concession_attributes?: {
water?: string
energy?: string
gas?: string
}
}

EntityMatchingConfig​

Configuration for matching existing entities during SSO login using token claims

type EntityMatchingConfig = {
portal_user?: Record<string, string>
contact?: Record<string, string>
auto_create_cognito_user?: boolean
}

OIDCProviderConfig​

OIDC provider configuration. Values are resolved at SSO invocation time (login / callback), so the fields below may reference org env vars via mustache-like templates, e.g. {{ env.MY_PROVIDER_CLIENT_SECRET }}.

Fields used to render the SSO buttons up-front (ProviderConfig.slug, `ProviderConfig.

type OIDCProviderConfig = {
type?: "authorization_code" | "implicit"
oidc_issuer: string
redirect_uri?: string
client_id: string
client_secret?: string
has_client_secret?: boolean
scope: string
metadata?: {
response_modes_supported?: "form_post" | "fragment" | "query"[]
authorization_endpoint?: string
token_endpoint?: string
userinfo_endpoint?: string
logout_uri?: string
logout_redirect_uri?: string
skip_login_as_logout?: boolean
mobile_redirect_uri?: string
test_auth_username?: string
test_auth_password?: string
}
prompt?: "login" | "select_account" | "consent" | "signup"
}

MoblieOIDCConfig​

Mobile OIDC configuration. Values are resolved at SSO invocation time, so the fields below may reference org env vars via mustache-like templates, e.g. {{ env.MOBILE_CLIENT_SECRET }}.

type MoblieOIDCConfig = {
client_id?: string
client_secret?: string
}

OIDCProviderMetadata​

type OIDCProviderMetadata = {
response_modes_supported?: "form_post" | "fragment" | "query"[]
authorization_endpoint?: string
token_endpoint?: string
userinfo_endpoint?: string
logout_uri?: string
logout_redirect_uri?: string
skip_login_as_logout?: boolean
mobile_redirect_uri?: string
test_auth_username?: string
test_auth_password?: string
}

SAMLProviderConfig​

type SAMLProviderConfig = object

SSOCallbackRequest​

type SSOCallbackRequest = {
provider_slug?: string
token_endpoint: string
grant_type: string
code: string
redirect_uri?: string
client_id: string
code_verifier: string
}

SSOCallbackResponse​

type SSOCallbackResponse = {
access_token: string
token_type: string
expires_in: number
refresh_token: string
id_token?: string
scope?: string
}

BlockProps​

type BlockProps = {
visibility?: {
is_hidden?: boolean
hidden_on_mobile?: boolean
hidden_on_desktop?: boolean
hidden_in_app?: boolean
start_date?: string // date-time
end_date?: string // date-time
visible_for_targets?: string[]
visible_for_operator?: "and" | "or"
hidden_for_targets?: string[]
hidden_for_operator?: "and" | "or"
}
content?: Record<string, unknown>
design?: Record<string, unknown>
}

BlockType​

The type of the block. eg; tabs, tab, group, attribute

type BlockType = string

HeldBackNode​

A blueprint-managed page or block a write tried to change; the stored version was kept.

type HeldBackNode = {
page_id: string
block_id?: string
reason: "BLUEPRINT_MANAGED"
}

BlockRequest​

type BlockRequest = {
props?: {
visibility?: {
is_hidden?: { ... }
hidden_on_mobile?: { ... }
hidden_on_desktop?: { ... }
hidden_in_app?: { ... }
start_date?: { ... }
end_date?: { ... }
visible_for_targets?: { ... }
visible_for_operator?: { ... }
hidden_for_targets?: { ... }
hidden_for_operator?: { ... }
}
content?: Record<string, unknown>
design?: Record<string, unknown>
}
parentId?: string
type: string
order: number
}

BlockId​

The id of the block

type BlockId = string // uuid

Block​

type Block = {
props?: {
visibility?: {
is_hidden?: { ... }
hidden_on_mobile?: { ... }
hidden_on_desktop?: { ... }
hidden_in_app?: { ... }
start_date?: { ... }
end_date?: { ... }
visible_for_targets?: { ... }
visible_for_operator?: { ... }
hidden_for_targets?: { ... }
hidden_for_operator?: { ... }
}
content?: Record<string, unknown>
design?: Record<string, unknown>
}
parentId?: string
type: string
order: number
id?: string // uuid
_manifest?: string[]
_lineage_id?: string
_level?: string
}

PageRequest​

type PageRequest = {
slug: string
path?: string
schema?: string[]
visibility?: {
is_hidden?: boolean
hidden_in_app?: boolean
start_date?: string // date-time
end_date?: string // date-time
visible_for_targets?: string[]
visible_for_operator?: "and" | "or"
hidden_for_targets?: string[]
hidden_for_operator?: "and" | "or"
}
content?: Record<string, unknown>
design?: Record<string, unknown>
blocks?: Record<string, {
props?: {
visibility?: { ... }
content?: { ... }
design?: { ... }
}
parentId?: string
type: string
order: number
id?: string // uuid
_manifest?: string[]
_lineage_id?: string
_level?: string
}>
order: number
is_system?: boolean
is_detail?: boolean
detail_schema?: string
show_in_navigation?: boolean
is_public?: boolean
parentId?: string
is_entry_route?: boolean
is_deleted?: boolean
}

Page​

type Page = {
slug: string
path?: string
schema?: string[]
visibility?: {
is_hidden?: boolean
hidden_in_app?: boolean
start_date?: string // date-time
end_date?: string // date-time
visible_for_targets?: string[]
visible_for_operator?: "and" | "or"
hidden_for_targets?: string[]
hidden_for_operator?: "and" | "or"
}
content?: Record<string, unknown>
design?: Record<string, unknown>
blocks?: Record<string, {
props?: {
visibility?: { ... }
content?: { ... }
design?: { ... }
}
parentId?: string
type: string
order: number
id?: string // uuid
_manifest?: string[]
_lineage_id?: string
_level?: string
}>
order: number
is_system?: boolean
is_detail?: boolean
detail_schema?: string
show_in_navigation?: boolean
is_public?: boolean
parentId?: string
is_entry_route?: boolean
is_deleted?: boolean
id?: string // uuid
last_modified_at?: string // date-time
portal_id?: string
past_routes?: string[]
_manifest?: string[]
_lineage_id?: string
detached_lineage_ids?: string[]
}

PortalHeader​

Settings of the portal's header bar, stored once per portal.

type PortalHeader = {
design?: {
overrides?: {
components?: { ... }
elements?: { ... }
}
}
}

PortalHeaderDesignOverrides​

Design overrides scoped to the header bar. Only components.inputs and elements.icon_actions can be overridden; colours, shape and every other key are refused with a 400 on every write. null clears the overrides.

type PortalHeaderDesignOverrides = {
components?: {
inputs?: {
style?: { ... }
color?: { ... }
label_position?: { ... }
}
}
elements?: {
icon_actions?: {
variant?: { ... }
}
}
}

CommonConfigAttributesV3​

type CommonConfigAttributesV3 = {
mobile_config?: {
portal_id?: string
enabled?: boolean
display_name?: string
app_host?: string
environment?: "prod" | "staging" | "dev"
branding?: {
app_icon?: { ... }
splash?: { ... }
splash_dark?: { ... }
icon_background_color?: { ... }
splash_background_color?: { ... }
splash_background_color_dark?: { ... }
}
ios?: {
bundle_id?: { ... }
team_id?: { ... }
credentials_status?: { ... }
app_store_id?: { ... }
store_url?: { ... }
last_build?: { ... }
}
android?: {
package_name?: { ... }
credentials_status?: { ... }
upload_key_status?: { ... }
store_url?: { ... }
last_build?: { ... }
}
ota?: {
enabled?: { ... }
channel?: { ... }
auto_update?: { ... }
update_strategy?: { ... }
min_native_version?: { ... }
}
}
enabled?: boolean
name?: string
domain?: string
is_epilot_domain?: boolean
epilot_domain?: string
domain_settings?: {
is_custom_domain_enabled?: boolean
is_epilot_domain_enabled?: boolean
is_redirection_enabled?: boolean
}
design_id?: string // uuid
header?: {
design?: {
overrides?: { ... }
}
}
allowed_portal_entities?: string[]
self_registration_setting?: "ALLOW_WITH_CONTACT_CREATION" | "ALLOW_WITHOUT_CONTACT_CREATION" | "DENY" | "ALWAYS_CREATE_CONTACT" | "DISALLOW_COMPLETELY" | "BLOCK_IF_PORTAL_USER_EXISTS"
self_registration_account_setting?: "ALLOW_WITH_CREATION" | "DENY" | "ALWAYS_CREATE" | "BLOCK_IF_PORTAL_USER_EXISTS" | "DISALLOW_COMPLETELY"
block_registration_if_portal_user_exists?: boolean
self_registration_entity?: "contact" | "account"
user_account_self_management?: boolean
feature_settings?: {
start_page?: boolean
billing?: boolean
commodity_billing?: boolean
change_due_date?: boolean
new_design?: boolean
mcp_enabled?: boolean
mcp_grant_version?: number
portal_copilot?: boolean
portal_copilot_agent_id?: string
portal_copilot_visibility?: {
visible_for_targets?: { ... }
visible_for_operator?: { ... }
hidden_for_targets?: { ... }
hidden_for_operator?: { ... }
}
}
accessToken?: string
advanced_mfa?: {
enabled?: boolean
}
auth_settings?: {
passwordless_login?: {
enabled?: { ... }
}
passkeys?: {
enabled?: { ... }
}
entry_point?: "PASSWORD" | "SSO"
preferred_sso_providers?: string[]
auto_redirect_to_sso?: boolean
prevent_user_enumeration?: boolean
}
cognito_details?: {
cognito_user_pool_client_id?: string
cognito_mobile_client_id?: string
cognito_user_pool_arn?: string
cognito_user_pool_id?: string
timeouts?: {
refresh_token?: { ... }
// ...
}

PortalId​

ID of the portal

type PortalId = string

PortalDataExportColumn​

One column of the portal data export CSV.

type PortalDataExportColumn = {
key: string
header: Record<string, string>
source: {
path?: string[]
attribute: string
address_field?: "full" | "street" | "street_number" | "postal_code" | "city" | "additional_info" | "country"
}
formatter?: "text" | "date" | "money_cents" | "enum" | "address"
enum_labels?: Record<string, Record<string, string>>
}

UpsertPortalConfigV3​

type UpsertPortalConfigV3 = {
entity_actions?: Array<{
journey_id?: string // uuid
slug?: string
action_Label?: {
en?: { ... }
de?: { ... }
}
}>
extensions?: Array<{
id: string
status: "installed" | "enabled"
options?: Record<string, string>
}>
extension_hooks?: Record<string, {
app_id: string
extension_id: string
hook_id: string
}>
default_user_to_notify?: {
onPendingUser?: Array<{
type?: { ... }
user_id?: { ... }
display_name?: { ... }
image_uri?: { ... }
org_id?: { ... }
email?: { ... }
phone?: { ... }
}>
}
identity_providers?: Array<{
slug?: string
display_name: string
provider_type: "OIDC"
attribute_mappings?: {
contact: { ... }
account?: { ... }
portal_user?: { ... }
concession_attributes?: { ... }
}
entity_matching?: {
portal_user?: { ... }
contact?: { ... }
auto_create_cognito_user?: { ... }
}
oidc_config?: {
type?: { ... }
oidc_issuer: { ... }
redirect_uri?: { ... }
client_id: { ... }
client_secret?: { ... }
has_client_secret?: { ... }
scope: { ... }
metadata?: { ... }
prompt?: { ... }
}
mobile_oidc_config?: {
client_id?: { ... }
client_secret?: { ... }
}
expose_client_secret?: boolean
debug_mode_until?: string // date-time
}>
mobile_config?: {
portal_id?: string
enabled?: boolean
display_name?: string
app_host?: string
environment?: "prod" | "staging" | "dev"
branding?: {
app_icon?: { ... }
splash?: { ... }
splash_dark?: { ... }
icon_background_color?: { ... }
splash_background_color?: { ... }
splash_background_color_dark?: { ... }
}
ios?: {
bundle_id?: { ... }
team_id?: { ... }
credentials_status?: { ... }
app_store_id?: { ... }
store_url?: { ... }
last_build?: { ... }
}
android?: {
package_name?: { ... }
credentials_status?: { ... }
upload_key_status?: { ... }
store_url?: { ... }
last_build?: { ... }
}
ota?: {
enabled?: { ... }
channel?: { ... }
auto_update?: { ... }
update_strategy?: { ... }
min_native_version?: { ... }
}
}
// ...
}

PortalConfigV3​

type PortalConfigV3 = {
entity_actions?: Array<{
journey_id?: string // uuid
slug?: string
action_Label?: {
en?: { ... }
de?: { ... }
}
}>
extensions?: Array<{
id: string
status: "installed" | "enabled"
options?: Record<string, string>
}>
extension_hooks?: Record<string, {
app_id: string
extension_id: string
hook_id: string
}>
default_user_to_notify?: {
onPendingUser?: Array<{
type?: { ... }
user_id?: { ... }
display_name?: { ... }
image_uri?: { ... }
org_id?: { ... }
email?: { ... }
phone?: { ... }
}>
}
identity_providers?: Array<{
slug: string
display_name: string
oidc_config?: {
type?: { ... }
oidc_issuer: { ... }
redirect_uri?: { ... }
client_id: { ... }
client_secret?: { ... }
has_client_secret?: { ... }
scope: { ... }
metadata?: { ... }
prompt?: { ... }
}
mobile_oidc_config?: {
client_id?: { ... }
client_secret?: { ... }
}
debug_mode?: boolean
}>
mobile_config?: {
portal_id?: string
enabled?: boolean
display_name?: string
app_host?: string
environment?: "prod" | "staging" | "dev"
branding?: {
app_icon?: { ... }
splash?: { ... }
splash_dark?: { ... }
icon_background_color?: { ... }
splash_background_color?: { ... }
splash_background_color_dark?: { ... }
}
ios?: {
bundle_id?: { ... }
team_id?: { ... }
credentials_status?: { ... }
app_store_id?: { ... }
store_url?: { ... }
last_build?: { ... }
}
android?: {
package_name?: { ... }
credentials_status?: { ... }
upload_key_status?: { ... }
store_url?: { ... }
last_build?: { ... }
}
ota?: {
enabled?: { ... }
channel?: { ... }
auto_update?: { ... }
update_strategy?: { ... }
min_native_version?: { ... }
}
}
enabled?: boolean
name?: string
domain?: string
is_epilot_domain?: boolean
epilot_domain?: string
domain_settings?: {
is_custom_domain_enabled?: boolean
is_epilot_domain_enabled?: boolean
is_redirection_enabled?: boolean
}
design_id?: string // uuid
header?: {
design?: {
// ...
}

PortalFeatureSettings​

Feature settings for the portal

type PortalFeatureSettings = {
start_page?: boolean
billing?: boolean
commodity_billing?: boolean
change_due_date?: boolean
new_design?: boolean
mcp_enabled?: boolean
mcp_grant_version?: number
portal_copilot?: boolean
portal_copilot_agent_id?: string
portal_copilot_visibility?: {
visible_for_targets?: string[]
visible_for_operator?: "and" | "or"
hidden_for_targets?: string[]
hidden_for_operator?: "and" | "or"
}
}

PortalCopilotVisibility​

Limits portal chat to portal users matching targets, with the same rules as page and block visibility. Without targets every signed-in portal user can use the chat.

type PortalCopilotVisibility = {
visible_for_targets?: string[]
visible_for_operator?: "and" | "or"
hidden_for_targets?: string[]
hidden_for_operator?: "and" | "or"
}

PortalUsingDesign​

A portal whose design_id is the design asked about.

type PortalUsingDesign = {
portal_id: string
name?: string
origin?: string
design_id?: string
}

PortalConfigSummaryV3​

Lightweight view of a portal config for lists and pickers. Carries the identifying, display and registration fields only. Pages, email templates, grants, feature flags, identity providers and certificate details are left out; read them per portal with getPortalConfigV3.

type PortalConfigSummaryV3 = {
portal_id?: string
organization_id?: string
origin?: string
name?: string
enabled?: boolean
domain?: string
epilot_domain?: string
is_epilot_domain?: boolean
dnsStatus?: "CONFIGURING" | "PENDING" | "SUCCEED" | "EXPIRED" | "NEW_CERT_IN_PROGRESS"
design_id?: string // uuid
logo_image?: {
url?: string
dark_url?: string
}
default_user_to_notify?: {
onPendingUser?: Array<{
type?: { ... }
user_id?: { ... }
display_name?: { ... }
image_uri?: { ... }
org_id?: { ... }
email?: { ... }
phone?: { ... }
}>
}
feature_settings?: {
start_page?: boolean
billing?: boolean
commodity_billing?: boolean
change_due_date?: boolean
new_design?: boolean
mcp_enabled?: boolean
mcp_grant_version?: number
portal_copilot?: boolean
portal_copilot_agent_id?: string
portal_copilot_visibility?: {
visible_for_targets?: { ... }
visible_for_operator?: { ... }
hidden_for_targets?: { ... }
hidden_for_operator?: { ... }
}
}
self_registration_setting?: "ALLOW_WITH_CONTACT_CREATION" | "ALLOW_WITHOUT_CONTACT_CREATION" | "DENY" | "ALWAYS_CREATE_CONTACT" | "DISALLOW_COMPLETELY" | "BLOCK_IF_PORTAL_USER_EXISTS"
self_registration_account_setting?: "ALLOW_WITH_CREATION" | "DENY" | "ALWAYS_CREATE" | "BLOCK_IF_PORTAL_USER_EXISTS" | "DISALLOW_COMPLETELY"
block_registration_if_portal_user_exists?: boolean
self_registration_entity?: "contact" | "account"
user_account_self_management?: boolean
registration_identifiers?: Array<{
name?: string
schema?: string
validation_rule_id?: string
}>
surfaces?: Array<{
id: string
name: string
description?: string
authentication: "login" | "registration_identifiers"
token_ttl_seconds?: number
identifiers?: Array<{
name?: { ... }
schema?: { ... }
validation_rule_id?: { ... }
}>
data_access?: {
entities?: { ... }
role_id?: { ... }
}
}>
is_dummy?: boolean
is_v3_item?: boolean
published_revision_id?: string
_created_at?: string // date-time
_updated_at?: string // date-time
}

JuiceSettings​

type JuiceSettings = {
is_dummy?: boolean
is_canary?: boolean
is_legacy_design?: boolean
redirect_to?: string
title?: string
prevent_indexing?: boolean
organization_id?: string
design_id?: string
design?: {
background: {
light: { ... }
dark: { ... }
}
accent: {
light: { ... }
dark: { ... }
}
last_modified_at: string
}
}

RevisionPageRequest​

A page inside a revision snapshot. additionalProperties is true on purpose — a page carries fields this schema does not name and they must survive into the snapshot and back onto the live page when it is published.

type RevisionPageRequest = {
id: string // uuid
slug: string
order: number
blocks: Record<string, unknown>
}

PortalRevisionRequest​

type PortalRevisionRequest = {
entity_actions?: Array<{
journey_id?: string // uuid
slug?: string
action_Label?: {
en?: { ... }
de?: { ... }
}
}>
extensions?: Array<{
id: string
status: "installed" | "enabled"
options?: Record<string, string>
}>
extension_hooks?: Record<string, {
app_id: string
extension_id: string
hook_id: string
}>
default_user_to_notify?: {
onPendingUser?: Array<{
type?: { ... }
user_id?: { ... }
display_name?: { ... }
image_uri?: { ... }
org_id?: { ... }
email?: { ... }
phone?: { ... }
}>
}
identity_providers?: Array<{
slug?: string
display_name: string
provider_type: "OIDC"
attribute_mappings?: {
contact: { ... }
account?: { ... }
portal_user?: { ... }
concession_attributes?: { ... }
}
entity_matching?: {
portal_user?: { ... }
contact?: { ... }
auto_create_cognito_user?: { ... }
}
oidc_config?: {
type?: { ... }
oidc_issuer: { ... }
redirect_uri?: { ... }
client_id: { ... }
client_secret?: { ... }
has_client_secret?: { ... }
scope: { ... }
metadata?: { ... }
prompt?: { ... }
}
mobile_oidc_config?: {
client_id?: { ... }
client_secret?: { ... }
}
expose_client_secret?: boolean
debug_mode_until?: string // date-time
}>
mobile_config?: {
portal_id?: string
enabled?: boolean
display_name?: string
app_host?: string
environment?: "prod" | "staging" | "dev"
branding?: {
app_icon?: { ... }
splash?: { ... }
splash_dark?: { ... }
icon_background_color?: { ... }
splash_background_color?: { ... }
splash_background_color_dark?: { ... }
}
ios?: {
bundle_id?: { ... }
team_id?: { ... }
credentials_status?: { ... }
app_store_id?: { ... }
store_url?: { ... }
last_build?: { ... }
}
android?: {
package_name?: { ... }
credentials_status?: { ... }
upload_key_status?: { ... }
store_url?: { ... }
last_build?: { ... }
}
ota?: {
enabled?: { ... }
channel?: { ... }
auto_update?: { ... }
update_strategy?: { ... }
min_native_version?: { ... }
}
}
// ...
}

PublishRevisionRequest​

type PublishRevisionRequest = {
revision_id: string
name?: string
description?: string
force?: boolean
}

UpdatePortalRevisionRequest​

type UpdatePortalRevisionRequest = {
name: string
}

RevisionSource​

Where a revision came from, when it was not saved in the builder. Not part of the portal config. The builder renders it in the viewer's language for an unnamed revision.

type RevisionSource = {
type: "blueprint_sync"
blueprint_title?: string
}

PortalRevisionSummary​

type PortalRevisionSummary = {
revision_id: string
created_at: string // date-time
created_by?: string
name?: string
description?: string
source?: {
type: "blueprint_sync"
blueprint_title?: string
}
page_count: number
published_at?: string // date-time
published_by?: string
is_published: boolean
}

PortalRevisionList​

type PortalRevisionList = {
results: Array<{
revision_id: string
created_at: string // date-time
created_by?: string
name?: string
description?: string
source?: {
type: { ... }
blueprint_title?: { ... }
}
page_count: number
published_at?: string // date-time
published_by?: string
is_published: boolean
}>
next_cursor?: string
}

PortalRevisionCreated​

type PortalRevisionCreated = {
revision_id: string
created_at: string // date-time
created_by?: string
name?: string
description?: string
source?: {
type: "blueprint_sync"
blueprint_title?: string
}
page_count: number
published_at?: string // date-time
published_by?: string
is_published: boolean
identity_providers?: Array<{
slug?: string
display_name: string
provider_type: "OIDC"
attribute_mappings?: {
contact: { ... }
account?: { ... }
portal_user?: { ... }
concession_attributes?: { ... }
}
entity_matching?: {
portal_user?: { ... }
contact?: { ... }
auto_create_cognito_user?: { ... }
}
oidc_config?: {
type?: { ... }
oidc_issuer: { ... }
redirect_uri?: { ... }
client_id: { ... }
client_secret?: { ... }
has_client_secret?: { ... }
scope: { ... }
metadata?: { ... }
prompt?: { ... }
}
mobile_oidc_config?: {
client_id?: { ... }
client_secret?: { ... }
}
expose_client_secret?: boolean
debug_mode_until?: string // date-time
}>
published?: {
revision_id: string
published_at: string // date-time
published_by?: string
name?: string
post_publish_warnings: string[]
held_back?: Array<{
page_id: { ... }
block_id?: { ... }
reason: { ... }
}>
}
}

RevisionPage​

A page from a revision snapshot. Same shape as a live Page, without the server-managed fields (past_routes, _created_at, _updated_at, is_deleted), which publish re-derives from the live portal.

type RevisionPage = {
org_id?: string
}

PortalRevisionPreview​

type PortalRevisionPreview = {
preview_token: string
expires_at: string // date-time
url: string
}

PreviewRevision​

The revision a config response shows instead of the live portal config.

type PreviewRevision = {
revision_id: string
name?: string
created_at: string // date-time
}

PortalRevision​

type PortalRevision = {
revision_id: string
created_at: string // date-time
created_by?: string
name?: string
description?: string
source?: {
type: "blueprint_sync"
blueprint_title?: string
}
page_count: number
published_at?: string // date-time
published_by?: string
is_published: boolean
config: Record<string, unknown>
pages: Array<{
org_id?: string
}>
identity_providers?: Array<{
slug?: string
display_name: string
provider_type: "OIDC"
attribute_mappings?: {
contact: { ... }
account?: { ... }
portal_user?: { ... }
concession_attributes?: { ... }
}
entity_matching?: {
portal_user?: { ... }
contact?: { ... }
auto_create_cognito_user?: { ... }
}
oidc_config?: {
type?: { ... }
oidc_issuer: { ... }
redirect_uri?: { ... }
client_id: { ... }
client_secret?: { ... }
has_client_secret?: { ... }
scope: { ... }
metadata?: { ... }
prompt?: { ... }
}
mobile_oidc_config?: {
client_id?: { ... }
client_secret?: { ... }
}
expose_client_secret?: boolean
debug_mode_until?: string // date-time
}>
email_templates?: {
confirmAccount?: string // uuid
advancedAuth?: string // uuid
advancedMFA?: string // uuid
journeySignUp?: string // uuid
journeySignInOneTimePassword?: string // uuid
passkeyVerificationCode?: string // uuid
journeyLoginOTP?: string // uuid
forgotPassword?: string // uuid
invitation?: string // uuid
partnerInvitation?: string // uuid
onNewQuote?: string // uuid
onMapAPendingUser?: string // uuid
onDocUpload?: string // uuid
onWorkflowStepAssigned?: string // uuid
confirmEmailUpdate?: string // uuid
verifyCodeToSetPassword?: string // uuid
}
email_template_settings?: Record<string, unknown>
}

PublishResult​

type PublishResult = {
revision_id: string
published_at: string // date-time
published_by?: string
name?: string
post_publish_warnings: string[]
held_back?: Array<{
page_id: string
block_id?: string
reason: "BLUEPRINT_MANAGED"
}>
}

SwappableConfig​

Optional configuration item that a portal swap can additionally include. The swap always transfers the pages and the functional experience config that keep the portal working. These items are opt-in on top of that and are OFF by default. Domain and access/security settings (domain, cognito_details,

type SwappableConfig = "email_templates" | "portal_references"

SwapPortalReferencesResult​

Outcome of the portal_references swap option. Only present when that option was requested. The swap itself has already succeeded when this is returned, so failures here do not undo it.

type SwapPortalReferencesResult = {
journeys: {
updated: Array<{
id: { ... }
name?: { ... }
paths?: { ... }
error?: { ... }
}>
failed: Array<{
id: { ... }
name?: { ... }
paths?: { ... }
error?: { ... }
}>
list_error?: string
}
automation_flows: {
updated: Array<{
id: { ... }
name?: { ... }
paths?: { ... }
error?: { ... }
}>
failed: Array<{
id: { ... }
name?: { ... }
paths?: { ... }
error?: { ... }
}>
list_error?: string
}
}

SwapPortalReferenceGroup​

type SwapPortalReferenceGroup = {
updated: Array<{
id: string
name?: string
paths?: string[]
error?: string
}>
failed: Array<{
id: string
name?: string
paths?: string[]
error?: string
}>
list_error?: string
}

SwapPortalReferenceItem​

type SwapPortalReferenceItem = {
id: string
name?: string
paths?: string[]
error?: string
}

PortalUserRegistrationStatus​

type PortalUserRegistrationStatus = "Registration Pending" | "Confirmation Email Sent" | "Registered" | "Email Update In Progress"

BusinessPartnerItem​

type BusinessPartnerItem = {
_id?: string // uuid
has_portal_user?: boolean
registration_status?: "Registration Pending" | "Confirmation Email Sent" | "Registered" | "Email Update In Progress"
email?: string
_title?: string
first_name?: string
last_name?: string
access_status?: boolean
}

SupportReportType​

type SupportReportType = "bug" | "feedback"

SupportRequestAttachment​

type SupportRequestAttachment = {
filename: string
mime_type: string
contents: string
}

CleverPvContext​

type CleverPvContext = {
screen?: string
version?: string
connection_state?: string
locale?: string
timezone?: string
firmware_version?: string
build?: string
trace_id?: string
device?: Record<string, unknown>
vendor?: {
id?: string
name?: string
}
}

CreateSupportRequest​

type CreateSupportRequest = {
report_type: "bug" | "feedback"
description: string
submission_id: string
site_id?: string // uuid
device_id?: string // uuid
clever_pv?: {
screen?: string
version?: string
connection_state?: string
locale?: string
timezone?: string
firmware_version?: string
build?: string
trace_id?: string
device?: Record<string, unknown>
vendor?: {
id?: { ... }
name?: { ... }
}
}
attachments?: Array<{
filename: string
mime_type: string
contents: string
}>
}

SupportRequestResult​

type SupportRequestResult = {
reference: string
status: string
}