# DMARC Handling: Advanced Options Source: https://developers.entri.com/advanced-dmarc-options Advanced DMARC handling via advancedDmarcOptions — tag overrides, removals, inheritance, and conditional additions. The new `advancedDmarcOptions` feature allows you to configure your DMARC records with greater flexibility and precision. It supports tag overrides, tag removal, inheritance from root domain records, and adding missing tags. This feature ensures better management of DMARC configurations, allowing complex updates in a single request. ### Pre-existing DMARC Record Validation When configuring DMARC records, it's important to ensure that the `value` field accurately reflects the desired final DMARC configuration. If the existing DMARC record is invalid, overrides cannot be applied effectively. For example, if a DMARC record is missing a required policy (`p` tag) and the user attempts to update the `rua` tag, the system will not be able to modify the invalid record. In such cases, the `value` provided in the request will be used as-is. ### Feature Overview The `advancedDmarcOptions` object can be included in your DMARC record configuration. This object supports the following keys: * `inheritRootDmarc`: Inherit the DMARC settings from the root domain for subdomains. * `overrideTags`: Override specific tags in the existing DMARC record or add them if they do not exist. * `removeTags`: Remove specific tags from the DMARC record. * `addTagsIfNotExist`: Add tags to the DMARC record only if they are not already present, ensuring certain tags are included without overriding existing values. ### Example Payload Here’s an example of a DMARC record using `advancedDmarcOptions`: ```json theme={"system"} { "type": "TXT", "host": "whatever_host", "value": "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com", "ttl": 300, "advancedDmarcOptions": { "inheritRootDmarc": true, "overrideTags": { "p": "none", "rua": "mailto:dmarc-reports@example.com", "sp": "reject" }, "removeTags": ["pct"], "addTagsIfNotExist": { "rua": "mailto:dmarc_agg@vali.email" } } } ``` ### Key Features * **Root DMARC Inheritance**: Allows subdomains to inherit DMARC policies from the root domain when `inheritRootDmarc` is set to `true`. * **Override DMARC Tags**: Use the `overrideTags` object to modify existing DMARC tags. For example, change the policy from `none` to `quarantine` or update reporting email addresses. * **Remove DMARC Tags**: Use `removeTags` to remove unwanted tags such as `pct` (percentage). * **Add Tags If They Don’t Exist**: The `addTagsIfNotExist` key ensures that specific tags are added only if they are missing from the DMARC record. ### Example Use Cases 1. **Overriding Existing Tags** * **Scenario**: Change the DMARC policy for a domain from `none` to `quarantine`. * **Before**: `v=DMARC1; p=none; rua=mailto:reports@example.com` * **After**: `v=DMARC1; p=quarantine; rua=mailto:reports@example.com` **Payload**: ```json theme={"system"} { "domain": "example.com", "dnsRecords": [ { "type": "TXT", "host": "_dmarc", "value": "v=DMARC1; p=none; rua=mailto:reports@example.com", "ttl": 3600, "advancedDmarcOptions": { "overrideTags": { "p": "quarantine" } } } ] } ``` 2. **Adding New Tags** * **Scenario**: Add a `pct=50` tag to an existing DMARC record. * **Before**: `v=DMARC1; p=reject; rua=mailto:reports@example.com` * **After**: `v=DMARC1; p=reject; pct=50; rua=mailto:reports@example.com` **Payload**: ```json theme={"system"} { "domain": "example.com", "dnsRecords": [ { "type": "TXT", "host": "_dmarc", "value": "v=DMARC1; p=reject; rua=mailto:reports@example.com", "ttl": 3600, "advancedDmarcOptions": { "addTagsIfNotExist": { "pct": "50" } } } ] } ``` 3. **Removing Tags** * **Scenario**: Remove the `rua` (aggregate report) tag. * **Before**: `v=DMARC1; p=quarantine; ruf=mailto: forensic@example.com rua=mailto:reports@example.com` * **After**: `v=DMARC1; p=quarantine; ruf=mailto:forensic@example.com` **Payload**: ```json theme={"system"} { "domain": "example.com", "dnsRecords": [ { "type": "TXT", "host": "_dmarc", "value": "v=DMARC1; p=quarantine; rua=mailto:reports@example.com", "ttl": 3600, "advancedDmarcOptions": { "removeTags": ["rua"] } } ] } ``` 4. **Inheriting Root Domain Policy** * **Scenario**: Apply the DMARC policy from a root domain to a subdomain. * **Before**: Subdomain has no DMARC policy. * **After**: Subdomain inherits the root domain’s policy. **Payload**: ```json theme={"system"} { "domain": "sub.example.com", "dnsRecords": [ { "type": "TXT", "host": "_dmarc", "value": "v=DMARC1; p=none", "ttl": 3600, "advancedDmarcOptions": { "inheritRootDmarc": true } } ] } ``` 5. **Add Tag Only if Not present** * **Scenario**: Ensure that a domain has a specific DMARC tag set up, but only if it doesn't already have one set. This example uses the `rua` tag, but the approach works for any DMARC tag. * **Before (Case 1)**: `v=DMARC1; p=none;` * **After (Case 1)**: `v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com` * **Before (Case 2)**: `v=DMARC1; p=none; rua=mailto:existing-reports@example.com` * **After (Case 2)**: `v=DMARC1; p=none; rua=mailto:existing-reports@example.com` (unchanged) **Payload**: ```json theme={"system"} { "domain": "example.com", "dnsRecords": [ { "type": "TXT", "host": "_dmarc", "value": "v=DMARC1; p=none;", "ttl": 3600, "advancedDmarcOptions": { "addTagsIfNotExist": { "rua": "mailto:dmarc-reports@example.com" } } } ] } ``` 6. **Complex Configuration** * **Scenario**: Multiple changes including policy update, email change, and tag addition. * **Before**: `v=DMARC1; p=none; pct=100; adkim=s; rua=mailto:old@example.com` * **After**: `v=DMARC1; p=quarantine; pct=100; aspf=s; rua=mailto:new@example.com` **Payload**: ```json theme={"system"} { "domain": "example.com", "dnsRecords": [ { "type": "TXT", "host": "_dmarc", "value": "v=DMARC1; p=none; pct=100; rua=mailto:old@example.com", "ttl": 3600, "advancedDmarcOptions": { "overrideTags": { "p": "quarantine", "rua": "mailto:new@example.com" }, "addTagsIfNotExist": { "aspf": "s" }, "removeTags": ["adkim"] } } ] } ``` # Brand Protection Source: https://developers.entri.com/connect/brand-protection Show users similar domains after they connect, to help protect their brand. After connecting a domain, you can show users similar domains to help protect their brand from lookalikes, free domains, different TLDs, etc. You can enable/disable Brand Protection under application settings in the Entri dashboard. # Connect Configuration Source: https://developers.entri.com/connect/configuration Full reference for the EntriConfig object passed to connectDomain(). ## `entri.connectDomain(config)` This method launches the Entri modal window. `config` is an object with the following properties: | Property | Type | Required? | Default | Description | | - | - | - | - | - | | applicationId | string | Yes | N/A | The ID of your application (set in the dashboard) | | dnsRecords | array of DNSRecord objects (see below) | Yes | N/A | The DNS records you wish to configure for your users (see below) | | token | string | Yes | N/A | A JSON web token. Must be fetched in each session, see [Token creation (JWT)](#token-creation-jwt). | | applicationUrl | string | Only when using [Secure](/secure/overview) or [Power](/power/overview) | N/A | Sets the applicationUrl for Power. This is the specific application URL that you would like to render on the customer's custom domain. Also known as an origin server or origin URL. | | applicationName | string | No | null | The company name that will be shown in the initial screen's welcome message. | | defaultSubdomain | string | No | "" | If you would like to pre fill the subdomain field with text then enter the desired sub domain here. | | enableDkim | boolean | No | false | If your application requires users to set up DKIM through their email provider (and your app does not send emails directly), enable this. This is common for applications that provide email automation using an external service like Google Workspace or Microsoft 365. (Enterprise tier) | | forceManualSetup | boolean | No | false | Forces Entri to use the manual setup flow. If set to true then the prefilledDomain becomes required. | | forceSubdomain | boolean | No | false | If your application requires subdomains, enable this. (Premium and Enterprise tiers) | | locale | string | No | en | To load Entri in a specific language. Supported languages include: en, es, pt, pt-br,pt-pt, fr, it, de, nl, pl, tr, ja, da, sv.The pt locale defaults to Brazilian portuguese (pt-br). | | hostRequired | boolean | No, unless you use the `{SUBDOMAIN}` variable | true | If the `{SUBDOMAIN}` variable is used but is null (no subdomain inputted by the user) then the `{SUBDOMAIN}` value will default to be [www](http://www). See [Dynamic configuration variables based on the user-inputted domain](/connect/dns-records#dynamic-configuration-variables). | | manualSetupDocumentation | string | No | "" | Where you currently provide documentation on how to set up DNS. If users are trying to set up their DNS manually and need help, we will send them to this page. e.g. \<[https://example.com/dns-setup\\>](https://example.com/dns-setup\\>). This link is disabled when using the propertydisableManualSetupDocumentationLink:true in the whiteLabel's configuration. | | iframeSandbox | boolean | No | false | When set to `true`, applies a `sandbox` attribute to the Entri iframe, restricting its capabilities to only: `allow-scripts`, `allow-same-origin`, `allow-forms`, `allow-popups`, and `allow-popups-to-escape-sandbox`. This adds an extra layer of security to the embedded iframe. | | overrideSPF | boolean | No | false | Forces the SPF record override in case there is a pre-existent one instead of merging it. This feature is not supported by Cloudflare, IONOS, Squarespace, and GoDaddy providers. | | power | boolean | No | false | Enables Entri [Power](/power/overview). Requires adoption of Entri Power. | | prefilledDomain | string | No, unless forceManualSetup is set to true | N/A | A domain to pre-fill if you've collected it before the Entri modal, e.g. example.com | | secureRootDomain | boolean | No | false | Creates a certificate for the root domain and points its A records to Entri secure servers. Requires adoption of [Entri Secure](/secure/overview). | | supportForSubdomains | boolean | No | true | If your application allows subdomains, enable this | | userId | string | No | N/A | A unique ID so that you can match Entri webhook events to the user. You can use stringfied jsons in order to add complex structured data. | | wwwRedirect | boolean | No | false | When feasible, Entri will automatically redirect site.com to [www.site.com](http://www.site.com) using the preferred method of the DNS provider. Certain providers prevent Entri from automatically setting this up. When that is the case, Entri shows a helper UI to the user that explains how to do this manually. | | validateDmarc | boolean | No | false | When set to `true` Entri will automatically check if there is an existing and valid DMARC record. If so, Entri will not update the DMARC record. | | validateCAA | boolean | No | false | When set to `true` Entri will check if there is an existing CAA present in the domain or not. If it is present, it will add the CAA record sent in the config, else not. | | checkConflicts | boolean | No | false | When `true`, Entri analyzes the DNS records provided in `dnsRecords` against the existing authoritative DNS configuration and reports any record that would require an override. Increases response time. See [Detecting Record Conflicts](/connect/sdk#detecting-record-conflicts-checkconflicts). | | monitor | boolean | No | false | When `true`, automatically registers the configured domain and records with [Entri Monitor](/monitor/overview) after the Connect flow completes, so record drift is reported back via webhooks. Requires a Monitor-enabled plan. | | searchType | string | No | `"classic"` | (Entri Sell, IONOS only) Selects the domain-search experience. Use `"classic"` for the standard keyword search, or `"ai"` to enable AI-generated domain suggestions. | ### Possible `connectDomain()` Errors When any of the following critical errors occur, a console error will be logged, and the user will only see “Entri is misconfigured. Please contact support for assistance.” in the UI. | Error | Console Message | Reason | | - | - | - | | Domain Invalid or Unsupported TLD | "This domain is invalid or uses an unsupported TLD (unlisted )." | The domain provided doesn't pass validation (invalid TLD, not in ICANN list, or malformed). | | Missing applicationId | "Missing parameter: applicationId" | The configuration object does not include `applicationId`. | | Configuration Error | "Configuration error, please refer to the docs at [https://developers.goentri.com/docs](https://developers.goentri.com/docs)" | `forceManualSetup: true` was used without providing `prefilledDomain`. | ## Token creation (JWT) To launch the Entri modal window in a session, you’ll need to fetch a JWT using the `secret` key and `applicationId` provided by the Entri dashboard. For security reasons and in order to not expose your secret in the browser, please **make sure to fetch the JWT on the server-side of your application**. The JWT expires after 60 minutes. You can use any networking library you’d like. Here’s an example using javascript: ```JS JS theme={"system"} fetch('https://api.goentri.com/token', { method: 'POST', body: JSON.stringify({ // These values come from the Entri dashboard applicationId: "12345", secret: "12345-67890" }), }) .then(response => response.json()) .then(data => { console.log('Success:', data); // { "auth_token": "exampletoken..." } }) .catch((error) => { console.error('Error:', error); }); ``` ### Enhancing Integration Security To further enhance the security of your integration, you have the option to include the `domain`, `dnsRecords` or `product` in the JWT creation process. When these elements are added, Entri will validate them during execution, providing an additional layer of security. ``` POST https://api.goentri.com/token ``` #### Request body ```JSON JSON theme={"system"} { "applicationId": "{APPLICATION_ID}", "secret": "{SECRET}", "domain": "sampledomain.com", "freeDomain": true, "userId": "XYZ", "product": "connect", "dnsRecords": [ { "value": "samplevalue.com", "host": "@", "ttl": 300, "type": "CNAME" } ] } ``` #### Parameters description | Parameter | Required? | Default | Description | | - | - | - | - | | applicationId | Yes | N/A | The ID of your application (set in the dashboard) | | domain | Yes | N/A | The domain that will be configured | | secret | Yes | N/A | Client secret, can be found in the Dashboard | | dnsRecords | No | N/A | Records that will be configured on the `domain` | | freeDomain | No | N/A | Only applies to Entri Sell! Specifies a free or paid domain purchase. | | product | No | N/A | The Entri product this JWT is being created for. Accepted values: `connect`, `sell`, `power`, `secure`, `monitor`. Required by the endpoints listed under [Endpoints that require a product claim](#endpoints-that-require-a-product-claim). | | userId | No | N/A | The `userId` from the user that will be using the flow. | #### Successful response (200 status) ```JSON JSON theme={"system"} { "auth_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...." } ``` > [!NOTE] > > For more details about how freeDomain is used in Entri Sell, refer to the [Advanced Security Settings for freeDomain](/sell/modal-integration#advanced-security-settings-for-freedomain) section. #### Endpoints that require a product claim When a JWT carries a `product` value, Entri only accepts it on the endpoints of that product. A token issued for `sell`, for example, is rejected with a `403` and the message `JWT is not valid for this resource` on Power or Secure endpoints. The server-side endpoints that list every domain of an application go one step further and require the matching `product` claim. A token without it is rejected with a `403` and the message `The token must be issued with product '' to use this endpoint`, and no domains are returned. This applies even to applications that have authentication disabled. | Endpoint | Required `product` | | - | - | | [`GET /power` without `domain`](/power/endpoints#list-powered-domains) | `power` | | [`GET /ssl` without `domain`](/secure/endpoints#list-secured-domains) | `secure` | | [`GET /sell/domains`](/sell/sdk#list-purchased-domains) | `sell` | | [`GET /monitor/domains`](/monitor/endpoints#list-domains) | `monitor` | | [`POST /monitor/domains/batch`](/monitor/endpoints#batch-create-domains) | `monitor` | | [`DELETE /monitor/domains/batch`](/monitor/endpoints#batch-delete-domains) | `monitor` | | [`GET /monitor/domains/batch/status/:request_id`](/monitor/endpoints#batch-status) | `monitor` | Endpoints that act on a single domain, such as the Power and Secure eligibility checks with `?domain=` or the Monitor endpoints for one domain, keep working with a token that has no `product` claim. On Monitor, the `domain` and `dnsRecords` claims are also enforced on every single-domain endpoint. See [Token scope](/monitor/endpoints#token-scope) for the rules. # Connect DNS Records Source: https://developers.entri.com/connect/dns-records Defining dnsRecords, supported types, and dynamic variables ({DOMAIN}, {SUBDOMAIN}, ...). ## `dnsRecords` object DNS records can be provided in two different ways: as a single array of records, or as an object that maps different sets of records to specific cases (root domain, subdomain, or individual domains). ### Simple array A single array of DNS records. This is the easiest way to send Entri the set of records you want to configure, applied to every domain with no domain or subdomain distinction. ``` { ..., dnsRecords: [ { type: "CNAME", host: "shop", value: "myapp.com", ttl: 300, }, { type: "TXT", host: "@", value: "123-example-txt-record", ttl: 300, } ] } ``` ### Object form If you need different sets of records depending on whether the user connects a root domain or a subdomain, or you are configuring several domains in one flow, `dnsRecords` can be an object instead of an array. See [Multi-Domain & Conditional Records](/connect/multi-domain) for the full reference. ### Record object specification | Property | Type | Required? | Example | | - | - | - | - | | host | string | Yes | www | | ttl | integer | Yes | 300 (This is the minimum accepted value. Some providers don't accept this value and will default to the minimum value allowed by the provider.) | | type | string (see below) | Yes | CNAME (Check the [Supported record types](#supported-record-types) section below) | | value | string | Yes | m.example.com | | fallbackValue | string | No | v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDg9/gR+3J0mmugLjhpYOfQK9ytkEKnXM0kVdpu0UoykSPK7ChD+nRxFJbN2cxtvu8GrCNQwPTKbC0jimaSi0V2j3JndnRrECuYCqeZYcRmw2lYs18QnmJRfCpweKoaGtv9zERCkeHwLcTaLkrSHrRDf58WgERg8x/4ipBPIyZufwIDAQAB | | priority | integer | Only for MX records | 10 | | optional | boolean | No | `true` (defaults to `false`. When `true`, a failure on this record does not fail the flow. See [Optional records](#optional-records).) | | advancedDmarcOptions | object | Only for DMARC (`TXT`) records | See the full schema in [DMARC Handling: Advanced Options](/advanced-dmarc-options). Lets you override, remove, or conditionally add DMARC tags, and inherit DMARC from the root domain. | ### `advancedDmarcOptions` (DMARC records only) For DMARC `TXT` records you can attach an `advancedDmarcOptions` object to a record to take precise control over how Entri merges, overrides, or preserves individual DMARC tags. | Property | Type | Description | | - | - | - | | `inheritRootDmarc` | boolean | When `true` on a subdomain DMARC record, inherits the DMARC policy from the root domain. | | `overrideTags` | object | Map of tag → value. Overrides the listed tags in the existing DMARC record, or adds them if missing. | | `removeTags` | array | List of DMARC tag names to remove from the existing record (e.g. `["pct"]`). | | `addTagsIfNotExist` | object | Map of tag → value. Adds each tag **only** if it is not already present on the existing DMARC record. | See [DMARC Handling: Advanced Options](/advanced-dmarc-options) for full examples and use cases. ### Optional records By default, every record in `dnsRecords` is required: if one of them cannot be configured, the whole flow fails. Setting `optional: true` on a record marks it as non-blocking. If an optional record cannot be configured, Entri continues with the remaining records and the flow still completes successfully. Records without the flag, or with `optional: false`, keep the current behavior, so existing configurations are not affected. > [!NOTE] > > This feature is not supported by the GoDaddy, Squarespace, IONOS, and Cloudflare providers. On these providers, all records behave as required regardless of the `optional` flag. A common use case is an SPF record that improves email deliverability but should not block the MX and DKIM records from being set up: ```json theme={"system"} { "dnsRecords": [ { "type": "MX", "host": "@", "value": "mx.example-mail.com", "priority": 10, "ttl": 300 }, { "type": "TXT", "host": "@", "value": "v=spf1 include:_spf.example-mail.com ~all", "ttl": 300, "optional": true } ] } ``` When an optional record fails, the user still reaches the Congratulations screen. The failed records are reported back to you in two places: the [`onSuccess` browser event](/connect/events#onsuccess-callback-event) includes a `failedOptionalRecords` array, and webhooks track the optional records separately through the [`optional_records_propagation_status` field](/connect/events#status-fields) without affecting `propagation_status`. ### Dynamic configuration variables You can insert dynamic variables into the dnsRecords section of your configuration object using syntax. For example, if the user sets up `blog.example.com`, the following variables will be available: | Variable name | Example value | | - | - | | `{DOMAIN}` | example.com | | `{SUBDOMAIN}` | blog | | `{SLD}` | example | | `{TLD}` | com | | `{emailProviderSPF}` | Google | > [!NOTE] > > *Please note, all the variables are* **case-sensitive** *and must be inputted > in all upper-case.* ## Supported Record Types | Type | Description | | - | - | | A | Holds the IP address of a domain. | | AAAA | The AAAA record is conceptually similar to the A record, but it allows you to specify the IPv6 address of the server, rather than the IPv4. | | CNAME | Forwards one domain or subdomain to another domain. Does **not** provide an IP address. | | CAA | Used to provide additional confirmation for the Certification Authority (CA) when validating an SSL certificate. | | MX | Directs email to an email server. | | TXT | Stores text strings. For special uses of the TXT record, see [Handling DKIM, SPF, and DMARC records](/handling-dkim-spf-dmarc-records). | | NS | Indicates which DNS server is authoritative for that domain, it is the server that stores all DNS records for a domain, including A records, MX records, or CNAME records. | # Connect Events Source: https://developers.entri.com/connect/events Browser events (onSuccess, onEntriClose, onEntriStepChange, onSharedFlowSent, onEntriManualSetupDocumentationClick, onEntriRequestClose, onEntriSharingLinkClick) and Connect-scoped webhook events. This page documents the webhook events and payload fields relevant to Entri Connect. For the payload envelope and signature verification, see [Webhooks Overview](/webhooks-overview). ## Webhook event types * `"domain.added"`: Indicates that DNS records have been successfully added. * For **Entri Sell**, this means the domain has been registered and connected. * For **Entri Connect**, it confirms that DNS records have been added to an existing domain. * Multiple messages of this type may be received for the same domain. This occurs when either the propagation\_status or redirection\_status changes. * `"domain.propagation.timeout"`: This event is very rare and is triggered if DNS records fail to propagate after 72 hours. It is highly uncommon for domains connected through the automatic flow. * `"domain.flow.completed"`: Indicates that the user has completed the Entri domain connection flow. This event does not convey any propagation status — it only confirms that the user finished the flow steps. ## Status fields * **`propagation_status`**: The status of DNS record propagation. Possible values: * `"pending"`: DNS records are still being propagated. * `"success"`: DNS records have been successfully propagated. * `"failed"`: DNS record propagation has failed. This is triggered if the records are not propagated even after 72 hours. * `"exempt"`: Only present in notifications with `type:"purchase.confirmation.expired"`. * **`optional_records_propagation_status`**: The propagation status of records marked with [`optional: true`](/connect/dns-records#optional-records) in the `dnsRecords` configuration, tracked independently from `propagation_status`. Possible values: * `"pending"`: Optional records are still being propagated. * `"success"`: All optional records have been successfully propagated. * `"failed"`: One or more optional records could not be configured or did not propagate. > [!NOTE] > > Optional records never affect `propagation_status`. When all required records have propagated and the only pending or failed records are optional ones, the webhook reports `propagation_status: "success"`. * **`dkim_status`**: The status of DKIM (DomainKeys Identified Mail) configuration. Possible values: * `"pending"`: DKIM setup is pending. * `"success"`: DKIM configuration has been successfully completed. * `"failed"`: DKIM setup failed. * `"exempt"`: DKIM setup is exempt, usually if the user does not use a supported email provider (e.g. Google or Microsoft). * **`redirection_status`**: The status of domain redirection. Possible values: * `"pending"`: Redirection setup is in progress. * `"success"`: Redirection setup has completed successfully. * `"failed"`: Redirection setup failed. * `"exempt"`: Redirection is exempt from this setup. * **`secure_status`**: The status of SSL certificate provisioning through [Entri Secure](/secure/overview). Possible values: * `"pending"`: The DNS records required by Entri Secure have not propagated yet, so the certificate has not been issued. * `"success"`: The records propagated and the SSL certificate was provisioned. * `"failed"`: The records did not propagate within 72 hours. Sent together with the `domain.propagation.timeout` event. * `"exempt"`: Entri Secure is not enabled for the application or does not apply to this flow. * **`power_status`**: The status of the advanced features configuration through [Entri Power](/power/overview). Possible values: * `"pending"`: The DNS records required by Entri Power have not propagated yet. * `"success"`: The records propagated and Entri Power is configured for the domain. * `"failed"`: The records did not propagate within 72 hours. Sent together with the `domain.propagation.timeout` event. * `"exempt"`: Entri Power is not enabled for the application or does not apply to this flow. * **`monitor_status`**: The status of the domain's enrollment in [Entri Monitor](/monitor/overview). Only present when the flow has records to monitor, which happens when the [`monitor`](/connect/configuration) config option is `true` and Monitor is enabled for your account. Unlike `secure_status` and `power_status`, this field is never `"exempt"`: it is simply omitted from the payload when Monitor does not apply. Possible values: * `"pending"`: The monitored records have not propagated yet, so the domain is not enrolled in Monitor. * `"success"`: The records propagated and the domain is now monitored. * `"failed"`: The records did not propagate within 72 hours. Sent together with the `domain.propagation.timeout` event. > [!NOTE] > > These values apply to the Connect and Sell flow events listed above. The product-specific `domain.secure.*` and `domain.power.*` events reuse the same field names with a different vocabulary, `"active"` or `"inactive"`, to report whether the product is currently running on the domain. See [Secure events](/secure/events#status-fields) and [Power events](/power/events#status-fields). * **`setup_type`**: Indicates whether the setup was done automatically or manually. Possible values: * `"automatic"`: Setup was performed automatically. * `"manual"`: Setup required manual intervention. * `"async"`: Setup was done using the [DNS asynchronous update](/sell/sdk#asynchronous-dns-configurations-entri-sell-only). ### Advanced DMARC configuration feature This field is present in the webhook when using the [DMARC Handling: Advanced Options](/advanced-dmarc-options) or `validateDmarc` features. * **`dmarc_updated`**: Reflects the status of DMARC (Domain-based Message Authentication, Reporting, and Conformance) updates. Possible values: * `"true"`: DMARC settings have been updated. * `"false"`: DMARC settings were not updated. * `"exempt"`: DMARC is not applicable in this situation (e.g. for domains that don’t require it). ## Data object (DNS records) The `data` object contains the DNS records that have been propagated and those that are pending. * **`records_propagated`**: An array of DNS records that have been successfully propagated. Each record contains: * **`type`**: The type of DNS record (e.g. `"A"`, `"CNAME"`). * **`host`**: The hostname for which the DNS record applies (e.g. `"smallbusiness.com"`). * **`value`**: The value of the DNS record (e.g. `"54.153.2.220"`). * **`applicationUrl`**: (optional, Entri Power only) The application URL tied to the propagated DNS record (e.g. `"www.example.com"`). * **`powerRootPathAccess`**: (optional, Entri Power only) An array of paths accessible through Entri Power. Example: ```json theme={"system"} ["path1", "path2", "pathN"] ``` * **`optional`**: (only present on records flagged as optional) `true` when the record was marked with [`optional: true`](/connect/dns-records#optional-records) in the configuration. * **`records_non_propagated`**: An array of DNS records that have not yet propagated. The structure is the same as `records_propagated`. ## Shared flows When a flow is initiated via a sharing link or with a `sharedFlowId`, webhook events include an `origin_flow_id` to correlate the derived flow back to the origin. See [Shared Links](/connect/shared-links#correlating-shared--derived-flows) for details. ## Frontend event: onSharedFlowSent When using shared flows in the frontend experience, Entri exposes an `onSharedFlowSent` callback that fires when a user copies a shared flow and reaches the shared-flow congratulations screen. This event includes the `sharedFlowId`, allowing you to bind: * the **sharedFlowId** (originating / shared flow) * the **derived flow run** that completes later (via `origin_flow_id` in webhooks) Example usage: ```js theme={"system"} entri.purchaseDomain({ // ... onSharedFlowSent: ({ sharedFlowId }) => { // Persist sharedFlowId to correlate with webhook origin_flow_id } }) ``` ## Browser callback events The following events are useful for following up the user's navigation and take action under certain circumstances, for example, leading the user to your manual setup guide in case you don't want to use Entri's. ### `onSuccess` Callback Event This event is triggered when the user reaches the **Congratulations** screen in Entri Connect and Entri Sell, regardless of whether the setup was **automatic** or **manual**. Use this event to capture a definitive success signal and the `jobId` that identifies the flow. #### Sample usage: ```JavaScript JavaScript theme={"system"} function handleOnSuccess(event) { console.log('onSuccess', event.detail); } window.addEventListener('onSuccess', handleOnSuccess, false); ``` #### Sample `event.detail` object response: ```JSON JSON theme={"system"} { "domain": "example.com", "success": true, "setupType": "automatic", "provider": "Provider name", "freeDomain": true, "jobId": "2132b20f-e522-42fc-9604-5a53b1f13a4b", "failedOptionalRecords": [ { "type": "TXT", "host": "@", "value": "v=spf1 include:_spf.example-mail.com ~all", "ttl": 300, "optional": true } ] } ``` #### Event details object description | Name | Type | Description | | - | - | - | | domain | string | Domain that was configured. | | success | boolean | Always `true` for this event, indicating the flow completed successfully. | | setupType | string | Type of DNS setup used: `automatic` or `manual`. | | provider | string | DNS provider used to configure the domain, or `unknown` if not detected. | | freeDomain | boolean | Only included for Entri Sell **free domain** flows; otherwise may be omitted. | | jobId | string (UUID) | The unique identifier for the Connect/Sell flow. It is returned by the **initialize** response and is also included in all related webhooks. | | failedOptionalRecords | array | Only included when one or more records marked with [`optional: true`](/connect/dns-records#optional-records) could not be configured. Lists the failed optional records, each with the same shape as a `dnsRecords` item. The flow still completes successfully; use this list to surface the pending setup to your user or retry it later. | > [!NOTE] > > The `onSuccess` event complements existing browser events and is the recommended source to capture the `jobId` for subsequent server-side operations (e.g., retrieving the last webhook, triggering a propagation re-check, or [checking the flow status](/connect/sdk#check-flow-status)). ### `onEntriClose` Callback Event This event gets triggered as soon as the modal is closed, giving you back useful information about the latest status of the flow. #### Sample usage: ```JavaScript JavaScript theme={"system"} function handleOnEntriClose(event) { console.log('onEntriClose', event.detail); } window.addEventListener('onEntriClose', handleOnEntriClose, false); ``` #### Sample `event.detail` object response: ```JSON JSON theme={"system"} { "domain": "example.com", "success": true, "setupType": "automatic", "provider": "Provider name", "lastStatus": "IN_PROGRESS", "error": { // Added to the event details if the user closed the app after an error screen. "code": "ProviderError", "title": "Social Login Not Supported", "details": "You are trying to login with Social Account, please try logging in from [PROVIDER_NAME] Account" } } ``` #### Event details object description | Name | Type | Description | | - | - | - | | domain | string | Domain that the user entered. Can be null if the user exits before entering a domain. | | success | boolean | Was the setup of the domain completed? | | setupType | string | Type of DNS setup. Can be "automatic", `manual`, `sharedLogin`, `purchase` or `null` if the user didn't reach the set up stage. Additionally, semiautomatic may be returned if the user selected a provider manually that supports automatic set up. | | provider | string | Provider name used to configure the domain or "unknown" if it was not detected. | | lastStatus | string | lastStatus can be used if you want more information about where the user dropped off. Find all possible values below. | | manualScreenDisabled | boolean | Determines if the modal was closed because the flow reached the Manual Screen and it was disabled using the whiteLabel.customProperties.manualConfiguration.disableScreen property. | | error | object | Added to the event details if the user closed the app after an error screen. | | error.code | string | Exit error code | | error.title | string | Error title shown to the end user on the error screen | | error.details | string | Error details shown to the end user on the error screen | Error codes are listed in the [Errors Overview](/errors/overview#modal-error-codes). #### `lastStatus` possible values | lastStatus | Description | | - | - | | INITIAL | Initial screen for Entri Connect, Secure and Power. | | ENTER\_DOMAIN | Enter your domain screen in case there's no prefilledDomain | | DOMAIN\_ANALYSIS | The domain is under the DNS analysis | | DOMAIN\_SETUP | The domain is on the DNS configuration step | | IN\_PROGRESS | The user exited the Entri modal while the DNS setup was in progress. | | EXISTING\_RECORDS | The user exited the Entri modal when prompted if they want to override an existing set of DNS records. | | LOGIN | The user exited the Entri modal flow during the login process (when prompted for their login credentials) | | LOGIN\_2FA | The user exited the Entri modal flow during the login process (when prompted for 2FA verification) | | MANUAL\_CONFIGURATION | The user exited the Entri modal after manual DNS configuration instructions were presented. | | PROVIDER\_MANUAL\_SELECTION | The user entered the providers' list for manual selection | | EXIT\_WITH\_ERROR | The user exited the Entri modal after an error occurred. | | DKIM\_SETUP | The user exited the Entri modal after prompting | | FINISHED\_SUCCESSFULLY | The user has successfully configured their domain using the automatic flow. | | FINISHED\_SUCCESSFULLY\_MANUAL | The user has successfully configured their domain using the manual flow. | | FINISHED\_SUCCESSFULLY\_LINK\_SHARED | The user completed the flow by sharing a configuration link (shared‑flow experience) rather than configuring the DNS themselves. | ### `onEntriManualSetupDocumentationClick` Event This event is triggered when the user has clicked on the "Follow our step-by-step guide" link on the Manual configuration screen. It doesn't include any additional information within the `event.detail` object. This is useful for triggering proprietary javavascript based solutions when the user needs help with configuring the manual flow, e.g. opening support chats, etc. #### Sample usage: ```JavaScript JavaScript theme={"system"} function myCustomFunction(event) { //Custom code here e.g. open chat app } window.addEventListener('onEntriManualSetupDocumentationClick', myCustomFunction, false); ``` ### `onEntriStepChange` Event This event is triggered each time a different screen is shown within the Entri configuration process. It serves the purpose of offering additional user journey insights, making it useful for implementing listeners and triggering third-party tracking system events when necessary. #### Sample usage: ```JavaScript JavaScript theme={"system"} function myCustomFunction(event) { console.log('onEntriStepChange', event.detail); } window.addEventListener('onEntriStepChange', myCustomFunction, false); ``` #### Sample `event.detail` object response: ```JSON JSON theme={"system"} { "domain": "example.com", "provider": "Provider name", "step": "ENTER_DOMAIN", "user": "user-123456", "error": { // Added to the event details if the user closed the app after an error screen. "code": "ProviderError", "title": "Social Login Not Supported", "details": "You are trying to login with Social Account, please try logging in from [PROVIDER_NAME] Account" } } ``` #### Event details object description | Name | Type | Description | | - | - | - | | domain | string | Domain that the user entered. Can be null if the user exits before entering a domain. | | provider | string | Provider name used to configure the domain or "unknown" if it was not detected. | | step | boolean | The current step the user is visualizing | | user | string | The userId sent over the initial configuration. Helpful for mapping users vs. flows. | | error | object | Added to the event details if the user closed the app after an error screen. | | error.code | string | Exit error code | | error.title | string | Error title shown to the end user on the error screen | | error.details | string | Error details shown to the end user on the error screen | | pendingDomains | array | (Multi-domain flows) Domains that still need to be configured after the current step. | | processedDomains | array | (Multi-domain flows) Domains that have already been processed (successfully or with error) in the current flow. | | conditionalRecords | array | DNS records that apply only conditionally for the current step — for example, records that depend on the selected provider or on the user's chosen subdomain. Each entry follows the same shape as `dnsRecords`. | Error codes are listed in the [Errors Overview](/errors/overview#modal-error-codes). #### `step` possible values | lastStatus | Description | | - | - | | INITIAL | Initial screen for Entri Connect, Secure and Power. | | ENTER\_DOMAIN | Enter your domain screen in case there's no prefilledDomain | | DOMAIN\_ANALYSIS | The domain is under the DNS analysis | | DOMAIN\_SETUP | The domain is on the DNS configuration step | | IN\_PROGRESS | The user exited the Entri modal while the DNS setup was in progress. | | EXISTING\_RECORDS | The user exited the Entri modal when prompted if they want to override an existing set of DNS records. | | LOGIN | The user exited the Entri modal flow during the login process (when prompted for their login credentials) | | LOGIN\_2FA | The user exited the Entri modal flow during the login process (when prompted for 2FA verification) | | MANUAL\_CONFIGURATION | The user exited the Entri modal after manual DNS configuration instructions were presented. | | PROVIDER\_MANUAL\_SELECTION | The user entered the providers' list for manual selection | | EXIT\_WITH\_ERROR | The user exited the Entri modal after an error occurred. | | DKIM\_SETUP | The user exited the Entri modal after prompting | | FINISHED\_SUCCESSFULLY | The user has successfully configured their domain using the automatic flow. | | FINISHED\_SUCCESSFULLY\_MANUAL | The user has successfully configured their domain using the manual flow. | | FINISHED\_SUCCESSFULLY\_LINK\_SHARED | The user completed the flow by sharing a configuration link (shared‑flow experience) rather than configuring the DNS themselves. | ### `onEntriRequestClose` Event This event lets host applications run their own confirmation UI (or cleanup logic) when the user clicks the close (X) button, instead of Entri's built‑in "Are you sure you want to leave?" dialog. > [!NOTE] > > This event is **gated** by [`whiteLabel.customProperties.general.useCustomExitConfirmation`](/connect/white-label#whitelabel-customproperties-object). Set it to `true` to enable the event; otherwise Entri shows its own default exit confirmation dialog and this event does **not** fire. When the event fires, Entri **does not** close the modal automatically. After your own confirmation UI resolves, your app is responsible for calling [`entri.close()`](/connect/sdk#entri-close) to dismiss the widget. The regular `onEntriClose` event then fires through the normal close flow. #### Sample usage: ```JavaScript JavaScript theme={"system"} function handleRequestClose(event) { console.log('onEntriRequestClose', event.detail); // Show your own confirmation UI here. // If the user confirms exit, call entri.close(): // entri.close(); } window.addEventListener('onEntriRequestClose', handleRequestClose, false); ``` #### `event.detail` payload | Field | Type | Always present | Description | | - | - | - | - | | `step` | string | Yes | The current `EntriStatus` at the time the user requested to close. See the status table above. | | `pendingDomains` | string\[] | Multi-domain only | Domains still pending setup. Only included when the flow is configured for multiple domains. | | `processedDomains` | string\[] | Multi-domain only | Domains that have already been processed. Only included when the flow is configured for multiple domains. | ### `onEntriSharingLinkClick` Event This event lets host applications handle the "send to admin" action with their own sharing UI instead of Entri's built-in forward screen. It fires when the user clicks "Send login link to admin" in the "Other ways to connect" dialog of the Provider Login screen, or "Send instructions to admin" on the manual configuration screen. > [!NOTE] > > This event is **gated** by [`whiteLabel.customProperties.providerLogin.forwardLink.disable`](/connect/white-label#whitelabel-customproperties-object). Set it to `true` to enable the event; otherwise Entri opens its own forward screen and this event does **not** fire. When the event fires, Entri stays on the current screen and does not send anything. Share the `link` from the payload through your own channel, for example by prefilling an email to the domain's administrator. See [Shared Links](/connect/shared-links) for how the link behaves once opened. #### Sample usage: ```JavaScript JavaScript theme={"system"} function handleSharingLinkClick(event) { console.log('onEntriSharingLinkClick', event.detail); // Open your own sharing UI here, e.g. prefill an email with event.detail.link } window.addEventListener('onEntriSharingLinkClick', handleSharingLinkClick, false); ``` #### `event.detail` payload | Field | Type | Always present | Description | | - | - | - | - | | `domain` | string | Yes | Domain being configured, including the subdomain when the setup targets one. | | `provider` | string | Yes | Lowercase identifier of the detected provider, or an empty string if none was detected. | | `user` | string | Yes | The `userId` sent in the initial configuration, or an empty string if none was set. | | `setupType` | string | Yes | Type of DNS setup at the time of the click. Same values as `setupType` on `onEntriClose`. | | `link` | string | No | The sharing link for this flow. Omitted when Entri has not generated one yet; in that case you can create one with the [Sharing links API](/connect/shared-links#sharing-links-api). | | `step` | string | Yes | The current status at the time of the click, usually `LOGIN` or `MANUAL_CONFIGURATION`. See the status table above. | ### Possible `error` codes The list of `error.code` values, including the Domain Connect provider errors, is maintained in the [Errors Overview](/errors/overview#modal-error-codes). # Multi-Domain & Conditional Records Source: https://developers.entri.com/connect/multi-domain Configuring conditionalRecords, pendingDomains, and processedDomains for multi-domain flows. ## Conditional records object If you have different sets of records you need to configure depending on whether it’s a root domain, a subdomain, or you’re using custom name‑servers, then this is the best option for you. You just need to include three separate objects `rootNS`, `domain` and `subDomain` and the resolver will pick the right one: whenever the `rootNS` key is found it takes absolute precedence; if your provider doesn’t support NS modifications (or `rootNS` is absent), it falls back to `subDomain` for any subdomains, and finally to the `domain` records object. Sample conditional records object: ``` { ..., dnsRecords: { domain: [ { type: "A", host: "@", value: "1.2.3.4", ttl: 300, }, { type: "TXT", host: "@", value: "123-example-txt-record", ttl: 300, } ], subDomain: [ { type: "CNAME", host: "shop", value: "myapp.com", ttl: 300, }, { type: "TXT", host: "@", value: "123-example-txt-record", ttl: 300, } ], rootNS: [ { type: "NS", host: "@", value: "ns1.sampleprovider.com", ttl: 300, }, { type: "NS", host: "@", value: "ns2.sampleprovider.com", ttl: 300, } ] } ``` ## Multi-domain flows With Entri, you can configure as many domains as you need using the end user flow. In order to achieve it, you only need to use a similar `dnsRecords` structure as the conditional records, in combination with the array form of the `prefilledDomain` property. This is a sample configuration for a multi-domain flow: ``` { //... prefilledDomain: ["firstDomain.com", "secondDomain.com"], dnsRecords: { "firstDomain.com": [ { type: "A", host: "@", value: "1.2.3.4", ttl: 300, }, { type: "TXT", host: "@", value: "123-example-txt-record", ttl: 300, } ], "secondDomain.com": [ { type: "CNAME", host: "shop", value: "myapp.com", ttl: 300, }, { type: "TXT", host: "@", value: "123-example-txt-record", ttl: 300, } ] } ``` # Entri Connect Overview Source: https://developers.entri.com/connect/overview Guided DNS setup for your users: what Entri Connect is and when to use it. ## Overview Setting up DNS records is one of the most common drop-off points in any SaaS onboarding flow. Users are asked to log into a registrar, find the right screen, and enter records correctly without making a mistake. Most can't do it without help. **Entri Connect** solves this with an embeddable modal that guides your users through the entire DNS configuration process automatically. Entri detects the user's DNS provider, logs in on their behalf where supported, and applies the records you define. No copy-pasting, no manual steps, no support tickets. Once a user completes the flow, Entri monitors propagation and fires a webhook when their records are live. ## How it works 1. Your backend generates a short-lived JWT and passes it to the frontend along with your DNS record configuration. 2. You call `entri.connectDomain(config)` and the Entri modal opens inside your app. 3. Entri identifies the user's DNS provider from their domain. 4. For supported providers, Entri logs in automatically and applies the records on their behalf. 5. For unsupported providers, Entri shows step-by-step manual instructions tailored to that registrar. 6. Entri monitors propagation and notifies your server via webhook when records go live. ## When to use Entri Connect Use Connect when you need users to point a custom domain or subdomain to your service. It handles any combination of A, CNAME, TXT, MX, and other record types, and takes care of propagation monitoring so you don't have to build it yourself. ## Key features **Automatic configuration** supports 60+ DNS providers with direct API login. For providers outside that list, a **manual fallback** shows step-by-step instructions tailored to the specific registrar. **Propagation monitoring** fires webhook notifications when records go live or go missing. The modal is fully **white-labeled**: colors, logo, copy, and behavior are all customizable to match your brand. For more complex use cases, **multi-domain** lets users configure multiple domains in a single session, and **shared links** let them forward the configuration to a colleague who manages their DNS. > [!NOTE] > > Entri Connect runs on the redesigned modal by default. The [white-label reference](/connect/white-label) lists the `whiteLabel` properties it supports. The same UI powers [Entri Unify](/unify/overview). Integrations still on the previous modal can find its properties in the [legacy UI reference](/connect/white-label-legacy). ## Quick links > **[Connect SDK](/connect/sdk)** > > connectDomain(), checkDomain(), and all other methods > **[Configuration](/connect/configuration)** > > Full connectDomain() config key reference > **[White-label](/connect/white-label)** > > Theming, custom copy, and modal behavior > **[Events](/connect/events)** > > Browser events and webhook notifications # Supported Providers Source: https://developers.entri.com/connect/provider-list Automatic configuration availability and wwwRedirect feature availability See the [provider health endpoint](/webhooks-overview#provider-health) for the realtime status of each provider ## Automatic DNS configuration support | Provider Name | Automatic | Social Login Supported | NS Support | Subdomain NS Support | | - | - | - | - | - | | 123-Reg | yes | no | yes | yes | | Alibaba Cloud | yes | N/A | yes | yes | | All-Inkl | yes | N/A | no | yes | | Amazon Route 53 (AWS) | yes | N/A | yes | yes | | Aruba | yes | N/A | yes | N/A | | Arsys | yes | N/A | yes | yes | | Bluehost US | yes | no | yes | yes | | Cloudflare | yes | yes | yes | yes | | ClouDNS | yes | N/A | yes | yes | | Crazy Domains | yes | no | yes | N/A | | Domain.com | yes | N/A | yes | yes | | DigitalOcean | yes | yes | yes | yes | | DNSimple | yes | yes | yes | yes | | DreamHost | yes | no | yes | yes | | Dynadot | yes | N/A | yes | yes | | EasyDNS | yes | N/A | yes | N/A | | Elementor | yes | yes | yes | yes | | Enom | yes | N/A | yes | N/A | | Fasthosts | yes | no | yes | N/A | | Freename | yes | no | yes | N/A | | Gandi | yes | N/A | yes | yes | | GoDaddy | yes | yes | no | yes | | GreenGeeks | yes | N/A | no | yes | | Hetzner | yes | N/A | yes | yes | | Home.pl | yes | N/A | yes | yes | | Hostgator | yes | N/A | yes | yes | | Hosting.com | yes | no | yes | N/A | | Hostinger | yes | no | yes | N/A | | Hostpoint | yes | N/A | no | yes | | Hover | yes | N/A | yes | N/A | | Inmotion Hosting | yes | N/A | yes | N/A | | IONOS | yes | yes | no | no | | IWantMyName | yes | N/A | yes | yes | | LocaWeb | yes | N/A | no | no | | Mijndomein | yes | N/A | no | yes | | Name.com | yes | N/A | yes | yes | | Namebright | yes | N/A | yes | yes | | Namecheap | yes | N/A | yes | yes | | NameSilo | yes | N/A | yes | yes | | Network Solutions | yes | N/A | yes | yes | | Netlify | yes | no | N/A | yes | | O2switch | yes | N/A | no | N/A | | One.com | yes | N/A | yes | yes | | Openprovider | yes | N/A | yes | yes | | OpenSRS | yes | N/A | yes | yes | | OVH | yes | N/A | yes | yes | | Papaki | yes | no | yes | yes | | Porkbun | yes | N/A | yes | yes | | Register.com | yes | N/A | yes | yes | | Register.it | yes | N/A | yes | yes | | Registro.br | yes | N/A | N/A | N/A | | Shopify | yes | no | yes | N/A | | Simply | yes | no | N/A | yes | | SiteGround | yes | N/A | yes | N/A | | Spaceship | yes | N/A | yes | yes | | Squarespace | yes | yes | no | yes | | Strato | yes | N/A | no | N/A | | TransIP | yes | N/A | yes | yes | | United Domains | yes | N/A | yes | yes | | Vercel | yes | yes | no | yes | | Web.com | yes | N/A | yes | yes | | Wix | yes | no | N/A | N/A | | Wordpress.com | yes | no | yes | yes | | World4You | yes | N/A | no | yes | | Xneelo | yes | N/A | yes | N/A | ## wwwRedirect feature support | Provider Name | DNS Provider's native wwwRedirect support(Using provider's native features) | Entri's in-house wwwRedirect support(Using Entri Secure with https) | | - | - | - | | 123-Reg | yes | yes | | Alibaba Cloud | yes | yes | | All-Inkl | yes | yes | | Amazon Route 53 (AWS) | no | yes | | Arsys | yes | yes | | Aruba | yes | yes | | Bluehost US | No | yes | | Cloudflare | yes | yes | | ClouDNS | no | yes | | Crazy Domains | yes (if included in the user's plan) | yes | | Domain.com | no | yes | | DigitalOcean | yes | yes | | DNSimple | yes | yes | | DreamHost | yes | yes | | Dynadot | yes | yes | | EasyDNS | no | yes | | Enom | yes | yes | | Fasthosts | no | yes | | Freename | no | yes | | Gandi | yes | yes | | GoDaddy | no | yes | | GreenGeeks | no | yes | | Hetzner | no | yes | | Home.pl | no | yes | | Hostgator | yes | yes | | Hosting.com | yes | yes | | Hostinger | no | yes | | Hostpoint | no | yes | | Hover | yes | yes | | Inmotion Hosting | yes | yes | | IONOS | yes | yes | | IWantMyName | yes | yes | | LocaWeb | no | yes | | Mijndomein | yes | yes | | Name.com | yes | yes | | Namebright | yes | yes | | Namecheap | yes | yes | | NameSilo | yes | yes | | Netlify | yes | yes | | Network Solutions | yes (if included in the user's plan) | yes | | O2switch | yes (if user has hosting plan) | yes | | One.com | yes | yes | | Openprovider | yes | yes | | OpenSRS | yes | yes | | OVH | yes | yes | | Papaki | no | yes | | Porkbun | yes | yes | | Register.com | yes (if included in the user's plan) | yes | | Register.it | yes | yes | | Registro.br | no | yes | | Shopify | no | yes | | Simply | yes | yes | | SiteGround | yes | yes | | Spaceship | yes | yes | | Squarespace | yes | yes | | Strato | yes | yes | | TransIP | no | yes | | United Domains | no | yes | | Vercel | no | yes | | Web.com | yes (if included in the user's plan) | yes | | Wix | yes | yes | | Wordpress.com | no | yes | | World4You | yes | yes | | Xneelo | no | yes | > [!WARNING] > > **`wwwRedirect` behavior varies by provider** > > Setting `wwwRedirect: true` instructs Entri to configure a root-domain redirect (`yourdomain.com` → `www.yourdomain.com`). This operates on the **root domain**, not the subdomain you may be configuring, and the exact mechanism used differs between DNS providers. > > Some providers (like GoDaddy) may override an existing A record at the root domain with redirect infrastructure. If a live site is being served on that root domain, it may become inaccessible due to the redirection — so make sure your site also loads on the `www` subdomain before enabling this. > > **✓ Do:** Use `wwwRedirect: true` only when your explicit goal is to redirect the bare domain to the `www` subdomain — and when no active site depends on the root A record. > > **✕ Do not:** Use `wwwRedirect: true` when you're only trying to configure other subdomain CNAMEs (e.g. `shop.yourdomain.com`, `app.yourdomain.com`). The redirect flag has no effect on subdomains — it will only risk overwriting unrelated root-level records. Any use of registered trademarks from DNS Providers is only used as necessary to clearly identify the relevant services and is not intended to imply or suggest any affiliation, sponsorship, endorsement, or business relationship. Entri LLC is not affiliated with or sponsored by GoDaddy. “GoDaddy” is a registered trademark of Go Daddy Operating Company, LLC. Use of registered trademarks is only used as necessary to clearly identify the relevant services and is not intended to imply or suggest any affiliation, sponsorship, endorsement, or business relationship with GoDaddy.com, LLC or its affiliated entities. # Connect SDK Source: https://developers.entri.com/connect/sdk The Entri Connect JavaScript SDK: connectDomain(), checkDomain(), checkRecords(), load(), loadSharedFlow(), close(), and browser events. ## `entri.connectDomain(config)` This method launches the Entri modal window. `config` is an object — see [Connect Configuration](/connect/configuration) for the full list of properties and the `connectDomain()` error reference. > [!NOTE] > > **`showEntri()` is now `connectDomain()`.** The method was renamed to line up with the other SDK entry points, `purchaseDomain()` and `showUnify()`. > > `showEntri()` is deprecated but still works. It is a direct alias of `connectDomain()`, takes the same config object, and fires the same events, so existing integrations keep running without changes. New integrations should use `connectDomain()`, and existing ones can switch by renaming the call. > [!NOTE] > > Domains configured through `connectDomain()` are not monitored by default. To track them with [Entri Monitor](/monitor/overview), pass `monitor: true` in the config as described in [Monitor configuration](/monitor/configuration). Only [`showUnify()`](/unify/overview) enrolls domains in Monitor automatically. ## `entri.checkDomain(domain, config)` This asynchronous method checks the DNS configuration for a specified domain and returns details about the current DNS provider — including the registrar, supported DNS features, and, if NS records are passed, the authoritative DNS provider managing the zone file. Use it to determine whether Entri supports automatic setup for a domain. It accepts two arguments: | Argument | Type | Required? | Example | | - | - | - | - | | domain | string - a domain with no subdomain | **Yes** | example.com | | config | Entri configuration object | **Yes** | See [Connect Configuration](/connect/configuration) | | config.checkConflicts | Boolean | **No** | When checkConflicts is set to `true`, the system analyzes the DNS records provided in the dnsRecords array and determine whether any of them would require an override. The default value is `false`. | **Important note**: `checkDomain` function also requires you to provide the JWT authentication key within the configuration object. Refer to [JWT authentication section](/connect/configuration#token-creation-jwt) for more information. ### Sample usage: ```js theme={"system"} const domainCheck = await entri.checkDomain("mydomain.com", { "applicationId": "myAppId", "token": "..." "dnsRecords": [ { "host": "www", "ttl": 300, "type": "CNAME", "value": "cname.mydomain.com" }, "checkConflicts": true, // Optional - Increases the response time //... etc ], //...other optional configuration keys } ) ``` ### HTTP endpoint > [!TIP] > > **Premium tier and above.** You can also analyse the support for a domain with our http version of the `checkDomain` function. ```txt theme={"system"} POST https://api.goentri.com/checkdomain Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "domain": "ifpiggiescouldfly.com", "dnsRecords": [ { "host": "shop", "type": "CNAME", "value": "exampledestination.com", "ttl": "300" } ], "checkConflicts": true, // Optional - Increases the response time //... All the rest of the Entri Connect's configuration object } ``` #### Sample Response ```json theme={"system"} { "provider": "Cloudflare", "setupType": "Automatic", "NSSupport": { "root": true, "subdomains": true }, "wwwRedirect": true, "cnameFlattening": true, "wildcardSupport": true, "subdomainCnameNsOverride": false, "spfOverrideSupport": false, "caaSupport": true, "supportsSocialLogin": "yes", "expired": false, "registered": true } ``` For full detail, please refer to [Response reference](#response-reference) ### Detecting Record Conflicts (`checkConflicts`) When using the `checkDomain` function or endpoint, you can optionally enable DNS record conflict detection by adding the `checkConflicts` key to your configuration object. ```js theme={"system"} checkConflicts: true // Optional — default is false ``` When enabled, Entri analyzes all DNS records passed in the `dnsRecords` array and compares them against the existing authoritative DNS configuration of the domain.\ This helps you understand whether applying your desired configuration would require overwriting existing records. #### How conflict detection works If `checkConflicts` is set to `true`, Entri will: 1. Fetch the current DNS records for the relevant hostnames. 2. Compare them with the requested records. 3. Determine whether any requested record would overwrite existing DNS data. A conflict is detected when: * A record with the same **host** and **type** already exists with a different value. * A CNAME conflicts with other record types on the same hostname. * Any record conflicts with an existing CNAME. * MX records differ from the existing set. * SPF TXT records would require merging or replacement. * An NS record subdelegates a hostname where other records are being added. #### Response shape when `checkConflicts` is enabled If enabled, the `checkDomain` response will include a new field: ```json theme={"system"} "recordConflicts": null | [ ... ] ``` * `null` → No conflicts detected * `array` → A list of detected conflicts, including details about the existing and requested records Each conflict object follows this structure: ```json theme={"system"} { "host": "www", "type": "CNAME", "value": "www.exampledomain.com", // "priority": "1" // Only for MX records } ``` #### Example ```json theme={"system"} { "provider": "Cloudflare", "setupType": "Automatic", "recordConflicts": [ { "host": "www", "type": "CNAME", "value": "www.exampledomain.com", }, { "host": "@", "type": "MX", "value": "mail.exampledomain.com", "priority": 1 }, ], "expired": false, "registered": true } ``` #### Notes > [!WARNING] > > * Enabling `checkConflicts` increases response time because authoritative DNS lookups must be performed. > * The data used for the analysis is gotten from the public domain DNS information. * If `checkConflicts: true` is provided **without** `dnsRecords`, the API will return an error. * This feature is designed to help partners determine whether prompting users about DNS overrides is necessary before running the automated setup. ### Response reference This section describes the response structure for the API endpoint or JavaScript function that checks the DNS provider information for a given domain. Depending on the DNS records passed as parameters, the response will include details about the domain's registrar or the authoritative DNS provider currently managing the zone file. #### Example 1: Standard DNS Records (No NS Records) When the request contains DNS records that are not NS (Name Server) records, the response will include information about the current DNS provider, such as the provider name, setup type, and feature support details. **Request:** ```json theme={"system"} { "applicationId": "myAppId", //Only JS function "token": "...", //Only JS function "domain": "entri.com", "dnsRecords": [ { "host": "shop", "type": "CNAME", "value": "exampledestination.com", "ttl": "300" } ] } ``` **Response:** ```json theme={"system"} { "provider": "Cloudflare", "setupType": "Automatic", "NSSupport": { "root": true, "subdomains": true }, "wwwRedirect": true, "cnameFlattening": true, "wildcardSupport": true, "subdomainCnameNsOverride": false, "spfOverrideSupport": false, "caaSupport": true, "supportsSocialLogin": "yes", "expired": false, "registered": true } ``` In this case, the `authoritativeDnsProvider` field is not included because NS records were not part of the request. #### Example 2: Request with NS Records If NS records are provided in the request, the response will also include information about the authoritative DNS provider managing the zone file. **Request:** ```json theme={"system"} { "applicationId": "myAppId", //Only JS function "token": "...", //Only JS function "domain": "entri.com", "dnsRecords": [ { "host": "@", "type": "NS", "value": "ns1.exampledestination.com", "ttl": "300" } ] } ``` **Response:** ```json theme={"system"} { "provider": "Cloudflare", "setupType": "Automatic", "NSSupport": { "root": true, "subdomains": true }, "wwwRedirect": true, "cnameFlattening": true, "wildcardSupport": true, "subdomainCnameNsOverride": false, "spfOverrideSupport": false, "caaSupport": true, "supportsSocialLogin": "yes", "authoritativeDnsProvider": { "provider": "Cloudflare", "setupType": "Automatic", "wwwRedirect": true, "cnameFlattening": true, "wildcardSupport": true, "subdomainCnameNsOverride": false, "spfOverrideSupport": false, "caaSupport": true, "supportsSocialLogin": "yes" }, "expired": false, "registered": true } ``` In this case, the `authoritativeDnsProvider` object is included because NS records were passed, providing details about the provider managing the zone file. ### Response Parameters * **provider**: The current DNS provider for the domain, either based on common DNS records or NS records if provided. * **setupType**: Indicates whether automatic setup is supported for the DNS provider. If not, a manual setup flow will be presented. * **NSSupport**: Object that specifies whether the provider supports nameserver configurations at the root or subdomain levels: * **root**: `true` if root-level nameserver configuration is supported. * **subdomains**: `true` if subdomain-level nameserver configuration is supported. * **wwwRedirect**: Indicates whether the provider supports automatic root domain-to-www redirects. * **cnameFlattening**: Specifies whether the provider supports CNAME flattening (resolving CNAMEs at the root level). * **wildcardSupport**: Indicates if wildcard DNS entries (e.g., `*.domain.com`) are supported by the provider. * **subdomainCnameNsOverride**: If `true`, the provider will automatically remove a CNAME record when a subdomain nameserver with the same name is added. * **spfOverrideSupport**: Determines how Entri handles SPF record updates. `true` if Entri can completely replace the existing SPF record with a new value. `false` if Entri can only append new values to the existing record or create a new one if no SPF record is present. * **caaSupport**: Determines wether the provider supports CAA records or not. * **supportsSocialLogin**: Specifies whether Entri supports social network logins for the provider. `"yes"` if **Entri** supports social login for this provider. `"no"` if **Entri** does not support social login for this provider. `"n/a"` if the **provider** does not support social login, so this setting does not apply. * **expired**: Boolean value indicating if the domain's current DNS setup has expired. * **registered**: Boolean value indicating whether the domain is registered. * **authoritativeDnsProvider** (only included when NS records are provided in the request): * *All the same fields as the above, but apply only to the `authoritativeDnsProvider`* This response format helps users understand the current DNS configuration and determine whether the provider supports certain advanced features like wildcard records, CNAME flattening, and subdomain overrides. ## `entri.checkRecords(config)` This asynchronous method checks whether the DNS records you wish to configure are already present and correctly resolving on a given domain. Use it to determine whether an automated flow is still needed, or to build your own status UI on top of Entri. It takes a single configuration object that includes the domain: | Property | Type | Required? | Example | | - | - | - | - | | applicationId | string | **Yes** | `myAppId` | | token | string | **Yes** | See [Token creation (JWT)](/connect/configuration#token-creation-jwt) | | domain | string | **Yes** | `mydomain.com` | | dnsRecords | array | **Yes** | The records to check, in the [simple array](/connect/dns-records#simple-array) format. The object form from [Multi-Domain & Conditional Records](/connect/multi-domain) is not supported. | ### Sample usage: ```js theme={"system"} const result = await entri.checkRecords({ applicationId: "myAppId", token: "...", domain: "mydomain.com", dnsRecords: [ { host: "www", ttl: 300, type: "CNAME", value: "cname.mydomain.com" }, { host: "@", ttl: 300, type: "TXT", value: "my-verification=123" } ] }); ``` ### Sample response ```json theme={"system"} { "domain": "mydomain.com", "dnsRecords": [ { "host": "www", "ttl": 300, "type": "CNAME", "value": "cname.mydomain.com", "active": true }, { "host": "@", "ttl": 300, "type": "TXT", "value": "my-verification=123", "active": false } ] } ``` | Field | Type | Description | | - | - | - | | `domain` | string | The domain from the request. | | `dnsRecords` | array | The records from the request, in the same order and with the same properties, plus `active`. | | `active` | boolean | Added to each record in `dnsRecords`. `true` when the record already resolves with that value in public DNS. `false` when it is missing, has a different value, or could not be looked up. | `checkRecords` only reports on the records you pass. It does not return other records that already exist on the domain. If `applicationId`, `domain`, or a non-empty `dnsRecords` array is missing, the promise rejects with `Please verify that the config has the required parameters`. If the check fails on Entri's side, it rejects with `There was an error checking the records`. ## `entri.close()` This method will force closing the modal and also trigger the onEntriClose() event with the last step details. Please refer to the [onEntriClose](/connect/events#onentriclose-callback-event) for more information. ## `entri.load()` This method on the [NPM package](https://www.npmjs.com/package/entrijs) loads the EntriJS script so it's ready for use when called. ## `entri.loadSharedFlow(url)` This method launches the Entri Connect modal using a shared‑link configuration. `entri.loadSharedFlow(url)` accepts a single parameter: | Argument | Type | Required? | Description | | - | - | - | - | | `url` | string | Yes | A sharing‑link URL that contains a previously saved Entri configuration. | ### How it works 1. The function receives a sharing‑link URL. 2. Entri fetches the configuration stored within that sharing link. 3. Once retrieved, Entri automatically initializes the flow and opens the Entri Connect modal. 4. The experience is identical to calling `entri.connectDomain(config)` with the same configuration object. ### Example usage ```js theme={"system"} entri.loadSharedFlow("https://example.com/shared/abc123"); ``` ### Notes * The shared‑link must contain a valid configuration generated by Entri's sharing‑link feature. * Any callbacks such as `onEntriClose` or `onSuccess` will behave the same as when using `entri.connectDomain()`. * Errors related to invalid or expired shared links will surface in the console with the corresponding error code. ## Check flow status This server-side endpoint returns the current state of a Connect flow identified by its `job_id`. Use it to follow a flow you started from your backend, for example after creating a [sharing link](/connect/shared-links), or to confirm on demand that a domain's DNS records have propagated. [Webhooks](/webhooks-overview) remain the recommended way to be notified when a flow changes; this endpoint complements them when you need to read the state at a given moment. ```bash theme={"system"} GET https://api.goentri.com/connect/{job_id}/status Header "Authorization: Bearer [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` Authentication uses the same short-lived JWT as every other Entri API. Mint it server-side with your `applicationId` and `secret` as described in [Token creation (JWT)](/connect/configuration#token-creation-jwt), and send it as a Bearer token together with the `applicationId` header. The endpoint only returns flows that belong to that `applicationId`. ### Path parameters | Parameter | Type | Required? | Description | | - | - | - | - | | `job_id` | string (UUID v4) | Yes | The Connect flow identifier. Capture it from the [`onSuccess`](/connect/events#onsuccess-callback-event) browser event, from the `job_id` returned when you [create a sharing link](/connect/shared-links#sharing-links-api), or from the `id` of any webhook for the flow. | ### Example request ```bash theme={"system"} curl -X GET \ "https://api.goentri.com/connect/9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de/status" \ -H "Authorization: Bearer " \ -H "applicationId: " ``` ### Example response ```json theme={"system"} { "job_id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "connected": true, "status": "completed", "domain": "example.com" } ``` | Field | Type | Description | | - | - | - | | `job_id` | string | The flow identifier from the path. | | `connected` | boolean | `true` once Entri has confirmed that the DNS records for the flow propagated. This is the same condition that produces `propagation_status: "success"` in the webhook. | | `status` | string | The overall state of the flow. One of the values in the table below. | | `domain` | string | The domain the flow is configuring. | ### Status values | `status` | Meaning | | - | - | | `pending` | The flow has not produced records yet. Either the link was created and the user has not started the flow, or the user chose manual setup and the records have not been detected. | | `in_progress` | The user started an automatic flow and Entri is still applying or checking the records. | | `completed` | The DNS records propagated. For a manual setup flow, this means the records the user added were detected. | | `failed` | The flow ended with an error and the records did not propagate. | `connected` is the field to rely on when deciding whether the domain is working. `status` tells you where the user is in the flow when `connected` is still `false`. ### Errors Errors are returned as `{ "message": "Error description" }` with the corresponding HTTP status code. | HTTP Status | Message | When it happens | | - | - | - | | `400 Bad Request` | `Invalid job_id format` | The `job_id` is missing or is not a UUID v4. | | `400 Bad Request` | `Connect flow not found for job id: {job_id}` | No flow exists with that `job_id`. | | `400 Bad Request` | `Connect flow not found for job id associated with application id: {application_id}` | The flow exists but belongs to a different `applicationId`. | | `403 Forbidden` | `Application ID not found` or `JWT token is expired or invalid` | Credentials are missing or invalid. | | `500 Internal Server Error` | `Failed to retrieve Connect flow status` | An unexpected error occurred on Entri's side. | # Shared Links Source: https://developers.entri.com/connect/shared-links Share setup links with end-users via loadSharedFlow(). ## Sharing Link Custom Domain > [!TIP] > > **Enterprise tier only** Enterprise customers can replace the default `app.goentri.com` base URL in sharing links with a custom, branded domain. This creates a seamless white-labeled experience for the end users receiving and completing the shared flow. **Default sharing link:** ``` https://app.goentri.com/share/:shareId ``` **Custom domain sharing link:** ``` https://domains.yourbrand.com/share/:shareId ``` The custom domain serves the Entri sharing link experience transparently, so the path structure and behavior remain identical to the default. ### Configuration Configure your sharing link custom domain in the Entri Dashboard: 1. Go to **Account Settings → Application Settings** 2. Locate the **Sharing link URL** field 3. Enter your desired base URL (e.g., `https://domains.yourbrand.com`) 4. Save your changes > [!NOTE] > > Your custom domain must be set up to point to Entri. The required DNS configuration depends on whether you're using a subdomain or a root domain: > > * **Subdomain** (e.g., `domains.yourbrand.com`): add a `CNAME` record pointing to `sharing.goentri.com`. > * **Root domain** (e.g., `yourbrand.com`): add the following `A` records (no `AAAA` records are required): > * `15.197.212.204` > * `3.33.229.73` > > Contact your account manager if you need assistance with the DNS configuration. Once configured, the `sharing_link_url` setting is automatically applied to all sharing links generated for that application — no code changes are needed on the frontend. ### Effect on the Sharing Links API When a custom domain is set, the `link` field returned by the [Sharing Links API](#sharing-links-api) will automatically reflect your custom domain instead of `app.goentri.com`: ```json theme={"system"} { "link": "https://domains.yourbrand.com/share/dd339cf05f2646539e79251f8e62f0c5", "job_id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de" } ``` ### Using with `entri.loadSharedFlow()` Pass the full custom-domain URL directly to `entri.loadSharedFlow()` — no additional configuration is needed: ```js theme={"system"} entri.loadSharedFlow("https://domains.yourbrand.com/share/dd339cf05f2646539e79251f8e62f0c5"); ``` ## Webhook Notifications When your users go through an Entri flow, Entri sends webhook notifications to keep your backend informed about flow progress and outcomes. To learn more about webhook configuration and delivery, visit our [webhook documentation page](/webhooks-overview). ### Correlating Shared / Derived Flows Some platforms allow users to **share** a flow (for example, sending a link to another person). When that shared link is used, the resulting run is considered a **derived flow**. To help you correlate the derived flow back to the original one, Entri supports propagating an `origin_flow_id` value into webhook events. #### How it works * If a flow is initialized with `origin_flow_id` in its configuration, Entri stores that value on the created flow. * For **every webhook event** emitted for that flow, Entri includes the stored value as `origin_flow_id`. * If `sharedFlowId` was **not** provided when the flow was created, webhook payloads will **not** include `origin_flow_id`. Notes: * `origin_flow_id` is propagated **as-is** (no lookup, validation, or mutation). * This is a **non-breaking** change: existing webhook fields remain unchanged, and `origin_flow_id` is optional. #### Webhook payload example ```json theme={"system"} { "event": "domain.purchased", "flowId": "flow_123", "origin_flow_id": "flow_abc", "data": { "domain": "example.com", "status": "registered" } } ``` ### Shared flows and sharing link domains When a user completes an Entri flow that was initiated via a [sharing link](#sharing-links-api), Entri fires webhook events just like any standard flow. A few things to keep in mind: * The `job_id` returned when the sharing link was created is the identifier used to correlate all webhook events for that flow. It remains consistent regardless of whether a [custom sharing link domain](#sharing-link-custom-domain) is configured — the domain only affects the URL of the link itself, not the webhook payload. * To retrieve the last webhook event for a shared flow, use the [Get last webhook by job ID](/webhooks-overview#get-last-webhook-by-job-id) endpoint with the `job_id`. * To read the current state of a shared flow without waiting for a webhook, use [Check flow status](/connect/sdk#check-flow-status) with the `job_id`. * If the flow was initiated with a `sharedFlowId`, webhook events for the derived flow will include an `origin_flow_id` field. See [Correlating Shared / Derived Flows](#correlating-shared--derived-flows) for details. ## Sharing links API The **Sharing Links API** allows users to securely hand off an ongoing Entri flow, such as Connect or Sell, to another person for completion. This is particularly useful when the current user does not have the required DNS credentials (in Entri Connect) or payment information (in Entri Sell). By generating a sharing link, you can let a colleague, client, or administrator pick up exactly where the flow was left off and complete the process without starting over. For Enterprise plan integrations, the sharing link URL can be white-labeled to use your own custom domain. See [Sharing Link Custom Domain](#sharing-link-custom-domain) for configuration details. ### Entri Connect ``` POST https://api.goentri.com/sharing/connect Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "applicationId":"yourApplicationID", "config":{ "prefilledDomain": "mydomain.com", "dnsRecords":[ { "type":"CNAME", "host":"www", "value":"test.com", "ttl":300 } ] } } //All the rest of possible configuration options, see https://developers.entri.com/connect/configuration for more details. ``` #### Successful response (200 status) ```JSON JSON theme={"system"} { // If a custom Sharing Link domain is configured (Enterprise), "link" will reflect that domain. // See: https://developers.entri.com/connect/shared-links#sharing-link-custom-domain "link": "https://app.goentri.com/share/dd339cf05f2646539e79251f8e62f0c5", "job_id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de" } ``` # Connect White Label Source: https://developers.entri.com/connect/white-label The whiteLabel properties supported by the Connect modal: branding, theme, custom properties, and custom copy. > [!TIP] > > **Entri Connect Growth tier and above. Included on Entri Sell** The `whiteLabel` object lets you customize the Entri Connect modal to match your branding. Everything below is configured under the `whiteLabel` key of the config passed to [`entri.connectDomain(config)`](/connect/sdk). All properties are optional. Boolean flags default to `false`, and any property left unset falls back to Entri's default. You may need an Enterprise level account for some properties to be available; contact your account manager with questions. [Entri Unify](/unify/overview) runs on this same modal, so these properties also theme the Unify flow, including its selection screen. See [Unify configuration](/unify/configuration#white-label) for the Unify-specific details. > [!NOTE] > > This page documents the redesigned Connect modal, which is the default UI for every application, and lists only the `whiteLabel` keys it supports. The previous modal is deprecated. If your integration still passes keys from it, the [legacy keys page](/connect/white-label-legacy) lists the ones the redesigned modal still honors and how to migrate off them. ## `whiteLabel` object **hideEntriLogo** `boolean` When true, hides all mentions of "Powered by Entri", including the footer branding and the Entri globe in the domain icon. **hideCompanyLogo** `boolean` Hides your logo in the domain icon on the initial screen, the multi-domain selector, and the Unify selection screen. **hideCompanyName** `boolean` Hides the company name across the flow. **logo** `string` An `https` URL. When set, it overrides the configured Application logo and uses this one instead. We recommend an SVG or PNG that is 1:1. Invalid URLs are rejected with a console error and the logo is left blank. **logoBackgroundColor** `string` Sets a background color for the logo mask. Useful if your logo is white with a transparent background. **removeLogoBorder** `boolean` When true, removes the rounded mask/border applied over your logo. **removeShareLogin** `boolean` When true, removes the sharing link functionality across the whole application. **skipCongratulationsScreen** `boolean` Skips the congratulations screen shown after a successful domain configuration. `customProperties.congratulations.disableScreen` has the same effect. **theme** `object` Colors, fonts, and dimensions. See [theme](#whitelabel-theme-object) below. **customProperties** `object` Per-screen behavior toggles. See [customProperties](#whitelabel-customproperties-object) below. **customCopy** `object` Text and copy overrides per locale. See [customCopy](#whitelabel-customcopy-object) below. > [!TIP] > > To white-label the sharing link URL itself, replacing `app.goentri.com` with your own branded domain, configure the **Sharing link URL** field in your Dashboard under Account Settings, Application Settings. This is an Enterprise-tier feature and requires no code changes. See [Sharing Link Custom Domain](/connect/shared-links#sharing-link-custom-domain) for details. ### `whiteLabel.theme` Object Customizes the colors, fonts, and dimensions of the modal to match your app's branding. **bg** `string` Primary brand color (hex code). Applies to primary buttons and links. Non-hex values are rejected with a console error and the default is used. **Recommended for quick theming.** **fg** `string` Text color on primary elements (hex code). Applies to text on buttons. Non-hex values are rejected with a console error and the default is used. **Recommended for quick theming.** **darkMode** `string` Color scheme: `"disabled"` (light), `"enabled"` (dark), or `"auto"` (matches the system preference). Defaults to `disabled`. **width** `string` The modal's width. In embedded mode it also sets the width of the embedded iframe, unless `general.embeddedMode.fillContainer` is `true`. Ignored on shared-link views. **modalBackground** `string` Background color of the modal container. **links** `string` Links color, to override HTML's default blue. **lightBox.color** `string` Backdrop/overlay color. Use a transparent `hsla` or `rgba` value. **buttons.border.style** `string` The `border` CSS styling for buttons, e.g. `solid 1px #000`. **buttons.border.radius** `string` The `border-radius` CSS styling for buttons, e.g. `5%` or `10px`. **inputs.border.radius** `string` The `border-radius` CSS styling for input fields, e.g. `8px`. **inputs.borderRadius** `string` camelCase alias of `inputs.border.radius`. **googleFont.family** `string` Overrides the modal `font-family` with a Google Font. The font must exist in the Google Fonts catalog; otherwise a console error is logged and the default font is kept. **googleFont.variant** `string` The weight to load for the Google Font, e.g. `400`. Must be a weight the font supports. **googleFont.boldWeight** `string` The bold text weight for the Google Font, e.g. `600`. ### `whiteLabel.customProperties` Object > [!TIP] > > **Enterprise tier.** Changes behaviors related to specific elements or a screen's behavior. **general.embeddedMode.selector** `string` A valid CSS selector (e.g. `#entri-container`) for the target element where the Entri Connect UI should be embedded. If null, the flow opens in a modal. If the element is not found, the launch is aborted with a console error. The embedded iframe defaults to 600 by 600 pixels with the modal's rounded corners and shadow; use `theme.width` to change the width and `containerStyles` to change the corners and shadow. **general.embeddedMode.fillContainer** `boolean` When `true`, makes the embedded widget fill its parent container at 100% width and height, and removes the default border-radius and box-shadow. Requires `general.embeddedMode.selector` to be set. **general.embeddedMode.containerStyles** `object` Styles applied to the embedded iframe. Only `borderRadius` and `boxShadow` are honored, in camelCase, e.g. `{ "borderRadius": "8px" }`. **general.hideCloseButton** `boolean` When `true`, hides the close (X) button in the header. Useful when your own UI is responsible for dismissing the widget. **general.useCustomExitConfirmation** `boolean` When `true`, Entri's default "Are you sure you want to leave?" exit confirmation dialog is suppressed and the [`onEntriRequestClose`](/connect/events#onentrirequestclose-event) event fires instead when the user clicks the close (X) button. Your app must then run its own confirmation UI and call [`entri.close()`](/connect/sdk#entri-close) to dismiss the widget. **existingRecords.disableScreen** `boolean` Disables the Existing Records override prompt and confirms automatically. **manualConfiguration.disableScreen** `boolean` Prevents the manual screen from being shown. Adds `manualScreenDisabled: true` to the `onEntriClose` event. **congratulations.disableScreen** `boolean` Skips the congratulations screen after the domain connection. Equivalent to the top-level `skipCongratulationsScreen`. **providerLogin.showEntriToS** `boolean` Displays the terms of service on the Provider Login screen. Also accepted as a top-level `whiteLabel.showEntriToS`. **providerLogin.changeProvider.hide** `boolean` Hides the "Change provider" option in the "Other ways to connect" dialog. **providerLogin.gotoManualLink.hide** `boolean` Hides the "Set up manually" option in the "Other ways to connect" dialog on the Provider Login screen. **providerLogin.disableExtendedLoginAnimation** `boolean` Disables the extended login animation and leaves only the default one in place. **providerLogin.forwardLink.disable** `boolean` Keeps the forward-to-a-colleague option visible, but clicking it no longer opens Entri's forward screen. Entri emits the `onEntriSharingLinkClick` window event instead so your app can handle the share. **providerLogin.forwardLink.hide** `boolean` Hides the Forward Link entirely, so the forward-to-a-colleague link does not render on the Provider Login or manual setup screens. **sharedFlow\.background** `object or string` Background of the shared-link flow page. Use a CSS `background` string, or an object with camelCase background sub-properties, e.g. `{ "backgroundColor": "red" }`. **sharedFlow\.hideDecorations** `boolean` Disables the default Entri background decorations on the shared-link flow. ### `whiteLabel.customCopy` Object > [!TIP] > > **Entri Connect Premium tier and above. Included on Entri Sell** Customizes texts along the flow to match your brand's tone or when the default copy doesn't fit your use case. Translations are keyed by locale; the `en` locale is required and all missing translations fall back to English. **domainAnalysis.title.\$\{locale}** `string` Sets the title of the domain analysis screen for the specific locale. **domainAnalysis.subTitle.\$\{locale}** `string` Sets the subtitle shown under the domain analysis title for the specific locale. **providerLogin.message.\$\{locale}** `string` Sets the Provider Login introduction's translation text for the specific locale. Accepts the `{PROVIDER}` replacement token. Supports `` for bold. **login2FA.description.generic.\$\{locale}** `string` Sets the description of the two-factor authentication screen for all 2FA methods. **login2FA.description.sms.\$\{locale}** `string` Sets the description of the two-factor authentication screen for SMS codes. **login2FA.description.email.\$\{locale}** `string` Sets the description of the two-factor authentication screen for email codes. **login2FA.description.authenticatorApp.\$\{locale}** `string` Sets the description of the two-factor authentication screen for authenticator apps. **manuallyScreen.title.\$\{locale}** `string` Sets the title of the manual configuration screen for the specific locale. **manuallyScreen.disableManualSetupDocumentationLink** `boolean` Disables opening the documentation URL set in the `manualSetupDocumentation` configuration property. Commonly combined with the `onEntriManualSetupDocumentationClick` event to trigger a custom JS function. **manuallyScreen.stepByStepGuide.\$\{locale}** `string` Sets the step-by-step-guide translation text for the specific locale. Supports `` tags for triggering JS functions (useful for chatbots): enclose the call-to-action text in `` and catch the `onEntriManualSetupDocumentationClick` event. **congratulations.title.\$\{locale}** `string` Sets the Congratulations title's translation text for the specific locale. Accepts the `{DOMAIN}` replacement token. Supports `` for bold. **congratulations.description.\$\{locale}** `string` Sets the Congratulations description's translation text for the specific locale. Accepts the `{USER}` and `{DOMAIN}` placeholders. Supports `` for bold. **congratulations.button.\$\{locale}** `string` Sets the Congratulations button call-to-action's translation text for the specific locale. Supports `` for bold. **congratulations.user** `string` The value that replaces the `{USER}` token in `congratulations.description`. **congratulations.sell.title.\$\{locale}** `string` Sets the Congratulations title for the Entri Sell flow. Accepts the `{DOMAIN}` and `{APPLICATION_NAME}` replacement tokens. Supports `` for bold. **congratulations.sell.description.\$\{locale}** `string` Sets the Congratulations description for the Entri Sell flow. Accepts the `{USER}` and `{APPLICATION_NAME}` replacement tokens. Supports `` for bold. **congratulations.sell.user** `string` The value that replaces the `{USER}` token in `congratulations.sell.description`. **errorScreen.$\{errorCode\}.title.$\{locale}** `string` Sets the title of the error screen for a specific [error code](/connect/events#possible-error-codes), e.g. `errorScreen.GenericError.title.en`. **errorScreen.$\{errorCode\}.details.$\{locale}** `string` Sets the details text of the error screen for a specific error code, e.g. `errorScreen.TimeoutError.details.en`. > [!NOTE] > > Locales are codes such as `en`, `es`, `fr`, etc. If no matching translation is found for the locale in use, Entri's default text is used. See the full list of supported locales in the [configuration reference](/connect/configuration#entri-connectdomain-config). ### White label code example ```json theme={"system"} { "whiteLabel": { "hideEntriLogo": true, "skipCongratulationsScreen": true, "theme": { "fg": "#FFFFFF", "bg": "#1F77F8", "darkMode": "auto" }, "customProperties": { "providerLogin": { "changeProvider": { "hide": true } } }, "customCopy": { "congratulations": { "title": { "en": "You're all set, {DOMAIN}!" } } } } } ``` # Connect White Label (Legacy Keys) Source: https://developers.entri.com/connect/white-label-legacy Legacy whiteLabel keys the redesigned Connect modal still honors for backwards compatibility, and how to migrate off them. > [!WARNING] > > **The legacy Connect modal is deprecated.** The redesigned modal is the default for every application, and its supported `whiteLabel` keys are documented in the [Connect White Label](/connect/white-label) reference. Use that page for new integrations. > > This page lists only the legacy keys the redesigned modal still honors for backwards compatibility. They are not part of the supported surface and can change without notice, so plan to migrate off them. Any key not listed here is either on the current reference, unchanged, or was removed and has no effect. See [Migrating to the redesigned modal](#migrating-to-the-redesigned-modal) below for the key-by-key mapping. ## Migrating to the redesigned modal The redesigned modal is the default for every application and no code change is needed to adopt it. Every key on the [current reference](/connect/white-label) works the same way it did before. This section covers the legacy keys that were renamed, plus the ones listed below that still work but are not supported. ### Renamed keys Update your config to the current key. Where Entri migrates the key automatically, it also logs a deprecation warning in the browser console; if both keys are present, the current key wins. | Deprecated key | Current key | Behavior | | - | - | - | | `customProperties.embeddedSelector` | `customProperties.general.embeddedMode.selector` | Migrated automatically with a console warning. | | `customProperties.providerLogin.gotoManualLink.disable` | `customProperties.providerLogin.gotoManualLink.hide` | Both keys work; no warning is logged. | `theme.colors.*` is a separate case. The current build still reads it on the redesigned modal, but it is not a supported surface: its keys are not covered by Entri's theming maps and can stop working or change without notice, and the error colors are fixed by the design regardless. Migrate to the flat `theme` keys. The color keys that still take effect are listed [below](#whitelabel-theme-colors-object). `customProperties.providerLogin.socialIcons.disable` is not supported either. The redesigned modal has no social login buttons; if you used the key to hide the manual setup path, use `customProperties.providerLogin.gotoManualLink.hide`. ## Keys kept for backwards compatibility The keys below still work on the redesigned modal but are not part of its supported surface. Where a current key exists, prefer it. ### `whiteLabel.customProperties` | Property | Type | Default | Description | | - | - | - | - | | embeddedSelector | string | null | **Deprecated**, use `general.embeddedMode.selector`. A valid CSS selector (e.g., #entri-container) specifying the target element where the Entri Connect login UI should be embedded. If null, the authentication flow will open in a modal. | | initialScreen.showManualInstructionsCTA | boolean | false | Enables the go-to manual link in the initial screen. Closes the modal and adds the `authenticateManuallyClicked: true` key to the `onEntriClose` event. On the redesigned modal this first screen renders only when `prefilledDomain` is set. | | providerLogin.gotoManualLink.disable | boolean | false | Hides the go to manual text copy | ### `whiteLabel.customCopy` Translations are keyed by locale; the `en` locale is required. | Property | Type | Default | Description | | - | - | - | - | | initialScreen.title.\$\{locale} | string | null | Sets the **title's** translation text for the specific locale. (one of the available codes such as en,es,fr, etc., for example initialScreen.title.en). Accepts applying bold when using the following tags ``. For Entri Sell, sets the title text that appears on the initial screen of the domain purchase flow, localized by language. Example: "Search for your domain" | | initialScreen.subTitle.\$\{locale} | string | null | Sets the **subtitle's** translation text for the specific locale. | ### `whiteLabel.theme.colors` Object > [!WARNING] > > The `colors` object is not part of the supported surface of the redesigned modal. Use the flat `theme` keys documented in the [Connect White Label](/connect/white-label#whitelabel-theme-object) reference instead. The `colors` object provides granular control over individual UI elements. Most of `colors` properties accept standard CSS color formats (hex, rgb, rgba, hsl, hsla), except `bg`, `fg`, `buttonPrimary`, `errorShadowColorRgb`, `errorShadowColorRgb`. **Special Format Requirements:** | Property | Format | Example | Notes | | - | - | - | - | | `buttonPrimary` | Hexadecimal string | `"#1f77f8"` | Same format for `theme.bg` and `theme.fg`. | **Colors Property Reference:** The color properties the redesigned modal still reads, and where each one is applied: | Property | Applied To | CSS Variable | Example Usage | | - | - | - | - | | `modalBackground` | Main modal container | `--modal-background` | Background of the entire modal | | `modalOverlay` | Primary overlay | `--modal-overlay` | Backdrop when modal is open | | `textPrimary` | Main text content | `--text-primary` | Primary text throughout modal | | `textSecondary` | Supporting text | `--text-secondary` | Descriptions, helper text | | `buttonPrimary` | Primary buttons | `--button-primary` | Main action buttons | | `buttonPrimaryText` | Primary button text | `--button-primary-text` | Text on primary buttons | | `buttonSecondaryText` | Secondary button text | `--button-secondary-text` | Text on secondary buttons | | `linkPrimary` | Primary links | `--link-accent` | Main hyperlinks | | `inputBackground` | Form input backgrounds | `--input-background` | Text input fields | | `inputBorder` | Form input borders | `--input-border` | Input field borders | | `inputText` | Input field text | `--input-text` | Text inside input fields | | `inputPlaceholder` | Input placeholder text | `--input-placeholder` | Placeholder text in inputs | > [!NOTE] > > **Dark Mode Preset:** When `darkMode: 'enabled'` is set, Entri automatically applies a comprehensive dark color scheme. You can still override individual colors by specifying them in the `colors` object after setting `darkMode`. > [!NOTE] > > **Quick Theme + Advanced Customization:** The `bg` and `fg` properties provide fast global theming, while the `colors` object allows granular control. They work together - `colors` properties override the automatic mappings from `bg`/`fg` where specified. > > **Example:** > > ```javascript theme={"system"} > theme: { > bg: "#1f77f8", // Quick: sets buttons, links, shadows > fg: "#FFFFFF", // Quick: sets text on primary elements > colors: { > modalBackground: "#F5F5F5", > buttonPrimary: "#FF0000" // Override: specific customization > } > } > ``` # DNS Concepts Source: https://developers.entri.com/dns-concepts Essential DNS knowledge for working with Entri Understanding DNS basics helps you configure domains correctly and troubleshoot issues faster. This guide covers the concepts most relevant to Entri integrations. ## What Entri Does (and Doesn't Do) Entri is a platform that helps developers offer seamless domain experiences to their users. | Product | What it does | | - | - | | **Connect** | Automates DNS configuration at the user's existing provider | | **Sell** | Enables in-app domain purchasing through partner registrars (IONOS, Squarespace) | | **Secure** | Provisions and manages SSL certificates | | **Power** | Powers custom domains for SaaS applications | | **Monitor** | Tracks DNS changes and alerts on issues | > [!NOTE] > > **Key distinction**: When users connect an existing domain through Entri Connect, we configure DNS records at their current provider. We don't transfer domains or change where they're registered. ### The Domain Ecosystem | Service | Role | Examples | | - | - | - | | **Domain Registrar** | Sells and registers domain names | GoDaddy, Namecheap, IONOS | | **DNS Provider** | Hosts DNS records (often the registrar itself) | Cloudflare, Route 53 | | **Entri** | Automates the configuration process | — | ## DNS Record Types ### A Record Points a domain to an IPv4 address. ``` example.com → 93.184.216.34 ``` **Use case**: Pointing your root domain to a server. ### AAAA Record Points a domain to an IPv6 address. ``` example.com → 2606:2800:220:1:248:1893:25c8:1946 ``` **Use case**: Same as A record, but for IPv6. ### CNAME Record Points a domain to another domain (an alias). ``` www.example.com → example.com shop.example.com → myapp.herokuapp.com ``` **Use case**: Subdomains that should resolve to another hostname. > [!WARNING] > > **CNAME records cannot be used at the root domain (@)** on most DNS providers. See [CNAME at Root](#cname-at-root-the-technical-limitation) below. ### MX Record Directs email to mail servers. ``` example.com → mail.example.com (priority: 10) ``` **Use case**: Email delivery. Always requires a priority value. ### TXT Record Stores text data, commonly used for verification and email authentication. ``` example.com → "v=spf1 include:_spf.google.com ~all" ``` **Use case**: SPF, DKIM, DMARC, domain verification. ### NS Record Specifies which DNS servers are authoritative for the domain. ``` example.com → ns1.dnsprovider.com ``` **Use case**: Delegating DNS to a different provider. Rarely needed in typical Entri flows. ## Root Domain vs Subdomain | Term | Example | Also called | | - | - | - | | **Root domain** | `example.com` | Apex domain, naked domain, @ | | **Subdomain** | `www.example.com`, `shop.example.com` | — | In DNS configuration: * `@` or blank host = root domain * Any other value = subdomain ## CNAME at Root: The Technical Limitation ### Why it doesn't work The DNS specification (RFC 1034) states that if a CNAME record exists for a name, no other records can exist for that name. Since root domains typically need MX records (for email) and often TXT records (for verification), a CNAME at root would break email and other services. ### What happens when you try | Provider | Behavior | | - | - | | Most providers | Reject the record or show an error | | Cloudflare | Accepts it via "CNAME flattening" (see below) | | Route 53 | Accepts it via "ALIAS" records | ### Solutions **Option 1: Use A records instead** ```javascript theme={"system"} dnsRecords: [ { type: "A", host: "@", value: "93.184.216.34", ttl: 300 } ] ``` **Option 2: Use a provider that supports CNAME flattening** Some DNS providers work around this limitation using techniques like CNAME flattening, ALIAS records, or ANAME records. The provider resolves the CNAME to its final IP address and returns that as an A record. The user sees a CNAME in their DNS panel, but queries receive an A record response. Support varies by provider and may have restrictions (for example, some only support aliasing to their own resources). Use the `checkDomain` response to detect whether the user's provider supports this: ```javascript theme={"system"} const result = await entri.checkDomain("example.com", config); if (result.cnameFlattening) { // Provider supports CNAME at root — safe to use CNAME records } ``` **Option 3: Use Entri Secure** [Entri Secure](/secure/overview) handles root domain configuration automatically by pointing A records to Entri's servers, which then proxy traffic to your application. ```javascript theme={"system"} { secureRootDomain: true, wwwRedirect: true, // ... } ``` ### Detecting flattening support The `checkDomain` response includes CNAME flattening information: ```javascript theme={"system"} const result = await entri.checkDomain("example.com", config); if (result.cnameFlattening) { // Provider supports CNAME at root } ``` ## TTL (Time to Live) TTL specifies how long DNS resolvers should cache a record before checking for updates. | TTL | Meaning | Use case | | - | - | - | | 300 (5 min) | Minimum recommended | During setup, when changes are expected | | 3600 (1 hour) | Standard | Normal operation | | 86400 (24 hours) | Long cache | Stable records that rarely change | > [!NOTE] > > Entri uses 300 seconds as the minimum TTL. Some providers enforce their own minimums and will override lower values. ## DNS Propagation After DNS changes, it takes time for the new records to be visible worldwide. This is called propagation. **Typical propagation times:** * Same DNS provider: Minutes * Across the internet: 15 minutes to 48 hours **What affects propagation:** * Previous TTL value (old records stay cached until TTL expires) * Geographic location of DNS resolvers * Provider-specific delays **Checking propagation:** Entri automatically monitors propagation and sends webhooks when records are fully propagated. You can also use external tools like [whatsmydns.net](https://www.whatsmydns.net). ## Common Misconceptions ### "Entri transferred my domain" Entri Connect configures DNS records at your existing provider. It doesn't transfer domains between registrars. If you purchased a domain through Entri Sell, that domain is registered with a partner registrar (like IONOS) and managed through their systems. ### "I need to change my nameservers to use Entri" Not required for most use cases. Entri works with your existing DNS provider. Nameserver changes are only needed if you're delegating DNS to a different provider entirely. ### "My DNS changes should be instant" DNS propagation takes time. Even after Entri reports success, some users may not see changes immediately due to caching. ### "CNAME and A records do the same thing" They're fundamentally different. A records point to IP addresses; CNAME records point to other domain names. This matters for root domains and for services that change IPs frequently. ## Related Pages * [Provider Limitations](/provider-limitations) - Specific constraints by DNS provider * [Errors Overview](/errors/overview) - Common errors and how to resolve them * [Handling DKIM, SPF, DMARC](/handling-dkim-spf-dmarc-records) - Email authentication records # Overview Source: https://developers.entri.com/entri-mcp Enable AI agents to search, register, and connect domains through Entri's MCP server. ## Overview Model Context Protocol (MCP) is an open standard that gives AI agents a consistent, secure way to discover and use external tools and services. The **Entri MCP server** exposes Entri Connect and Sell products as MCP tools, allowing AI assistants to handle domain operations on behalf of your users entirely within the conversation. **MCP Server URL:** `https://mcp.entri.com/mcp` Depending on which Entri product and registrar are configured for your account, the MCP tools behave differently: * **Entri Connect** — Returns a sharing link the user follows to connect an existing domain to your platform. * **Entri Sell (IONOS / Squarespace / GoDaddy)** — Returns a sharing link the user follows to purchase a domain through the registrar's checkout. *** ## Authentication Entri MCP uses **OAuth 2.0 machine-to-machine (M2M) authentication**, following the [MCP Authorization specification](https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization) and the **client credentials grant** defined in [RFC 6749 §4.4](https://www.rfc-editor.org/rfc/rfc6749#section-4.4). Your **Client ID** and **Client Secret** (available in the Dashboard) are used to obtain a short-lived access token from the OAuth Authentication URL. That token is then passed as a Bearer token on each MCP request. **Token request:** ```http theme={"system"} POST https://mcp.entri.com/token Content-Type: application/x-www-form-urlencoded grant_type=client_credentials &client_id=YOUR_CLIENT_ID &client_secret=YOUR_CLIENT_SECRET &userId=END_USER_ID &geo=us ``` | Parameter | Required | Description | | - | - | - | | `grant_type` | Yes | Must be `client_credentials` | | `client_id` | Yes | Your Client ID from the Dashboard | | `client_secret` | Yes | Your Client Secret from the Dashboard | | `userId` | No | ID of the end user on whose behalf the request is made | | `geo` | No | Geographic region for the request (e.g. `us`, `fr`) | **Token response:** ```json theme={"system"} { "access_token": "eyJ...", "token_type": "Bearer" } ``` Use the returned `access_token` as a Bearer token on all MCP requests: ``` Authorization: Bearer {access_token} ``` > [!NOTE] > > MCP hosts using `mcp-remote` (VS Code, Cursor, etc.) can pass credentials directly as `Authorization: Bearer YOUR_CLIENT_ID:YOUR_CLIENT_SECRET` in the configuration JSON — no token exchange needed. For programmatic or server-side integrations, use the OAuth flow above. *** ## Dashboard — MCP Settings All MCP configuration is managed under **Dashboard → Application Settings → MCP Settings**. ### MCP Connection Credentials These credentials are used to authenticate your MCP server with Entri. Find them under the **MCP Connection** section of MCP Settings. | Field | Description | | - | - | | **Client ID** | Your application identifier. Read-only, copyable. | | **Client Secret** | Your secret key. Masked by default. Rotatable from Application Settings. | | **OAuth Authentication URL** | Token endpoint for obtaining short-lived access tokens (client credentials grant). | | **MCP Server URL** | The remote MCP server endpoint to configure in your MCP host. | *** ### Entri Connect Settings Configure how the MCP retrieves DNS records and provider options for Connect domain flows. The `connect-domain` tool always returns a **sharing link** — this setting determines what configuration is pre-loaded when the user opens that link. #### Configuration Source **Static Configuration** Use Static Configuration when every user needs the same DNS records. Provide a single Entri configuration that will be applied to all Connect flows. ```json theme={"system"} { "whiteLabel":{ ... }, "dnsRecords": [ { "type": "A", "host": "@", "value": "93.184.216.34", "ttl": 300 } ], //... every other optional key } ``` **Dynamic Endpoint** Use Dynamic Configuration when each user needs a unique set of DNS records. Provide an endpoint URL that Entri will call per-request to retrieve the full configuration. Entri authenticates requests to your endpoint using **Basic Authentication**. Provide the username and password in the fields below the URL. **Endpoint requirements:** * Must accept `GET` requests. * Must support Basic Authentication. * Entri will include `userId` as a query string parameter (e.g. `?userId=abc123`) so you can return a user-specific configuration. * Must return an Entri configuration object. Minimal example: ```json theme={"system"} { "applicationId": "your-application-id", "dnsRecords": [ { "host": "@", "type": "TXT", "ttl": 300, "value": "this-is-a-sample-value" } ] } ``` For the full configuration reference, see the [API Reference](/connect/configuration). *** ### Entri Sell Settings Configure how the MCP retrieves DNS records and whitelabel options for Sell domain purchase flows. This applies when your account uses a **sharing registrar** (IONOS, Squarespace, or GoDaddy) — the purchase flow is presented to the user as a link. #### Configuration Source **Static Configuration** Use Static Configuration when every user needs the same DNS records and branding. Provide a single Entri configuration applied to all Sell flows. ```json theme={"system"} { "whiteLabel":{ ... }, "dnsRecords": [ { "type": "A", "host": "@", "value": "93.184.216.34", "ttl": 300 } ], //... every other optional key } ``` **Dynamic Endpoint** Use Dynamic Configuration when each order requires a unique set of DNS records or custom branding. Provide an endpoint URL that Entri will call per-request. Entri authenticates requests to your endpoint using **Basic Authentication**. Provide the username and password in the fields below the URL. **Endpoint requirements:** * Must accept `GET` requests. * Must support Basic Authentication. * Entri will include `userId` as a query string parameter (e.g. `?userId=abc123`) so you can return a user-specific configuration. * Must return an Entri configuration object. Minimal example: ```json theme={"system"} { "applicationId": "your-application-id", "dnsRecords": [ { "host": "@", "type": "TXT", "ttl": 300, "value": "this-is-a-sample-value" } ] } ``` For the full configuration reference, see the [API Reference](/connect/configuration). *** ## How Each Product Works via MCP The behavior of `create-domain-order` and `connect-domain` depends on which Entri product and registrar are configured for your account. The registrar is the one selected for your application in the Entri Dashboard (Application Settings, Sell Registrars tab): IONOS, Squarespace, or GoDaddy. If no registrar is selected, the domain tools return an error. ### Entri Connect The `connect-domain` tool generates a **sharing link** that the user must open to complete DNS configuration. Entri's guided flow walks the user through logging in to their DNS provider and applying the required records. * The AI agent must present the link to the user and ask them to open it. * DNS propagation status is tracked with `check-connection-status` using the returned `jobId`. * The DNS records and provider options loaded in the flow are sourced from your **Entri Connect Settings** (Static or Dynamic). ### Entri Sell — IONOS / Squarespace / GoDaddy When your account uses IONOS, Squarespace, or GoDaddy as the registrar, `create-domain-order` returns a **sharing link**. The user must follow the link to complete the purchase through the registrar's checkout. * The AI agent must present the link and ask the user to complete the purchase. * Order progress is tracked with `check-order-status` using the returned `jobId`. * The DNS records and whitelabel configuration for the purchase flow come from your **Entri Sell Settings** (Static or Dynamic). **Summary:** | Product / Registrar | `create-domain-order` outcome | User action required? | | - | - | - | | Sell — IONOS / Squarespace / GoDaddy | Returns a sharing link + `jobId` | Yes — user completes checkout via the link | | Connect (`connect-domain`) | Returns a DNS config link + `jobId` | Yes — user completes DNS setup via the link | *** ## MCP Tools The Entri MCP server exposes 6 tools across the Connect and Sell products. For the full reference — including parameters, response shapes, and status values — see the [MCP Tool Reference](/entri-mcp-tools). # Tool Reference Source: https://developers.entri.com/entri-mcp-tools Reference for all tools exposed by the Entri MCP server. The Entri MCP server exposes the following tools. For feedback or to request additional tools, contact [support@entri.com](mailto:support@entri.com). | Tool | Description | | - | - | | `search-domain-availability` | Check if a domain is available for registration. Returns availability, price, and renewal price. | | `generate-domain-suggestions` | Generate AI-powered domain name suggestions from keywords or a business description. | | `create-domain-order` | Initiate a domain purchase flow. Returns a sharing link the user follows to complete checkout through the registrar. | | `connect-domain` | Generate a guided DNS configuration link for the user to connect an existing domain to your platform. | | `check-connection-status` | Check DNS propagation and connection status using the `jobId` returned by `connect-domain`. | | `check-order-status` | Check the current status of a domain purchase order using the `jobId` from `create-domain-order`. | *** ### Tool: search-domain-availability Checks whether a domain is available for registration, along with its registration and renewal pricing. **Example:** ```txt theme={"system"} User: "Is startup.ai available?" AI calls: search-domain-availability(domain: "startup.ai") ``` **Response (available):** ```json theme={"system"} { "domain": "startup.ai", "available": true, "price": "$49.99/year", "renewalPrice": "$89.99/year", "message": "startup.ai is available!" } ``` **Response (unavailable):** ```json theme={"system"} { "domain": "startup.ai", "available": false, "message": "startup.ai is taken." } ``` *** ### Tool: generate-domain-suggestions Generates AI-powered domain name suggestions based on keywords or a business description. Returns only available domains, sorted by relevance. Always returns a minimum of 5 suggestions. The top recommendation is marked with 🏆. **Example:** ```txt theme={"system"} User: "Suggest domains for my AI coding assistant startup" AI calls: generate-domain-suggestions(keywords: "AI coding assistant startup", limit: 5) ``` **Response:** ```json theme={"system"} { "keywords": "AI coding assistant startup", "suggestions": [ { "domain": "🏆 codecopilot.shop", "price": "$12.99/year", "renewalPrice": "$24.99/year" }, { "domain": "codecopilot.ai", "price": "$49.99/year", "renewalPrice": "$89.99/year" }, { "domain": "aicode.dev", "price": "$29.99/year", "renewalPrice": "$39.99/year" } ], "count": 3, "message": "Display these domain suggestions in a table with columns: Domain, Price, Renewal Price. The first domain (marked with 🏆) is the recommended option." } ``` *** ### Tool: create-domain-order Initiates a domain purchase flow. Returns a sharing link the user follows to complete checkout through the registrar (IONOS, Squarespace, or GoDaddy) — see [How Each Product Works via MCP](/entri-mcp#how-each-product-works-via-mcp). **Example:** ```txt theme={"system"} User: "Register startup.ai for me" AI calls: create-domain-order(domain: "startup.ai") ``` **Response — Sharing registrar (IONOS / Squarespace / GoDaddy):** ```json theme={"system"} { "success": true, "domain": "startup.ai", "link": "https://connect.entri.com/sell-flow?token=abc123...", "jobId": "JOB-1707000000-abc123", "message": "Sharing purchase link for startup.ai — Present this link to the user and ask them to complete the purchase. Then use check-order-status with jobId \"JOB-1707000000-abc123\" to track progress." } ``` **Response — Error:** ```json theme={"system"} { "success": false, "domain": "startup.ai", "error": "HTTP 422", "message": "The domain startup.ai could not be ordered." } ``` **Important notes:** * The AI agent **must present the link** to the user and ask them to complete the purchase. The purchase is completed by the user in the registrar's checkout — the agent cannot complete it on their behalf. * `dnsRecords` is not a parameter of this tool. DNS records are configured via your MCP Settings (Static or Dynamic). * After a successful order, always poll `check-order-status` with the returned `jobId` until the purchase is complete. | Registrar | Response | Next step | | - | - | - | | IONOS / Squarespace / GoDaddy | Returns `link` + `jobId` | Present link to user, then poll `check-order-status` with `jobId` | *** ### Tool: connect-domain Generates a guided DNS configuration link for an existing domain. The user must open this link to complete the DNS setup through Entri's connection flow. **Example:** ```txt theme={"system"} User: "Connect startup.ai to my project" AI calls: connect-domain(domain: "startup.ai") ``` **Response (success):** ```json theme={"system"} { "success": true, "domain": "startup.ai", "link": "https://connect.entri.com/flow?token=abc123...", "jobId": "JOB-1707000000-abc123", "message": "Connect flow link for startup.ai: https://connect.entri.com/flow?token=abc123..." } ``` **Response (error):** ```json theme={"system"} { "success": false, "domain": "startup.ai", "error": "HTTP 404", "message": "The domain startup.ai could not be found in your account." } ``` **Important notes:** * The AI agent **must present the returned `link`** to the user and ask them to open it. The DNS setup is completed by the user in Entri's flow — the agent cannot complete it on their behalf. * After the user opens the link, use `check-connection-status` with the returned `jobId` to monitor DNS propagation. * DNS propagation can take up to 48 hours in rare cases. *** ### Tool: check-connection-status Retrieves the current DNS propagation and connection status for a domain. Use it after `connect-domain` to verify whether DNS records have fully propagated. **Example:** ```txt theme={"system"} User: "Is startup.ai fully connected yet?" AI calls: check-connection-status(jobId: "JOB-1707000000-abc123") ``` **Response (connected):** ```json theme={"system"} { "jobId": "JOB-1707000000-abc123", "connected": true, "status": "completed", "domain": "startup.ai", "message": "DNS configuration complete! Domain startup.ai is now connected." } ``` **Response (in progress):** ```json theme={"system"} { "jobId": "JOB-1707000000-abc123", "connected": false, "status": "pending", "domain": "startup.ai", "message": "Connection JOB-1707000000-abc123 is still in progress (status: pending). Check again shortly." } ``` **Response (failed):** ```json theme={"system"} { "jobId": "JOB-1707000000-abc123", "connected": false, "status": "failed", "message": "Connection JOB-1707000000-abc123 has failed with status: failed." } ``` **Status values:** | Status | Meaning | | - | - | | `pending` | User hasn't completed the flow yet | | `completed` | DNS fully propagated and connected | | `failed` | Connection failed | | `error` | Unexpected error | | `expired` | The connect link expired before use | *** ### Tool: check-order-status Retrieves the current processing status of a domain purchase order. Use it after `create-domain-order` to track progress. **Example:** ```txt theme={"system"} User: "What's the status of my domain purchase?" AI calls: check-order-status(jobId: "JOB-1707000000-abc123") ``` **Response (completed):** ```json theme={"system"} { "jobId": "JOB-1707000000-abc123", "status": "completed", "domains": [ { "domain": "startup.ai", "status": "registered" } ], "message": "Order JOB-1707000000-abc123 is complete." } ``` **Response (in progress):** ```json theme={"system"} { "jobId": "JOB-1707000000-abc123", "status": "pending", "message": "Order JOB-1707000000-abc123 is still in progress (status: pending). Check again shortly." } ``` **Response (failed):** ```json theme={"system"} { "jobId": "JOB-1707000000-abc123", "status": "failed", "message": "Order JOB-1707000000-abc123 has failed with status: failed." } ``` **Status values:** | Status | Meaning | | - | - | | `pending` | Purchase queued, not yet processed | | `in_progress` | Purchase actively being processed | | `completed` | Purchase completed and domain registered | | `failed` | Purchase failed | | `cancelled` | Order was cancelled | | `rejected` | Order was rejected | | `error` | Unexpected error occurred | | `expired` | Sharing link expired before use | # Errors Overview Source: https://developers.entri.com/errors/overview Common errors and how to resolve them This page covers the most common errors when integrating Entri. For the complete API documentation, see the [API Reference](/connect/configuration). ## Initialization Errors These errors occur when calling `connectDomain()` or `purchaseDomain()` and prevent the modal from opening. The user sees "Entri is misconfigured. Please contact support for assistance." Check browser console for the actual error. ### connectDomain() Errors | Error | Console Message | Cause | Fix | | - | - | - | - | | Missing applicationId | "Missing parameter: applicationId" | Config object missing `applicationId` | Add your applicationId from the dashboard | | Invalid domain | "This domain is invalid or uses an unsupported TLD (unlisted )" | Domain doesn't pass validation | Check domain format (examples of invalid: `asdfasdf.asdfasdf`, `domain.`, `123.456`) | | Configuration error | "Configuration error, please refer to the docs..." | `forceManualSetup: true` without `prefilledDomain` | Add `prefilledDomain` or remove `forceManualSetup` | ### purchaseDomain() Errors | Error | Console Message | Cause | Fix | | - | - | - | - | | Failed to fetch settings | "Failed to fetch application settings" | API call failed (network error, invalid appId, or API down) | Check network, verify appId exists | | Missing registrar | "Your preferred registrar is missing..." | No Sell registrar is selected for the application | Select a registrar in the Entri Dashboard under Application Settings, Sell Registrars tab, or contact support | | Unsupported registrar | "Preferred registrar is not supported..." | The registrar selected for the application is not one Entri supports | Select IONOS, Squarespace, or GoDaddy in the Entri Dashboard, or contact support | ## Modal Error Codes These errors appear in the `error` object within `onEntriClose` and `onEntriStepChange` events when the user exits after seeing an error screen. ```javascript theme={"system"} window.addEventListener('onEntriClose', (event) => { if (event.detail.error) { console.log('Error code:', event.detail.error.code); console.log('Title:', event.detail.error.title); console.log('Details:', event.detail.error.details); } }); ``` | Code | Title | Description | | - | - | - | | AccessDeniedError | Invalid Permissions | Error when trying to set up domain, usually permissions issue | | AuthCodeError | 2FA code invalid | Invalid two-factor authentication code | | EmailNotVerifiedError | Unverified email | User needs to verify email in provider account | | InvalidCredentialsError | Maximum login attempts exceeded | User should reset password or use manual setup | | InvalidDomainError | Domain not found | Domain not found in provider account | | InvalidNameservers | Invalid Nameservers | Domain nameservers are pointing to a third-party provider | | GenericError | An error occurred | Generic setup error, user should retry | | PurchaseDomainError | Purchase error | Error during purchase, refresh and retry | | RegistroDomainInTransition | Domain in transition | Registro.br transitioning to advanced DNS (wait 5 min) | | SessionError | Session Error | Session timed out, refresh page | | SpfRecordsLimitError | SPF limit error | SPF record cannot have more than 10 domains | | SpfRecordsLengthError | SPF length error | SPF record cannot exceed 255 characters | | TimeoutError | An error occurred | Automatic setup took longer than expected, user should retry | | UnsupportedRecordError | Record not supported | Provider does not support a requested record type or placement (NS at root or on a subdomain, CAA, or wildcard) | | ProviderAuthenticationError | Error in provider authentication | Authentication issue with the provider account | | ProviderError | Custom error in provider | Provider-specific error, such as a protected domain | | UserInputTimeoutError | Session timed out | User did not enter credentials or 2FA in time, start over | > [!NOTE] > > This list may not be exhaustive as some errors come directly from DNS providers. ### Domain Connect Provider Errors When a domain is configured through Domain Connect, the provider can return a specific reason for the failure. These codes are reported the same way as the codes above, in the `error` object on `onEntriClose` and `onEntriStepChange`, and the user sees the matching title and description on the error screen. The code identifies the exact provider error, so you can branch on it or surface your own copy instead of the generic error message. Codes are not exclusive to a provider. The tables below group them by the provider whose messages they were mapped from, but another Domain Connect provider that returns the same error reports the same code. Use `provider` from the same event payload for provider-specific handling. #### GoDaddy | Code | Title | Description | | - | - | - | | UserAbortedError | Flow closed | You've exited the flow. You can start the process again at any time. | | DomainOwnershipError | Domain not found in account | This domain does not belong to the logged-in account. Please sign in with the account that manages this domain and try again. | | AuthorizationError | Not authorized | Your account is not authorized to perform this action. Please contact your DNS provider or try a different account. | | DNSZoneNotFoundError | DNS zone not found | We couldn't find a DNS zone for this domain. Verify the domain is added to your DNS provider and try again. | | DomainStatusError | Domain not in valid status | This domain is not in a valid status for DNS changes. Check your domain status with your provider and try again. | | ExternalNameserversError | External nameservers detected | This domain is using external nameservers. Update your nameservers or DNS settings with your provider and try again. | | InvalidTemplateError | Invalid template | The DNS template configuration is invalid. Please contact support if this issue persists. | | InvalidResourceError | Invalid resource | One or more DNS resources in the request are invalid. Please verify your configuration and try again. | | MissingTemplateValuesError | Missing template values | Required template values are missing. Please complete all required fields and try again. | | SignatureVerificationError | Verification failed | Public key or signature verification failed. Please restart the process and try again. | | HostRequiredError | Host required | A host value is required to complete this request. Please provide the missing host and try again. | | ServerError | Server error | An internal server error occurred. Please try again later or contact your DNS provider. | #### Squarespace | Code | Title | Description | | - | - | - | | DomainNotFoundError | Domain not found | We couldn't find this domain at your DNS provider. Check the domain is in the account you signed in with and try again. | | UnregisteredDomainError | Domain does not exist | Your DNS provider reports that this domain name does not exist. Check the spelling and that the domain is still registered, then try again. | | DNSZoneNotFoundError | DNS zone not found | We couldn't find a DNS zone for this domain. Verify the domain is added to your DNS provider and try again. | | ExternalNameserversError | External nameservers detected | This domain is using external nameservers. Update your nameservers or DNS settings with your provider and try again. | | ZoneAuthenticationError | Not authorized for this domain | Your account does not have permission to change DNS for this domain. Sign in with an account that manages this domain, or ask an administrator for access, then try again. | | AuthorizationError | Not authorized | Your account is not authorized to perform this action. Please contact your DNS provider or try a different account. | | EmailVerificationRequiredError | Email verification required | Your DNS provider account needs its email address verified before DNS changes can be made. Verify your email and try again. | | DuplicateDomainParameterError | Too many domains in request | The DNS setup request included more than one domain. Please restart the process, and contact support if this issue persists. | | DomainParameterMismatchError | Domain mismatch in request | The domain in the DNS setup request does not match the domain being configured. Please restart the process, and contact support if this issue persists. | | MissingDomainError | Domain missing from request | The DNS setup request did not include a domain. Please restart the process, and contact support if this issue persists. | | InvalidRequestError | Invalid request | The DNS setup request was malformed. Please contact support if this issue persists. | | SignatureVerificationError | Verification failed | Public key or signature verification failed. Please restart the process and try again. | | SquarespaceConflictError | Conflicting DNS records | Some existing DNS records conflict with the ones we need to add. Remove the conflicting records at your DNS provider and try again. | | RecordValidationError | Invalid DNS record configuration | Your DNS provider rejected the requested DNS records because they conflict with existing records for the same subdomain (for example, more than one CNAME record on the same name). Remove the conflicting records at your DNS provider and try again. | | DomainLookupError | Couldn't load domain information | Your DNS provider could not load the information for this domain. Please try again in a few minutes. | | AuthorizationCheckError | Couldn't verify domain access | Your DNS provider could not verify your access to this domain. Please try again in a few minutes. | | DNSUpdateFailedError | DNS changes could not be applied | Your DNS provider could not apply the DNS changes. Please try again in a few minutes. | #### Cloudflare | Code | Title | Description | | - | - | - | | EmailRoutingRecordError | Email Routing manages this record | Cloudflare Email Routing manages one of the DNS records we need to change. Turn off Email Routing in your Cloudflare dashboard and try again. | | DuplicateRecordError | Record already exists | Cloudflare already has a DNS record with the same name and value. Remove the duplicate record and try again. | | ReadOnlyRecordError | Record is read only | This DNS record is set to read only in Cloudflare and cannot be changed. Remove the read-only setting in your Cloudflare dashboard and try again. | | RegistrarManagedRecordError | Cloudflare Registrar manages this record | Cloudflare generated this DNS record. Update it from your Cloudflare Registrar settings and try again. | | R2ManagedRecordError | Cloudflare R2 manages this record | Cloudflare generated this DNS record for R2. Update it from your R2 settings and try again. | | FallbackOriginRecordError | Record is used by SSL for SaaS | This record is the fallback origin for Cloudflare SSL for SaaS and cannot be removed. Update your SSL for SaaS configuration and try again. | | RecordNotFoundError | Record not found | The DNS record we tried to update no longer exists in Cloudflare. Refresh your DNS settings and try again. | | ConflictingRecordError | Conflicting record exists | Another A, AAAA, or CNAME record in Cloudflare already uses this hostname. Remove or rename that record and try again. | | ConflictingCNAMERecordError | Conflicting CNAME record exists | A CNAME record in Cloudflare already uses this hostname. Remove or rename that record and try again. | | RecordQuotaError | DNS record limit reached | This Cloudflare account has reached its DNS record limit. Delete unused records or upgrade the plan and try again. | | AccountLimitError | Cloudflare account limit reached | This Cloudflare account has reached one of its plan limits. Free up space or upgrade the plan and try again. | | InvalidDNSNameError | Invalid DNS name | Cloudflare rejected the hostname for one of the records. Check the domain or subdomain and try again. | | InvalidMXRecordError | Invalid MX record | MX records must point to a hostname, not an IP address. Update the mail server value and try again. | | InvalidARecordContentError | Invalid A record value | An A record must contain a valid IPv4 address. Check the record value and try again. | | InvalidTXTRecordContentError | Invalid TXT record value | Cloudflare rejected the value of the TXT record. Check the record value and try again. | | InvalidCNAMERecordContentError | Invalid CNAME record value | Cloudflare rejected the value of the CNAME record. Check the record value and try again. | | ApexNameserverError | Nameserver record not allowed | Cloudflare does not allow NS records at the root of the domain to replace its assigned nameservers. Remove the conflicting NS record and try again. | | SessionExpiredError | Cloudflare session expired | Your Cloudflare session expired before the changes were saved. Sign in to Cloudflare again and try again. | | InvalidTokenError | Cloudflare token rejected | Cloudflare could not authenticate the request. Reconnect your Cloudflare account and try again. | | AuthenticationError | Cloudflare authentication failed | Cloudflare could not authenticate the request. Sign in to Cloudflare again and try again. | | UnknownProviderError | Unexpected Cloudflare error | Cloudflare returned an unexpected error. Please wait a few minutes and try again. | ## Configuration Pitfalls Common configuration mistakes that cause unexpected errors. ### userId Mismatch If you pass `userId` in your config object, it must match the `userId` used when generating the JWT token. A mismatch can cause misleading errors like "Invalid domain or DNS records". ```javascript theme={"system"} // ❌ Wrong: userId mismatch const token = await getToken({ userId: "user-123" }); // JWT created with user-123 entri.connectDomain({ applicationId: "...", token, userId: "user-456", // Different userId in config dnsRecords: [...] }); // ✅ Correct: userId matches const token = await getToken({ userId: "user-123" }); entri.connectDomain({ applicationId: "...", token, userId: "user-123", // Same userId dnsRecords: [...] }); ``` ### validateDmarc with Existing Records When `validateDmarc: true` is set and the domain already has a valid DMARC record, Entri will **not** modify it. However, if you also send a DMARC record in your `dnsRecords` array, this can trigger the manual setup flow. | Scenario | Behavior | | - | - | | `validateDmarc: true`, no existing DMARC | Entri creates your DMARC record | | `validateDmarc: true`, valid DMARC exists | Entri skips DMARC (no changes) | | `validateDmarc: true`, DMARC in `dnsRecords`, DMARC exists | May trigger manual setup flow | > [!NOTE] > > This is intentional to prevent conflicts with existing email authentication. If you're seeing unexpected manual flow redirects, check if the domain already has DMARC configured. ## Debugging Tips ### Check the Network Tab 1. Open DevTools → Network tab 2. Clear logs, then run the failing Entri setup 3. Look for the `config` or `records` API call 4. Check the Response tab for error details ### Non-blocking Console Warnings Some console messages are warnings that don't block the flow: ``` Invalid hex color whiteLabel.theme.fg: #xyz ``` These indicate configuration issues but the modal will still open. ### Generating a HAR File When reporting issues to support, a HAR (HTTP Archive) file captures all network requests and helps diagnose problems quickly. **Steps in Chrome:** 1. Navigate to the page where you're experiencing the issue (don't reproduce yet) 2. Open Developer Tools: Right-click → Inspect, or `Ctrl+Shift+I` (Mac: `Cmd+Option+I`) 3. Go to the **Network** tab 4. Ensure recording is active (red circle) 5. Check **Preserve log** to capture requests across page reloads 6. Click **Clear** to remove existing logs 7. Reproduce the issue 8. Right-click any request → **Save all as HAR with Content** 9. Save and attach to your support request > [!WARNING] > > HAR files may contain sensitive data (tokens, cookies). Review before sharing or use Entri's secure upload option. ## Need Help? If you're encountering an error not listed here, contact Entri support with: * Error message or screenshot * Browser console output * The domain you're trying to configure # Getting Started Source: https://developers.entri.com/getting-started One showUnify() call to let users buy a domain or connect one they own, in 5 minutes. Welcome to Entri! This guide walks you through your first integration: a single `showUnify()` call that lets your users connect a domain they already own or buy a new one, without you building a selection screen or managing two flows. > [!TIP] > > New to DNS? Check out [DNS Concepts](/dns-concepts) for a quick primer on record types, propagation, and common gotchas. ## 1. Set up your dashboard Before writing code, configure your application in the [Entri Dashboard](https://dashboard.entri.com): 1. Sign up or log in 2. Create an application 3. Set your display name and icon (PNG or SVG, 1:1 ratio, white or transparent background) 4. Copy your `applicationId` and `secret` ![Dashboard](https://mintcdn.com/entri-42/06YvuUaP9BrTKHMC/images/dashboard.png?fit=max\&auto=format\&n=06YvuUaP9BrTKHMC\&q=85\&s=8e93a839ec4ad1ba41fab903d452b5c0) ## 2. Install Entri Choose your preferred installation method: ```html HTML (CDN) theme={"system"} ``` ```bash npm theme={"system"} npm install entrijs ``` If using npm, import it in your code: ```javascript theme={"system"} import Entri from 'entrijs'; ``` > [!NOTE] > > **Subresource Integrity (SRI):** If your security policy requires SRI, load Entri via the pinned loader URL with its SHA-384 hash: > > ```html theme={"system"} > > ``` > > The loader at `entri-latest.js` is immutable, so the integrity hash above stays valid across Entri SDK releases — no need to update it on each version. > > Because the loader fetches the SDK asynchronously, `window.entri` isn't available immediately. Wait for the `entri:ready` event before calling `showUnify()`: > > ```javascript Callback theme={"system"} > function onEntriReady(cb) { > if (window.entri) return cb(window.entri); > window.addEventListener("entri:ready", () => cb(window.entri), { once: true }); > } > > onEntriReady((entri) => { > entri.showUnify(/* …config… */); > }); > ``` > > ```javascript Promise theme={"system"} > const entriReady = new Promise((resolve) => { > if (window.entri) return resolve(window.entri); > window.addEventListener("entri:ready", () => resolve(window.entri), { once: true }); > }); > > entriReady.then((entri) => entri.showUnify(/* …config… */)); > ``` ## 3. Get a JWT token For security, fetch the JWT on your **server-side**. The token expires after 60 minutes. > [!WARNING] > > Never expose your `secret` in client-side code. Always fetch the JWT from your backend. ```javascript JavaScript theme={"system"} fetch('https://api.goentri.com/token', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ applicationId: "YOUR_APP_ID", // From the dashboard secret: "YOUR_SECRET" // From the dashboard }), }) .then(response => response.json()) .then(data => { console.log('Token:', data.auth_token); // Save this token to use in step 4 }) .catch(error => console.error('Error:', error)); ``` ```python Python theme={"system"} import requests import json url = "https://api.goentri.com/token" payload = { "applicationId": "YOUR_APP_ID", # From the dashboard "secret": "YOUR_SECRET" # From the dashboard } headers = {"Content-Type": "application/json"} response = requests.post(url, headers=headers, data=json.dumps(payload)) if response.ok: data = response.json() print("Token:", data["auth_token"]) # Save this token to use in step 4 else: print("Error:", response.text) ``` ## 4. Launch the Entri modal With your token ready, launch the Entri modal. Entri asks the user whether they want to buy a new domain or connect one they already own, then routes them through the right flow. The records you pass in `dnsRecords` are applied either way; this example uses a single CNAME, and [DNS Records](/connect/dns-records) covers all supported types and their fields: ```javascript theme={"system"} entri.showUnify({ applicationId: "YOUR_APP_ID", token: "YOUR_JWT_TOKEN", // From step 3 dnsRecords: [ { type: "CNAME", host: "www", value: "your-app.com", ttl: 300 } ] }); ``` That's the whole integration. No selection UI to build, no branching logic, no separate purchase and connect code paths. > [!TIP] > > **DNS monitoring is included.** Every domain added through `showUnify()` is automatically enrolled in [Entri Monitor](/monitor/overview), which watches its DNS records and notifies your webhook if they change or break. No extra configuration needed. > [!NOTE] > > If you only need one of the two paths, call [`connectDomain()`](/connect/sdk#entri-connectdomain-config) (connect an existing domain) or [`purchaseDomain()`](/sell/sdk) (buy a new one) directly. They take the same config, but note that they don't enroll domains in Entri Monitor by default; pass `monitor: true` if you want monitoring. `connectDomain()` was previously named `showEntri()`, which is deprecated but still works as an alias. ## 5. Handle events Listen for completion and close events: ```javascript theme={"system"} entri.showUnify({ applicationId: "YOUR_APP_ID", token: "YOUR_JWT_TOKEN", dnsRecords: [...], // Called when DNS setup completes successfully onSuccess: (data) => { console.log('Domain configured:', data.domain); // { domain: "example.com", success: true, setupType: "automatic", ... } }, // Called when the modal is closed onEntriClose: (data) => { console.log('Modal closed:', data); } }); ``` If you want to know which path the user chose, listen for the `onEntriPathSelected` browser event. After that, the selected flow fires its regular events. See [Unify events](/unify/events) for the details. ```javascript theme={"system"} window.addEventListener('onEntriPathSelected', (event) => { console.log('User chose:', event.detail.path); // "sell" or "connect" }); ``` ## Complete example: React Here's a full working example with React: ```jsx theme={"system"} import { useEffect, useState } from 'react'; function DomainSetup() { const [token, setToken] = useState(null); useEffect(() => { // Fetch JWT from your backend fetch('/api/entri-token') .then(res => res.json()) .then(data => setToken(data.token)); }, []); const handleSetup = () => { if (!token) return; entri.showUnify({ applicationId: "YOUR_APP_ID", token: token, dnsRecords: [ { type: "CNAME", host: "www", value: "your-app.com", ttl: 300 } ], onSuccess: (data) => { console.log('Success:', data); // Update your UI or backend } }); }; return ( ); } export default DomainSetup; ``` > [!NOTE] > > For more framework-specific examples, see our [React Integration Guide](/integration/react) and [Vanilla JS Guide](/integration/vanilla-js). ## Next steps You just integrated [Entri Unify](/unify/overview), which routes your users into Entri Connect (existing domains) or Entri Sell (new purchases) behind a single call. Explore those flows and the rest of Entri's products: > **[Connect](/connect/overview)** > > Automated DNS configuration for 60+ providers > **[Sell](/sell/overview)** > > Let users purchase domains in your app > **[Secure](/secure/overview)** > > Automatic SSL certificate provisioning > **[Power](/power/overview)** > > Custom domain management for your users ## Dive deeper > **[Configuration Reference](/unify/configuration)** > > All showUnify() options > **[Events Reference](/unify/events)** > > Complete events documentation > **[Webhooks](/webhooks-overview)** > > Server-side notifications > **[DNS Concepts](/dns-concepts)** > > Understanding DNS records ## Need help? We're here to help! Email us at [support@entri.com](mailto:support@entri.com) or reach out to your account manager. # Handling DKIM, SPF, and DMARC Records Source: https://developers.entri.com/handling-dkim-spf-dmarc-records Add and manage DKIM, SPF, and DMARC email-authentication records through Entri. ## DKIM records DKIM (DomainKeys Identified Mail) is an email security standard designed to make sure messages aren't altered in transit between the sending and recipient servers. If a DKIM record is added to a domain, it increases the deliverability of emails. ### Sending mail directly If your application sends mail directly, you can simply add a DKIM record to your configuration object as a TXT record (see [Getting Started](/getting-started)), e.g.: ```Java Text theme={"system"} const config = { applicationId: "12345", dnsRecords: [ { type: "TXT", host: "cool-email.example.com", value: "v=DKIM1; p=76E629F05F70 9EF665853333 EEC3F5ADE69A 2362BECE4065 8267AB2FC3CB 6CBE", ttl: 300, }, ], }; ``` ### Sending mail through a 3rd party If your application sends email using a 3rd party service configured by your customer (e.g. Google Workspace, Zoho Mail, or Microsoft 365), your Entri account manager can enable a DKIM prompt that walks your customers through setting up DKIM using those services. To turn this on, add the [`enableDkim`](/connect/configuration) key to your configuration object: ```Java Text theme={"system"} const config = { applicationId: "12345", enableDkim: true, dnsRecords: [ // ... ], }; ``` Once DKIM is enabled for your application, the Entri modal will detect what email provider a domain uses (Entri supports Google Workspace, Microsoft 365, Zoho Mail). Depending on the provider, Entri will show instructions for how to set up DKIM after the other types of records have been added. If Entri detects that DKIM has already been set up, we will skip this step. For example: ![664](https://mintcdn.com/entri-42/y89yB6zwvoVA7ecV/images/fe39467-Screen_Shot_2021-09-05_at_2.11.06_PM.png?fit=max\&auto=format\&n=y89yB6zwvoVA7ecV\&q=85\&s=249a5f75420d499b331dffd20820ad89) Entri UI for Assisting Google Workspace customers with DKIM setup ## SPF records > [!NOTE] > > **Important** When providing Entri the SPF record using the script found on > the [Installing Entri](/getting-started) page, the record type must be identified as > TXT. When providing Entri the desired SPF record, please include the full SPF record. For example: ```Text Text theme={"system"} v=spf1 include:u123456.wl.sendgrid.net -all ``` If the user has an existing SPF record, Entri will automatically append the new SPF record inside the users existing SPF record. For example: **Record sent to Entri:** ```Text Text theme={"system"} v=spf1 a mx include:u826348.wl.sendgrid.net -all ``` **Existing record:** ```Text Text theme={"system"} v=spf1 a mx include:\_spf.google.com include:spf.protection.outlook.com -all ``` **Updated Record:** ```Text Text theme={"system"} v=spf1 a mx include:\_spf.google.com include:spf.protection.outlook.com include:u826348.wl.sendgrid.net -all ``` > [!NOTE] > > **Important** > > If Entri compares the existing record with the record from the end-user and there’s a conflict with the appendix (\~all vs -all) then we will use \~all by default. \~all is recommended as it minimizes SPF errors. ### How GoDaddy Uses Nested Includes for SPF When handling SPF records through Domain Connect, GoDaddy follows a strategy that avoids directly modifying the root domain’s existing SPF record. Instead, GoDaddy creates a dedicated subdomain (typically in the form of `dc-._spfm.`) and publishes its SPF configuration there. This subdomain contains the necessary mechanisms, such as ip4, ip6, or additional include statements, to authorize GoDaddy’s sending infrastructure. The main SPF record on the root domain is then updated to reference this subdomain using an include mechanism (e.g., `include:dc-._spfm.)`. This approach creates a nested include, where the parent SPF record delegates authorization to GoDaddy via the subdomain. This method helps keep the root SPF record cleaner, allows modular updates to the provider-specific SPF content, and reduces the risk of accidentally breaking existing SPF configurations. For example, consider a domain `mydomain.com` that initially has the following SPF record: ```Text Text theme={"system"} TXT @ v=spf1 include:mail.sampledomain.com ~all ``` Then, a new record is submitted to Entri: ```Text Text theme={"system"} TXT @ v=spf1 include:newvendor.com ~all ``` GoDaddy will merge both records using a nested include, resulting in: ```Text Text theme={"system"} TXT @ v=spf1 include:mail.sampledomain.com include:dc-bbalbf040d._spfm.mydomain.com ~all TXT dc-bba1bf040d._spfm v=spf1 include:newvendor.com ~all ``` ### GoDaddy SPF Records and Webhooks Our propagation check process is designed to account for nested SPF structures, such as those used by GoDaddy through Domain Connect. When verifying record propagation, Entri Connect will follow include chains and subdomain delegations to ensure that the original SPF record specified in the connectDomain configuration is present and resolvable under the domain. Continuing the example above, even though GoDaddy published the record as: ```Text Text theme={"system"} TXT @ v=spf1 include:mail.sampledomain.com include:dc-bbalbf040d._spfm.mydomain.com ~all TXT dc-bba1bf040d._spfm v=spf1 include:newvendor.com ~all ``` The webhook notification will surface it in a simplified form, reflecting the original intent of the configuration: ```Text Text theme={"system"} { "data": { "records_non_propagated": [], "records_propagated": [ { "type": "TXT", "host": "@", "value": "v=spf1 include:mail.sampledomain.com ~all" } ] } //... } ``` ## DMARC records To set up DMARC records for your users, include a TXT record with `_dmarc` as the host value in your configuration object (see [Installation](/getting-started)), e.g. ```JavaScript JavaScript theme={"system"} const config = { applicationId: "12345", dnsRecords: [ { type: "TXT", host: "_dmarc", value: "v=DMARC1; p=none; rua=mailto:dmarc-reports@solarmora.com", ttl: 300, }, ], }; ``` #### Optional: Check for existing DMARC record If you want to check if your user has a valid DMARC record already set, and if so, **not** update it, you can set the `validateDmarc` property to `true` in your `config`. > [!NOTE] > > **Need Advanced DMARC handling?** Check out our [DMARC Handling: Advanced Options](/advanced-dmarc-options) section! # React Integration Source: https://developers.entri.com/integration/react How to integrate Entri with React applications Learn how to integrate Entri into your React application with proper event handling and state management. > [!NOTE] > > This guide uses `showUnify()`, the single entry point that lets your users connect a domain they own or buy a new one. If you only need one path, swap it for [`connectDomain()`](/connect/sdk#entri-connectdomain-config) or [`purchaseDomain()`](/sell/sdk) in any example below; they take the same config. `connectDomain()` was previously named `showEntri()`, which is deprecated but still works as an alias. ## Prerequisites * Your `applicationId` from the Entri dashboard * A valid JWT token fetched from your server * Basic understanding of React hooks ## Installation **NPM Package** ```bash theme={"system"} npm install entrijs ``` Import the functions you need: ```jsx theme={"system"} import { showUnify, close, checkDomain } from 'entrijs'; ``` > [!NOTE] > > NPM functions are **async** - the package automatically loads the Entri SDK when first called. ### Quick Start (NPM) ```jsx theme={"system"} import { useEffect } from 'react'; import { showUnify } from 'entrijs'; function DomainConnect({ applicationId, token }) { useEffect(() => { const handleClose = (event) => { console.log('Entri closed:', event.detail); }; window.addEventListener('onEntriClose', handleClose); return () => window.removeEventListener('onEntriClose', handleClose); }, []); const handleConnect = async () => { await showUnify({ applicationId, token, dnsRecords: [ { type: 'CNAME', host: 'www', value: 'your-service.com', ttl: 300, }, ], }); }; return ; } ``` ### Custom Hook (NPM) ```jsx theme={"system"} // hooks/useEntri.js import { useState, useEffect, useCallback } from 'react'; import { showUnify, close } from 'entrijs'; export function useEntri() { const [isOpen, setIsOpen] = useState(false); const [result, setResult] = useState(null); const [error, setError] = useState(null); useEffect(() => { const handleSuccess = (event) => { setResult(event.detail); }; const handleClose = (event) => { setIsOpen(false); if (event.detail?.error) { setError(event.detail.error); } }; window.addEventListener('onSuccess', handleSuccess); window.addEventListener('onEntriClose', handleClose); return () => { window.removeEventListener('onSuccess', handleSuccess); window.removeEventListener('onEntriClose', handleClose); }; }, []); const openEntri = useCallback(async (config) => { setIsOpen(true); setError(null); setResult(null); await showUnify({ applicationId: config.applicationId, token: config.token, dnsRecords: config.dnsRecords, prefilledDomain: config.prefilledDomain, userId: config.userId, }); }, []); const closeEntri = useCallback(async () => { await close(); }, []); return { openEntri, closeEntri, isOpen, result, error, }; } ``` ### With TypeScript (NPM) The package exports types you can use: ```typescript theme={"system"} import { showUnify, close, type EntriConfig, type EntriCloseEventDetail, type EntriSuccessEventDetail, } from 'entrijs'; ``` **Script Tag** Add to your `index.html`: ```html theme={"system"} ``` The SDK will be available globally as `window.entri`. ### Quick Start (Script Tag) ```jsx theme={"system"} import { useEffect } from 'react'; function DomainConnect({ applicationId, token }) { useEffect(() => { const handleClose = (event) => { console.log('Entri closed:', event.detail); }; window.addEventListener('onEntriClose', handleClose); return () => window.removeEventListener('onEntriClose', handleClose); }, []); const handleConnect = () => { window.entri.showUnify({ applicationId, token, dnsRecords: [ { type: 'CNAME', host: 'www', value: 'your-service.com', ttl: 300, }, ], }); }; return ; } ``` ### Custom Hook (Script Tag) ```jsx theme={"system"} // hooks/useEntri.js import { useState, useEffect, useCallback } from 'react'; export function useEntri() { const [isOpen, setIsOpen] = useState(false); const [result, setResult] = useState(null); const [error, setError] = useState(null); useEffect(() => { const handleSuccess = (event) => { setResult(event.detail); }; const handleClose = (event) => { setIsOpen(false); if (event.detail?.error) { setError(event.detail.error); } }; window.addEventListener('onSuccess', handleSuccess); window.addEventListener('onEntriClose', handleClose); return () => { window.removeEventListener('onSuccess', handleSuccess); window.removeEventListener('onEntriClose', handleClose); }; }, []); const openEntri = useCallback((config) => { setIsOpen(true); setError(null); setResult(null); window.entri.showUnify({ applicationId: config.applicationId, token: config.token, dnsRecords: config.dnsRecords, prefilledDomain: config.prefilledDomain, userId: config.userId, }); }, []); const closeEntri = useCallback(() => { window.entri.close(); }, []); return { openEntri, closeEntri, isOpen, result, error, }; } ``` ### With TypeScript (Script Tag) Define your own types or use the ones from the NPM package: ```typescript theme={"system"} interface EntriConfig { applicationId: string; token: string; dnsRecords: DNSRecord[]; prefilledDomain?: string; userId?: string; } interface DNSRecord { type: 'A' | 'AAAA' | 'CNAME' | 'TXT' | 'MX' | 'NS'; host: string; value: string; ttl: number; priority?: number; } interface EntriCloseEventDetail { domain: string | null; success: boolean; setupType: 'automatic' | 'manual' | 'sharedLogin' | 'purchase' | null; provider: string; lastStatus: string; error?: { code: string; title: string; details: string; }; } interface EntriSuccessEventDetail { domain: string; success: true; setupType: 'automatic' | 'manual'; provider: string; jobId: string; } // Extend Window type declare global { interface Window { entri: { showUnify: (config: EntriConfig) => void; close: () => void; checkDomain: (domain: string, config: EntriConfig) => Promise; }; } } ``` ## Using the Hook Once you have the hook, use it in your components: ```jsx theme={"system"} // components/DomainSetup.jsx import { useEntri } from '../hooks/useEntri'; export function DomainSetup({ applicationId, token, userId }) { const { openEntri, isOpen, result, error } = useEntri(); const handleConnect = () => { openEntri({ applicationId, token, userId, dnsRecords: [ { type: 'CNAME', host: 'www', value: 'your-service.com', ttl: 300, }, ], }); }; if (result?.success) { return (
Domain {result.domain} connected successfully!
); } return (
{error && (

Error: {error.title || 'An error occurred'}

)}
); } ``` ## Event Handling Entri emits events via `window`. Set up listeners in `useEffect` **before** calling `showUnify()`. > [!NOTE] > > Events work the same way for both NPM and Script Tag installations. ### onEntriPathSelected Triggered when the user chooses between buying a new domain and connecting an existing one. After this point, the chosen flow fires its regular events. See [Unify events](/unify/events). ```jsx theme={"system"} useEffect(() => { const handlePathSelected = (event) => { const { path, domain } = event.detail; console.log('User chose:', path); // 'sell' or 'connect' }; window.addEventListener('onEntriPathSelected', handlePathSelected); return () => window.removeEventListener('onEntriPathSelected', handlePathSelected); }, []); ``` ### onSuccess Triggered when the user successfully completes domain setup. ```jsx theme={"system"} useEffect(() => { const handleSuccess = (event) => { const { domain, setupType, provider, jobId } = event.detail; console.log(`Domain ${domain} configured via ${setupType}`); // Store jobId for webhook correlation }; window.addEventListener('onSuccess', handleSuccess); return () => window.removeEventListener('onSuccess', handleSuccess); }, []); ``` ### onEntriClose Triggered when the modal is closed, whether successful or not. ```jsx theme={"system"} useEffect(() => { const handleClose = (event) => { const { domain, success, setupType, lastStatus, error } = event.detail; if (success) { console.log(`${domain} configured successfully`); } else if (error) { console.log(`Error: ${error.code} - ${error.title}`); } else { console.log(`User exited at: ${lastStatus}`); } }; window.addEventListener('onEntriClose', handleClose); return () => window.removeEventListener('onEntriClose', handleClose); }, []); ``` ### onEntriStepChange Triggered when the user moves between screens. Useful for analytics. ```jsx theme={"system"} useEffect(() => { const handleStepChange = (event) => { const { step, domain, provider } = event.detail; analytics.track('entri_step', { step, domain, provider }); }; window.addEventListener('onEntriStepChange', handleStepChange); return () => window.removeEventListener('onEntriStepChange', handleStepChange); }, []); ``` ### onEntriManualSetupDocumentationClick Triggered when the user clicks the manual setup guide link. ```jsx theme={"system"} useEffect(() => { const handleManualClick = () => { openSupportChat(); }; window.addEventListener('onEntriManualSetupDocumentationClick', handleManualClick); return () => window.removeEventListener('onEntriManualSetupDocumentationClick', handleManualClick); }, []); ``` ## Troubleshooting ### Event listeners not firing Make sure you're adding listeners **before** calling `showUnify()`. In React, use `useEffect` to set up listeners on mount: ```jsx theme={"system"} // ✅ Correct - listeners added on mount via useEffect useEffect(() => { window.addEventListener('onEntriClose', handler); return () => window.removeEventListener('onEntriClose', handler); }, []); // ❌ Wrong - listener added after showUnify const handleClick = () => { showUnify(config); // or window.entri.showUnify(config) window.addEventListener('onEntriClose', handler); // Too late! }; ``` ### Stale state in event handlers React's closures can capture stale state. Use refs or functional updates: ```jsx theme={"system"} // ✅ Use functional update to avoid stale state setResult(prevResult => ({ ...prevResult, ...event.detail })); // ✅ Or use a ref for values needed in event handlers const configRef = useRef(config); useEffect(() => { configRef.current = config; }, [config]); ``` ### Multiple event handlers firing Ensure you clean up listeners when the component unmounts: ```jsx theme={"system"} useEffect(() => { const handler = (event) => { /* ... */ }; window.addEventListener('onEntriClose', handler); return () => { window.removeEventListener('onEntriClose', handler); }; }, []); ``` ## Focus Trap Conflicts When using Entri with React UI libraries that implement their own focus management (Reach UI Dialog, Radix UI), you may experience focus conflicts where tab navigation breaks. ### The Problem Both Entri and your modal library compete for focus control. Common symptoms: * Tab key not cycling through elements correctly * Focus jumping unexpectedly * Screen reader navigation issues ### Solution 1: Embedded Mode (Recommended) Mount Entri inside your existing dialog using embedded mode: ```jsx theme={"system"} import { Dialog, DialogContent } from '@reach/dialog'; import { useEffect, useState } from 'react'; function DomainSetupDialog() { const [isOpen, setIsOpen] = useState(false); useEffect(() => { if (!isOpen) return; window.entri.showUnify({ applicationId: 'your-app-id', token: 'your-jwt-token', dnsRecords: [/* your records */], whiteLabel: { customProperties: { general: { embeddedMode: { selector: '#entri-container', containerStyles: { boxShadow: 'none', borderRadius: '0px', width: '100%', height: '100%', }, }, }, }, }, }); }, [isOpen]); return ( setIsOpen(false)}>
); } ``` ### Solution 2: Disable Focus Lock When Entri is Active Use a state flag to disable your focus trap while Entri is open: ```jsx theme={"system"} import FocusLock from 'react-focus-lock'; import { useState, useEffect } from 'react'; function CustomModal() { const [entriActive, setEntriActive] = useState(false); useEffect(() => { const handleClose = () => setEntriActive(false); window.addEventListener('onEntriClose', handleClose); return () => window.removeEventListener('onEntriClose', handleClose); }, []); const launchEntri = () => { setEntriActive(true); window.entri.showUnify({ /* config */ }); }; return ( ); } ``` > [!NOTE] > > This issue has been observed with Reach UI Dialog specifically, but may occur with other libraries that implement aggressive focus locking. ## Next Steps * [Unify Configuration](/unify/configuration) - Full configuration options * [Webhooks](/webhooks-overview) - Server-side event handling * [Getting Started](/getting-started) - Dashboard setup and token generation # Vanilla JavaScript Integration Source: https://developers.entri.com/integration/vanilla-js How to integrate Entri with plain JavaScript applications Learn how to integrate Entri into any web application using plain JavaScript, without frameworks or build tools. > [!NOTE] > > This guide uses `showUnify()`, the single entry point that lets your users connect a domain they own or buy a new one. If you only need one path, swap it for [`connectDomain()`](/connect/sdk#entri-connectdomain-config) or [`purchaseDomain()`](/sell/sdk) in any example below; they take the same config. `connectDomain()` was previously named `showEntri()`, which is deprecated but still works as an alias. ## Prerequisites * Your `applicationId` from the Entri dashboard * A valid JWT token fetched from your server * Basic understanding of JavaScript and DOM events ## Installation Add the Entri SDK to your HTML page: ```html theme={"system"} ``` The SDK will be available globally as `window.entri`. ## Quick Start A minimal working example to get started quickly: ```html theme={"system"} Domain Setup ``` ## Full Implementation ### Step 1: Create an Entri Manager Encapsulate all Entri logic in a reusable module for cleaner code. ```javascript theme={"system"} // entri-manager.js const EntriManager = (() => { let isOpen = false; let onSuccessCallback = null; let onCloseCallback = null; let onStepChangeCallback = null; // Set up event listeners once window.addEventListener('onSuccess', (event) => { if (onSuccessCallback) { onSuccessCallback(event.detail); } }); window.addEventListener('onEntriClose', (event) => { isOpen = false; if (onCloseCallback) { onCloseCallback(event.detail); } }); window.addEventListener('onEntriStepChange', (event) => { if (onStepChangeCallback) { onStepChangeCallback(event.detail); } }); return { open(config) { isOpen = true; window.entri.showUnify({ applicationId: config.applicationId, token: config.token, dnsRecords: config.dnsRecords, prefilledDomain: config.prefilledDomain, userId: config.userId, }); }, close() { window.entri.close(); }, isOpen() { return isOpen; }, onSuccess(callback) { onSuccessCallback = callback; }, onClose(callback) { onCloseCallback = callback; }, onStepChange(callback) { onStepChangeCallback = callback; }, }; })(); ``` ### Step 2: Use in Your Application ```html theme={"system"} Domain Setup
``` ## Event Handling Entri emits several events during the flow. Set up listeners **before** calling `showUnify()`. ### onEntriPathSelected Triggered when the user chooses between buying a new domain and connecting an existing one. After this point, the chosen flow fires its regular events. See [Unify events](/unify/events). ```javascript theme={"system"} window.addEventListener('onEntriPathSelected', (event) => { const { path, domain } = event.detail; console.log('User chose:', path); // 'sell' or 'connect' }); ``` ### onSuccess Triggered when the user successfully completes domain setup (reaches the Congratulations screen). ```javascript theme={"system"} window.addEventListener('onSuccess', (event) => { const { domain, setupType, provider, jobId } = event.detail; console.log('Domain:', domain); console.log('Setup type:', setupType); // 'automatic' or 'manual' console.log('Provider:', provider); console.log('Job ID:', jobId); // Use for webhook correlation }); ``` ### onEntriClose Triggered when the modal is closed, whether successful or not. ```javascript theme={"system"} window.addEventListener('onEntriClose', (event) => { const { success, domain, error, lastStatus } = event.detail; if (success) { console.log('Domain configured successfully:', domain); } else if (error) { console.log('Error:', error.code, '-', error.title); } else { console.log('User exited at:', lastStatus); } }); ``` ### onEntriStepChange Triggered when the user moves between screens in the modal. Useful for analytics. ```javascript theme={"system"} window.addEventListener('onEntriStepChange', (event) => { const { step, domain, provider } = event.detail; // Track user progress console.log('Step:', step); console.log('Domain:', domain); console.log('Provider:', provider); }); ``` ### onEntriManualSetupDocumentationClick Triggered when the user clicks the manual setup guide link. ```javascript theme={"system"} window.addEventListener('onEntriManualSetupDocumentationClick', () => { // Open your custom help, e.g., a support chat openSupportChat(); }); ``` ## Common Patterns ### Loading State UI ```javascript theme={"system"} const button = document.getElementById('connect-btn'); const originalText = button.textContent; const setLoading = (isLoading) => { button.disabled = isLoading; button.textContent = isLoading ? 'Connecting...' : originalText; }; // When opening Entri setLoading(true); window.entri.showUnify(config); // When Entri closes window.addEventListener('onEntriClose', () => { setLoading(false); }); ``` ### Error Display ```javascript theme={"system"} const showError = (error) => { const errorDiv = document.getElementById('error-message'); if (!error) { errorDiv.style.display = 'none'; return; } errorDiv.innerHTML = `${error.title}

${error.details}

`; errorDiv.style.display = 'block'; }; window.addEventListener('onEntriClose', (event) => { if (event.detail.error) { showError(event.detail.error); } }); ``` ### Check Domain Before Opening Use `checkDomain` to verify provider support before showing the modal: ```javascript theme={"system"} const openWithDomainCheck = async (domain) => { const config = { applicationId: 'YOUR_APPLICATION_ID', token: 'YOUR_JWT_TOKEN', dnsRecords: [ { type: 'CNAME', host: 'www', value: 'your-service.com', ttl: 300 } ], }; // Check if automatic setup is supported const check = await window.entri.checkDomain(domain, config); if (check.setupType === 'Automatic') { console.log('Automatic setup available with', check.provider); } else { console.log('Manual setup required'); } // Open Entri with prefilled domain config.prefilledDomain = domain; window.entri.showUnify(config); }; ``` ### Multiple DNS Records Configure multiple records for complex setups: ```javascript theme={"system"} window.entri.showUnify({ applicationId: 'YOUR_APPLICATION_ID', token: 'YOUR_JWT_TOKEN', dnsRecords: [ { type: 'CNAME', host: 'www', value: 'your-service.com', ttl: 300, }, { type: 'TXT', host: '@', value: 'v=spf1 include:your-service.com ~all', ttl: 300, }, { type: 'MX', host: '@', value: 'mail.your-service.com', ttl: 300, priority: 10, }, ], }); ``` ## Troubleshooting ### Event listeners not firing Make sure you're adding listeners **before** calling `showUnify()`: ```javascript theme={"system"} // Wrong - listener added after showUnify window.entri.showUnify(config); window.addEventListener('onEntriClose', handler); // Too late! // Correct - listener added before showUnify window.addEventListener('onEntriClose', handler); window.entri.showUnify(config); ``` ### SDK not loaded Check that the script has loaded before using it: ```javascript theme={"system"} if (typeof window.entri === 'undefined') { console.error('Entri SDK not loaded'); return; } window.entri.showUnify(config); ``` Or wait for the script to load: ```javascript theme={"system"} window.addEventListener('load', () => { // Safe to use window.entri here document.getElementById('connect-btn').addEventListener('click', () => { window.entri.showUnify(config); }); }); ``` ### Multiple event handlers firing If you're dynamically adding/removing elements, make sure to clean up event listeners: ```javascript theme={"system"} const handler = (event) => { console.log('Entri closed:', event.detail); }; // Add listener window.addEventListener('onEntriClose', handler); // Remove listener when no longer needed window.removeEventListener('onEntriClose', handler); ``` ## Next Steps * [Unify Configuration](/unify/configuration) - Full configuration options * [Webhooks](/webhooks-overview) - Server-side event handling * [Getting Started](/getting-started) - Dashboard setup and token generation # Blog Source: https://developers.entri.com/links/blog # Demo Source: https://developers.entri.com/links/demo # Monitor Configuration Source: https://developers.entri.com/monitor/configuration monitor: true config keys for the standalone connectDomain() and purchaseDomain() flows; showUnify() enrolls domains automatically. > [!NOTE] > > If you launch Entri through [`showUnify()`](/unify/overview), domains are added to Entri Monitor automatically and none of the configuration below is needed. The `monitor` flags on this page apply to the standalone `connectDomain()` and `purchaseDomain()` flows. ## Adding monitoring using Entri Connect or Entri Sell When initializing a new domain using `connectDomain()` or `purchaseDomain()`, you can pass a `monitor: true` property in either the domain object or each record object to specify that it should be tracked with Entri Monitor. Monitor everything: ```json theme={"system"} { "prefilledDomain": "mydomain123.com", "applicationId": "12345", "token": "12345", "monitor": true, "dnsRecords": [ { "type": "CNAME", "host": "{SUBDOMAIN}.xyz.example.com", // blog.xyz.example.com "value": "custom-proxy.leadpages.net", "ttl": 300, }, { "type": "TXT", "host": "@", "value": "{SLD}-{TLD}", // example-com "ttl": 300, } ] } ``` Monitor only the CNAME record: ```json theme={"system"} { "prefilledDomain": "mydomain123.com", "applicationId": "12345", "token": "12345", "dnsRecords": [ { "type": "CNAME", "host": "{SUBDOMAIN}.xyz.example.com", // blog.xyz.example.com "value": "custom-proxy.leadpages.net", "ttl": 300, "monitor":true }, { "type": "TXT", "host": "@", "value": "{SLD}-{TLD}", // example-com "ttl": 300, } ] } ``` # Monitor Endpoints Source: https://developers.entri.com/monitor/endpoints REST endpoints for Entri Monitor: /monitor/domains, /monitor/domains/batch, /monitor/status. ## Entri Monitor API ## General API Guidelines ### Base URL ``` https://api.goentri.com ``` ### Authentication All requests require the following headers: * **`applicationId`**: Your unique application ID. * **`Authorization`**: A bearer token (JWT) generated using your client secret. See [Token creation (JWT)](/connect/configuration#token-creation-jwt). **Example Headers**: ```http theme={"system"} applicationId: your-app-id Authorization: Bearer your-auth-token ``` > [!NOTE] > > Monitor endpoints are protected by a **custom Lambda authorizer** that validates the `applicationId` + `Authorization` pair on every request. Authorizer results are **not cached**. Each request is re-authorized, so always send a valid, unexpired token. ### Token scope When you mint the JWT you can add a `product`, `domain` and `dnsRecords` claim, as described in [Enhancing Integration Security](/connect/configuration#enhancing-integration-security). Monitor enforces these claims as follows. Every rejection described here happens before anything is read or changed, so after a `403` the monitored domain and its records are exactly as they were. #### The `product` claim The endpoints that act on many domains at once require a JWT issued with `product: "monitor"`. A token without a `product` claim is rejected with a `403` and the message `The token must be issued with product 'monitor' to use this endpoint. See https://developers.entri.com/connect/configuration#enhancing-integration-security`. This also applies to applications that have authentication disabled. | Endpoint | Requires `product: "monitor"` | | - | - | | [`GET /monitor/domains`](#list-domains), with or without `?domain=` | Yes | | [`POST /monitor/domains/batch`](#batch-create-domains) | Yes | | [`DELETE /monitor/domains/batch`](#batch-delete-domains) | Yes | | [`GET /monitor/domains/batch/status/:request_id`](#batch-status) | Yes | | Every other Monitor endpoint | No | A JWT issued for another product (`connect`, `sell`, `power` or `secure`) is rejected on every Monitor endpoint with a `403` and the message `JWT is not valid for this resource`. The single-domain endpoints keep accepting a token that has no `product` claim. #### The `domain` claim When the JWT carries a `domain` claim, the single-domain endpoints only accept requests for that domain. The comparison is not case-sensitive. A request for any other domain is rejected with a `403` and the message `The token is not authorized for the requested domain.` This applies to [Retrieve domain details](#retrieve-domain-details), [Add a domain](#add-a-domain), [Update a domain](#update-a-domain), [Delete a domain](#delete-a-domain), and the four `/monitor/domains/:domain_name/records` endpoints. It also applies to every item of a [batch create](#batch-create-domains) or [batch delete](#batch-delete-domains) request made with a token that combines `product: "monitor"` and a `domain` claim: if any item names another domain, the whole batch is rejected with a `403` and nothing is queued. #### The `dnsRecords` claim When the JWT carries a `dnsRecords` claim, the records in the request are checked against the records in the token. A mismatch is rejected with a `403` and the message `The DNS records do not match the authorized records.` The rule depends on the endpoint: | Endpoint | Rule | | - | - | | [Add a domain](#add-a-domain), [Update a domain](#update-a-domain), [Update DNS records](#update-dns-records), each item of [Batch create domains](#batch-create-domains) | The request must contain exactly the records in the token, in any order. | | [Create DNS records](#create-dns-records), [Delete DNS records](#delete-dns-records) | Every record in the request must be one of the records in the token. A subset is fine. | A record's `ttl` is only compared when the record in the token includes one. If the token's record has no `ttl`, the request can send any value. ### DNS record format Wherever an endpoint accepts a `dnsRecords` array, each record has the following shape: | Field | Type | Description | | - | - | - | | `type` | string | One of `A`, `AAAA`, `CNAME`, `MX`, `TXT`, `NS`, `SOA`, `SRV`, `PTR`, `CAA`. | | `host` | string | The record host. | | `value` | string | The record value. | | `ttl` | integer | Time to live, in seconds. Must be greater than 0. | The `/monitor/domains/:domain_name/records` endpoints validate these fields strictly: an unsupported record `type`, an empty `host` or `value`, a `ttl` of 0 or less, or an empty `dnsRecords` array is rejected with a `400` response. ## Quickstart ### Step 1: Add domains for monitoring You'll first need to tell Entri Monitor which domain you'd like to monitor. Send a `POST` request to `/monitor/domains` with the name of the domain, as well as a list of the records you want to monitor, including their `type`, `host`, `value`, and `ttl` properties. Example request body: ```json theme={"system"} { "domain": "example.com", "dnsRecords": [ { "type": "A", "host": "@", "value": "93.184.216.34", "ttl": 3600 } ] } ``` You'll receive a `201` response like this if you're successful: ```json theme={"system"} { "message": "Domain successfully added" } ``` ### Step 2: Specify a webhook URL Log into the Entri Dashboard and navigate to the App Settings page. Enter the URL of the webhook that you'll use to receive notifications about the DNS changes you specified. ### Step 3: Set up your service to receive the webhook requests at the URL you specified Your webhook URL will be sent requests if the DNS records you specified are modified or deleted. Example request: ```json theme={"system"} { "id": "e98d267b-84b8-4229-a94a-1933ed7f91ea", "subdomain": "www", "domain": "example.com", "user_id": "user123", "type": "domain.record_missing" / "domain.record_restored", "data": { "records_propagated": [ { "host": "www", "ttl": 300, "type": "CNAME", "value": "mydestinationdomain.com" } ], "records_non_propagated": [ { "host": "@", "ttl": 300, "type": "TXT", "value": "domain_verification123" } ] }, "connect_link": "https://customurl.goentri.dev/share/27bc7873e6ad452780686b8c0436eb75" } ``` ## Retrieve DNS records ``` GET https://api.goentri.com/monitor/domains/:domain_name/records Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Query parameters * `subdomain` (string, optional): Target the records monitored for a specific subdomain of `domain_name`. Omit it to target the records monitored on the apex domain. ### Successful response (200 status) Returns the monitored records as a JSON array: ```JSON JSON theme={"system"} [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ] ``` Returns a `404` response if the domain is not monitored or your application is not authorized to access it. ## Create DNS records Adds the given records to the set already being monitored for the domain. Existing monitored records are kept. ``` POST https://api.goentri.com/monitor/domains/:domain_name/records Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Query parameters * `subdomain` (string, optional): Target a specific subdomain of `domain_name`. Omit it to target the apex domain. ### Request body ```JSON JSON theme={"system"} { "dnsRecords": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ] } ``` ### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "DNS Records successfully updated" } ``` ## Update DNS records Replaces the full set of monitored records for the domain (or subdomain) with the records in the request. Any previously monitored record not included in the request stops being monitored. ``` PUT https://api.goentri.com/monitor/domains/:domain_name/records Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Query parameters * `subdomain` (string, optional): Target a specific subdomain of `domain_name`. Omit it to target the apex domain. ### Request body ```JSON JSON theme={"system"} { "dnsRecords": [ { "type": "TXT", "host": "example.com", "value": "v=spf1 include:_spf.example.com ~all", "ttl": 3600 } ] } ``` ### Successful response (201 status) ```JSON JSON theme={"system"} { "message": "DNS Records successfully updated" } ``` ## Delete DNS records Removes the given records from the monitored set. Monitored records that don't match a record in the request are kept. ``` DELETE https://api.goentri.com/monitor/domains/:domain_name/records Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Query parameters * `subdomain` (string, optional): Target a specific subdomain of `domain_name`. Omit it to target the apex domain. ### Request body ```JSON JSON theme={"system"} { "dnsRecords": [ { "type": "CNAME", "host": "www.example.com", "value": "example.com", "ttl": 3600 } ] } ``` ### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "DNS record(s) successfully deleted" } ``` ## The domain object The endpoints that return monitored domains use the following shape: | Field | Description | | - | - | | `id` | Unique identifier of the monitored domain. | | `domain` | The apex domain name. | | `subdomain` | The monitored subdomain, or `null` for the apex domain. | | `date_added` | Date the domain was added to Monitor. | | `dns_records` | The records being monitored. | | `records_present` | Monitored records that were found on the domain during the latest check. | | `records_missing` | Monitored records that were not found on the domain during the latest check. | | `missing_records_last_detected` | When missing records were last detected, or `null`. | | `last_checked_at` | When the domain's records were last checked by Monitor, or `null` if it hasn't been checked yet. | | `is_active` | Whether monitoring is currently active for the domain. | | `user_id` | The `userId` you provided when adding the domain, or `null`. | | `job_id` | The `jobId` you provided when adding the domain, or `null`. | | `source` | How the domain was enrolled. Domains added through these endpoints have the source `api`. | | `application_id` | The application the domain belongs to. | ## List domains > [!NOTE] > > This endpoint requires a JWT issued with `product: "monitor"`, including when you pass `?domain=` to look up a single domain. See [Token scope](#token-scope). ``` GET https://api.goentri.com/monitor/domains Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Query parameters * `domain` (string): Return a single monitored domain by name instead of a paginated list. * `offset` (integer): Pagination offset. Defaults to `0`. * `limit` (integer): Number of domains per page. Defaults to `10`. * `from_date` (date): Filter start date. Must be sent together with `to_date`. * `to_date` (date): Filter end date. Must be sent together with `from_date`. ### Successful response (200 status) ```JSON JSON theme={"system"} { "domains": [ { "id": "0b0e7d0c-6f36-4f1b-9a52-7f6f1c2ab001", "domain": "example.com", "subdomain": null, "date_added": "2026-08-01", "dns_records": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ], "records_present": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ], "records_missing": null, "missing_records_last_detected": null, "last_checked_at": "2026-08-20T09:00:00", "is_active": true, "user_id": "user123", "job_id": null, "source": "api", "application_id": "your-app-id" } ], "page": 0, "totalItems": 1 } ``` `page` echoes the `offset` you sent and `totalItems` is the number of domains returned in this response. See [The domain object](#the-domain-object) for the fields of each entry. ## Retrieve domain details ``` GET https://api.goentri.com/monitor/domains/:domain_name Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Query parameters * `subdomain` (string, optional): Target the monitored domain for a specific subdomain of `domain_name`. Omit it to target the monitored domain on the apex domain (the entry with no subdomain). It does not return "all subdomains" of `domain_name`. To look up a specific subdomain, pass its exact value (for example, `shop`). ### Successful response (200 status) Returns a single [domain object](#the-domain-object): ```JSON JSON theme={"system"} { "id": "0b0e7d0c-6f36-4f1b-9a52-7f6f1c2ab001", "domain": "example.com", "subdomain": null, "date_added": "2026-08-01", "dns_records": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ], "records_present": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ], "records_missing": null, "missing_records_last_detected": null, "last_checked_at": "2026-08-20T09:00:00", "is_active": true, "user_id": "user123", "job_id": null, "source": "api", "application_id": "your-app-id" } ``` Returns a `404` response if the domain is not monitored or your application is not authorized to access it. ## Add a domain ``` POST https://api.goentri.com/monitor/domains Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Request body ```JSON JSON theme={"system"} { "domain": "example.com", "dnsRecords": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ], "userId": "UUID" } ``` ### Request parameters | Parameter | Type | Required? | Description | | - | - | - | - | | `domain` | string | Yes | The apex domain to monitor. | | `dnsRecords` | array | Yes | The records to monitor. See [DNS record format](#dns-record-format). | | `subdomain` | string | No | Monitor the records for a specific subdomain of `domain` (for example, `shop` under `example.com`). | | `userId` | string | No | Your identifier for the end user. Echoed back as `user_id` in webhook payloads and domain objects. | | `jobId` | string | No | Your identifier for the setup job that created this domain. Echoed back as `job_id`. | | `userEmail` | string | No | The email address of the end user. | If the domain is already being monitored, this request updates it with the DNS records provided. ### Successful response (201 status) ```JSON JSON theme={"system"} { "message": "Domain successfully added" } ``` ## Update a domain Replaces the monitored records of an existing domain. ``` PUT https://api.goentri.com/monitor/domains Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Request body ```JSON JSON theme={"system"} { "domain": "example.com", "dnsRecords": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ], "userId": "UUID" } ``` ### Request parameters | Parameter | Type | Required? | Description | | - | - | - | - | | `domain` | string | Yes | The apex domain to update. | | `dnsRecords` | array | Yes | The new set of records to monitor. | | `subdomain` | string | No | Target a specific monitored subdomain of `domain`. | | `userId` | string | No | Your identifier for the end user. | Returns a `404` response if the domain is not being monitored. ### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Domain successfully updated." } ``` ## Delete a domain ``` DELETE https://api.goentri.com/monitor/domains Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Request body ```JSON JSON theme={"system"} { "domain": "example.com", "subdomain": "shop", "deleteOnlyIfEmpty": true } ``` ### Request parameters | Parameter | Type | Required? | Default | Description | | - | - | - | - | - | | `domain` | string | Yes | N/A | The apex domain to delete from Monitor. | | `subdomain` | string | No | N/A | When provided, deletes monitoring only for the given subdomain under `domain` (for example, `shop` under `example.com`). The apex is kept intact. | | `deleteOnlyIfEmpty` | boolean | No | false | When `true`, the domain (or subdomain) is only deleted if it has **no remaining monitored DNS records**. If records still exist, or the domain is already deleted, the request is rejected with a `400` response. Useful when reconciling from multiple sources. | All parameters must be sent in the request body. Query parameters are not supported on this endpoint. ### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Domain successfully deleted" } ``` Returns a `400` response with an explanatory message if the domain is not being monitored, is already deleted, or `deleteOnlyIfEmpty` is `true` and monitored records still exist. ## Batch create domains > [!NOTE] > > Each batch request is limited to a maximum of **100 domains**. Submit multiple batches if you need to register more than 100 at once. > [!NOTE] > > This endpoint requires a JWT issued with `product: "monitor"`. See [Token scope](#token-scope). ``` POST https://api.goentri.com/monitor/domains/batch Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Request body ```JSON JSON theme={"system"} { "domains": [ { "domain": "example.com", "dnsRecords": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ] }, { "domain": "example2.com", "dnsRecords": [ { "type": "A", "host": "example.com", "value": "93.184.216.34", "ttl": 3600 } ] } ] } ``` Each entry in `domains` accepts the same fields as [Add a domain](#add-a-domain). ### Successful response (201 status) The batch is processed asynchronously. Use the returned `request_id` with the [Batch status](#batch-status) endpoint to track its progress. ```JSON JSON theme={"system"} { "request_id": "e98d267b-84b8-4229-a94a-1933ed7f91ea", "status": "IN_PROGRESS" } ``` ## Batch delete domains Deletes multiple monitored domains in a single request. The batch is processed asynchronously: the endpoint validates and queues the request, then returns a `request_id` that you can use to track progress through the [Batch status](#batch-status) endpoint. > [!NOTE] > > Each batch request is limited to a maximum of **1000 domains**. Submit multiple batches if you need to delete more than 1000 at once. > [!NOTE] > > This endpoint requires a JWT issued with `product: "monitor"`. See [Token scope](#token-scope). ``` DELETE https://api.goentri.com/monitor/domains/batch Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Request body ```JSON JSON theme={"system"} { "domains": [ { "domain": "example.com" }, { "domain": "example.com", "subdomain": "shop" }, { "domain": "example2.com", "deleteOnlyIfEmpty": true } ] } ``` ### Request parameters Each item in the `domains` array accepts the same options as [Delete a domain](#delete-a-domain): | Parameter | Type | Required? | Default | Description | | - | - | - | - | - | | `domain` | string | Yes | N/A | The apex domain to delete from Monitor. | | `subdomain` | string | No | N/A | When provided, deletes monitoring only for the given subdomain under `domain`. Omit it (or send `null`) to target the entry monitored for the root domain. | | `deleteOnlyIfEmpty` | boolean | No | false | Same behavior as the `deleteOnlyIfEmpty` option on [Delete a domain](#delete-a-domain), applied per item. | Each item is matched against your monitored domains by its `domain` and `subdomain` pair. Items that cannot be matched, or that fail validation, fail individually without affecting the rest of the batch; they are reported through the [Batch status](#batch-status) endpoint. ### Successful response (201 status) ```JSON JSON theme={"system"} { "request_id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "status": "IN_PROGRESS" } ``` The deletions happen in the background. Poll the [Batch status](#batch-status) endpoint with the returned `request_id` to check the result. ### Error responses | HTTP | Example Body | Description | | -: | - | - | | 400 | `{ "message": "Missing domains in the request body." }` | The `domains` array is missing or empty. | | 400 | `{ "message": "The maximum number of domains is 1000" }` | More than 1000 domains were submitted. | | 403 | `{ "message": "The token must be issued with product 'monitor' to use this endpoint. See https://developers.entri.com/connect/configuration#enhancing-integration-security" }` | The JWT has no `product` claim, or the application has authentication disabled. | | 500 | `{ "message": "Internal Server Error" }` | Unexpected server error. | ## Batch status Returns the status of a batch create or batch delete request, using the `request_id` returned when the batch was submitted. > [!NOTE] > > Batch status records are retained for **7 days** (TTL) after the batch is submitted. After that window, status lookups for old batches will return a not-found response. > [!NOTE] > > This endpoint requires a JWT issued with `product: "monitor"`. See [Token scope](#token-scope). ``` GET https://api.goentri.com/monitor/domains/batch/status/:request_id Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Successful response (200 status) ```JSON JSON theme={"system"} { "batchId": "0c9f9d7a-2b1e-4c3d-8e5f-6a7b8c9d0e1f", "applicationId": "your-app-id", "status": "SUCCESS", "successfulDomains": 10 } ``` When one or more items fail, the response also includes a `failedDomains` object listing them: ```JSON JSON theme={"system"} { "batchId": "0c9f9d7a-2b1e-4c3d-8e5f-6a7b8c9d0e1f", "applicationId": "your-app-id", "status": "FAILED", "successfulDomains": 9, "failedDomains": { "count": 1, "domains": [ { "domain": "example.com", "subdomain": "shop" } ] } } ``` ### Response fields | Field | Type | Description | | - | - | - | | `batchId` | string | The identifier assigned to the batch. | | `applicationId` | string | Your application ID. | | `status` | string | `IN_PROGRESS` while the batch is being processed, `SUCCESS` when every item completed, or `FAILED` if any item failed. | | `successfulDomains` | integer | The number of items that completed successfully. | | `failedDomains` | object | Only present when at least one item failed. Contains `count` and `domains`, the list of items that could not be processed. | Returns a `404` response if there is no status for the given request ID (including expired records), and a `403` response if the request belongs to a different application or the JWT was not issued with `product: "monitor"`. ## Monitor service status Returns the current health of the Entri Monitor service itself, based on its most recent internal health check. ``` GET https://api.goentri.com/monitor/status Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Successful response (200 status) ```JSON JSON theme={"system"} { "status": "healthy", "executedAt": "2026-08-18T09:00:00" } ``` `status` is either `"healthy"` or `"unhealthy"`, and `executedAt` is the timestamp of the last health check run. ## Webhooks To receive webhook notifications about the target domains, log into the Entri Dashboard and navigate to the App Settings page. Enter the URL of the webhook that you'll use to receive notifications about the DNS changes you specified. Your webhook URL will be sent requests if the DNS records you specified are modified or deleted. ### Top-Level fields * **`id`**: A unique identifier for the webhook event (e.g. `"e98d267b-84b8-4229-a94a-1933ed7f91ea"`). * **`user_id`**: The ID of the user who initiated the domain-related action (e.g. `"your-provided-user-id"`). * **`domain`**: The domain involved in the event (e.g. `"example.com"`). * **`subdomain`**: The subdomain associated with the event, if any (e.g. `"shop"`). * **`type`**: Defines the type of event. Possible values: * `"domain.record_missing"`: Used whenever there is a record missing from the records that are being monitored. * `"domain.record_restored"`: Confirms that ALL records have been restored. * **`data.records_propagated`**: Contains all the records that are being monitored and **were found correctly** configured on the domain. * **`data.records_non_propagated`**: Contains all the records that are being monitored and **were found as missing** on the domain. * **`connect_link`**: Entri Connect's sharing link with the configuration required to re-establish the missing records on the domain. Example request: ```json theme={"system"} { "id": "e98d267b-84b8-4229-a94a-1933ed7f91ea", "subdomain": "www", "domain": "example.com", "user_id": "user123", "type": "domain.record_missing" / "domain.record_restored", "data": { "records_propagated": [ { "host": "www", "ttl": 300, "type": "CNAME", "value": "mydestinationdomain.com" } ], "records_non_propagated": [ { "host": "@", "ttl": 300, "type": "TXT", "value": "domain_verification123" } ] }, "connect_link": "https://customurl.goentri.dev/share/27bc7873e6ad452780686b8c0436eb75" } ``` # Monitor Events Source: https://developers.entri.com/monitor/events Webhook events (domain.record_missing, domain.record_restored) and the monitor_status field. This page documents the webhook events and payload fields relevant to Entri Monitor. For the payload envelope and signature verification, see [Webhooks Overview](/webhooks-overview). ## Webhook event types * `"domain.record_missing"`: Only applicable when using **Entri Monitor**. A DNS record that was previously detected is no longer found. This may indicate it was removed or is temporarily unavailable. * `"domain.record_restored"`: Only applicable when using **Entri Monitor**. A previously missing DNS record has been detected again. ## Status fields * **`monitor_status`**: Only relevant when using Entri Monitor. Describes the status of the monitoring feature. This key will not be shown on flows that don't use Entri Monitor. Possible values: * `"pending"`: Monitoring domain setup is pending. * `"success"`: Monitoring domain setup was successful. * `"failed"`: Monitoring domain setup failed. ## Example webhook payload ```json theme={"system"} { "id": "e98d267b-84b8-4229-a94a-1933ed7f91ea", "subdomain": "www", "domain": "example.com", "user_id": "user123", "type": "domain.record_missing", // Can also be "domain.record_restored" "data": { "records_propagated": [ { "host": "www", "ttl": 300, "type": "CNAME", "value": "mydestinationdomain.com" } ], "records_non_propagated": [ { "host": "@", "ttl": 300, "type": "TXT", "value": "domain_verification123" } ] }, "connect_link": "https://customurl.goentri.dev/share/27bc7873e6ad452780686b8c0436eb75" } ``` # Entri Monitor Overview Source: https://developers.entri.com/monitor/overview Continuous DNS record monitoring — what Entri Monitor is and when to use it. ## Overview Entri Monitor allows you to monitor DNS record changes across multiple domains. This can be useful in a variety of scenarios, such as: * Notifying your customer that they inadvertently broke the DNS record configuration required to use your application * Detecting if a customer is at risk for churn or might be moving to a competing solution If Entri Monitor detects a change (or deletion) of one of the records specified on a monitored domain, a notification is sent to the webhook URL that you provide on the App Settings page of the Entri Dashboard. Entri Monitor checks your monitored records on an ongoing basis. ## How domains are enrolled Domains added through [`showUnify()`](/unify/overview) are enrolled in Entri Monitor automatically. No configuration is needed. To opt out, pass `monitor: false` in the `showUnify()` config. For the standalone flows, `connectDomain()` (Entri Connect) and `purchaseDomain()` (Entri Sell), enrollment is opt-in: pass `monitor: true` in the configuration, either for the whole domain or per record. See [Monitor configuration](/monitor/configuration). Optionally, you can combine Entri Monitor with Entri Connect to help your user fix their DNS if Monitor detects a breaking change. ![](https://mintcdn.com/entri-42/y89yB6zwvoVA7ecV/images/monitor.png?fit=max\&auto=format\&n=y89yB6zwvoVA7ecV\&q=85\&s=39a55531545bf6c115686131dc8bc948) # DNS Provider Onboarding Source: https://developers.entri.com/network/dns-provider-onboarding Register your DNS platform with the Entri Network so Entri can automatically configure DNS records on behalf of your users. ## Overview Entri Network lets DNS providers (registrars, hosting companies, DNS platforms) register their APIs with Entri so that when a mutual user launches the Entri modal, Entri can configure DNS records automatically — no copy-paste required. You configure your integration through the **Setup** wizard. It walks you through five steps: 1. **Provider profile** — how customers see you. 2. **Domain detection** — how Entri knows a domain is yours. 3. **Authentication** — how Entri logs into your API. 4. **DNS endpoints** — the routes Entri calls to read and write DNS records. 5. **Review & submit** — a final check before you go live. You can move between steps freely. Each step is saved independently, and you must complete the required fields in a step before continuing. Once you're live, this same page becomes your editable settings. This page documents every field in the wizard. *** ## Step 1 — Provider profile > **Tell us who you are.** This is the brand customers see when they connect a domain to an app. It's also how Entri reaches you if something goes sideways. ### Brand | Field | Required | Description | | - | - | - | | **Provider name** | ✓ | The name shown to customers in the connect dialog (e.g. `DNSimple`, `Cloudflare`) | | **Website** | — | Your company website URL | | **Support email** | ✓ | Where customers reach you for connection help | | **Logo** | — | Upload a square PNG or SVG, at least 64×64. Shown to users when they connect their domain via the Entri modal | | **Brand color** | — | Used for buttons and highlights in the connect dialog. Click the swatch to open the color picker, or enter a hex value (e.g. `#006fee`) | > [!NOTE] > > Your provider name may be pre-filled if Entri already has a record for your platform. You can edit it before saving. ### Manual fallback Optional — a link to your own DNS instructions, in case Entri ever needs to send a customer to you to finish a connection. | Field | Required | Description | | - | - | - | | **Manual instructions URL** | — | A link to your DNS help docs (e.g. `https://help.yourcompany.com/dns`) | ### Preview Use **Preview in Entri** to see a snapshot of the provider card customers will see in the Entri picker. *** ## Step 2 — Domain detection > **Help Entri recognize your customers' domains.** When someone enters their domain in Entri, we need to know it's managed by you. Pick one or both methods — Entri tries each in order. ### Nameserver match If a domain's nameservers are yours, Entri knows it's on your service. | Field | Required | Description | | - | - | - | | **Your nameservers** | ✓ | One nameserver hostname per line (e.g. `ns1.example.com`). Wildcards (e.g. `ns*.example.com`) are supported | ### DNS lookup (recommended) Add a DNS record Entri can verify on every domain you manage. Useful if your nameservers vary. | Field | Required | Description | | - | - | - | | **DNS Record Type** | ✓ | The record type Entri checks: `TXT` (recommended), `CNAME`, `A`, or `MX` | | **Record host** | ✓ | The hostname Entri looks up (e.g. `_entri-verify`) | | **Expected value** | ✓ | The value Entri expects to find at that host (e.g. `entri-verify=your-token`) | > [!TIP] > > DNS lookup is the most reliable method when your nameservers aren't fixed. Configure your platform to add the record above to every domain it manages. *** ## Step 3 — Authentication > **Decide how Entri logs into your API.** You configure exactly **one** method per integration. ### Method Choose one of the three authentication methods: | Method | Description | | - | - | | **OAuth 2.0** | Recommended. The customer signs in to your dashboard to authorize Entri | | **Login (with optional MFA)** | The customer enters their username + password directly in Entri | | **Basic Auth** | An API key sent as the `Authorization` header. Simplest for read-only | ### OAuth credentials Shown when **OAuth 2.0** is selected. Find these in your OAuth app settings. | Field | Required | Description | | - | - | - | | **Client ID** | ✓ | The client ID for the Entri OAuth application registered in your system | | **Client secret** | ✓ | The corresponding client secret — stored encrypted with AWS KMS | | **Authorization URL** | ✓ | The OAuth authorization endpoint your users are redirected to | | **Token URL** | ✓ | The token exchange endpoint | | **Scopes** | — | Comma-separated OAuth scopes. Leave blank if your provider doesn't use scopes | | **Entri redirect URI** | (read-only) | Entri's callback URI (e.g. `https://app.entri.com/auth/callback/`). Use **Copy** and add it to your OAuth app's allowed callback URLs | > [!NOTE] > > With OAuth 2.0, Entri manages token injection automatically — you don't need to declare Authentication Parameters. Once the customer approves access, Entri sends the access token as `Authorization: Bearer ` on every subsequent API call. ### Authentication Parameters Declare every value Entri injects into HTTP calls during authentication — the request field name, its location, and the static encrypted value Entri sends. Use **Add parameter** to open the drawer. | Field | Required | Description | | - | - | - | | **Request Field Name** | ✓ | The header, query, body field name, or URL variable for path segments (e.g. `X-API-Key`) | | **Location** | ✓ | Where the value is placed: `header`, `query`, `body`, or `url` | | **Prefix** | — | A string prepended to the value before injection (e.g. `Bearer ` to produce `Authorization: Bearer `) | | **Encrypted Value** | ✓ | The fixed value — the same for every user, stored encrypted at rest (e.g. `encrypted:kms:arn:aws:kms:...`) | > [!NOTE] > > Authentication Parameters here carry **static** platform-level credentials (like an API key) that accompany every authentication call. OAuth 2.0 does not need them. ### Request signing Shown for **Login** and **Basic Auth**. Optional — configure this if you need to verify that signed requests originated from the Entri platform. Entri signs the request body with its global RSA private key; you verify using Entri's public key. | Field | Description | | - | - | | **Algorithm** | Signing algorithm — `SHA256withRSA` (read-only) | | **Signature header** | HTTP header where Entri attaches the base64-encoded signature (e.g. `Sig`, `X-Entri-Signature`) | | **Our public key ref (KMS ARN)** | KMS ARN Entri uses to export its public key (`kms:GetPublicKey`). Share the resulting key material with your platform so it can verify signatures | Request signing is not applicable to OAuth 2.0. *** ## Step 4 — DNS endpoints > **Wire up your DNS API.** Map each operation Entri needs to a route in your API. Complete every required row in the sidebar before you continue. The sidebar lists the operations you must configure: ### List domains `get_domains` — Returns all domains for the authenticated customer. Entri calls this to populate the domain picker. The response should be a list of domains. Entri only reads the domain name from this response, so the single mapping you need is your domain name field to Entri's `name`. If your API returns `domainName`, map `domainName` to `name`. Any other metadata in the payload (status, nameservers, expiration date, auto-renew, lock flags, and so on) is ignored. You do not need to map it, and you do not need to strip it out. ### Read DNS records `get_records` — Returns all DNS records for one domain. Entri calls this to read the current record state before making changes. Use `{variableName}` in the URL for the domain identifier returned by **List domains**. Map your record fields to Entri's standard names in **Field mappings** if needed. ### Record writes Choose how your API creates and removes DNS records: * **Separate** — configure **Add record** (`add_record`) and **Delete record** (`delete_record`) as individual endpoints. * **Batch** — configure a single **Batch DNS records** (`batch_records`) endpoint that creates or updates multiple records in one call. You only configure the rows for the shape you select. Both shapes are fully supported, and the choice does not change what Entri asks of your API beyond the endpoints themselves. See [How Entri writes records](#how-entri-writes-records) for the exact sequence of calls in each mode. ### Update nameservers `update_nameservers` — Replaces the nameservers for a domain. **Why Entri needs this.** Not every connection is solved by writing DNS records. Some SaaS platforms run their own nameservers and take over the customer's DNS zone entirely, pointing the domain at their nameservers so they can manage the zone themselves. Wix is one example. When a user connects a domain to a platform that works this way, the correct action is to delegate the domain rather than add records to your zone, which means Entri needs to be able to set the nameservers on the domain. Record management alone cannot cover those integrations. Address the domain by its name in the path, for example `https://api.yourcompany.com/v1/domains/{domain}/nameservers` where `{domain}` is the domain name. Nameserver updates do not have to complete synchronously. If your API accepts the change and processes it in the background, return `202 Accepted`. Entri handles the asynchronous case and does not treat a `202` as a failure. ### Add WWW redirect `add_www_redirect` — Creates a `www → root` redirect (or `root → www`). Used when a user points their domain to an application and needs web forwarding. This endpoint is optional, but supporting it is strongly encouraged because many applications depend on `www` resolving. It is not the same as adding a `www` CNAME record: Entri expects a real HTTP 301 redirect, so this usually maps to your web forwarding feature rather than to your DNS record API. ### Shared parameters Values injected into **every** DNS endpoint call — sourced from the auth response or a static encrypted value. Use **Add parameter** to open the drawer. | Field | Required | Description | | - | - | - | | **Request Field Name** | ✓ | The header, query, body field name, or URL variable name for path segments | | **Location** | ✓ | Where the value is placed: `header`, `query`, `body`, or `url` | | **Prefix** | — | A string prepended to the value before injection | | **Source** | ✓ | `auth` — extracted from the token/auth response via a JSON path. `static` — a fixed encrypted value, the same for every user | | **JSON Path** | ✓ (if `source: auth`) | JSONPath to extract from the authentication response (e.g. `$.accessToken`) | | **Static Value** | ✓ (if `source: static`) | The fixed value, stored encrypted — the same for every user | *** ## How Entri writes records Conflict detection and resolution happen entirely on Entri's side, before any write endpoint is called. You do not implement conflict logic, and your write endpoints do not need to inspect the existing zone. Every DNS change follows the same sequence: 1. Entri calls your `get_records` endpoint to fetch the current records on the domain. 2. Entri runs an internal analysis comparing the existing records against the records that need to be added, and identifies conflicts, meaning existing records that would clash with a new one. 3. Entri writes the resolved changes using whichever write endpoints you exposed. How step 3 is carried out depends on the record write shape you configured: | Write shape | What Entri sends | | - | - | | **Batch** (`batch_records`) | Entri computes the final desired state, which is the existing records minus the conflicting ones plus the new records, and sends it as a **single request** containing the **full merged zone**. Your API applies the set as given. | | **Separate** (`add_record` + `delete_record`) | Entri first sends delete requests for the conflicting records, then sends add requests for the new records. | > [!NOTE] > > In batch mode the payload is the complete zone after merging, not a diff of the customer's changes. Your endpoint should treat the request as the authoritative record set for that domain. > [!NOTE] > > Both shapes are equally valid. Expose either a batch endpoint or the add and delete pair, and Entri adapts its write strategy to what you support. *** ## API behavior and compatibility Entri is designed to work with your API as it already exists. A few common questions about what Entri tolerates: **Internationalized domain names.** Entri handles both Punycode and Unicode. If your endpoints return `blog.xn--mnchen-3ya.de`, that is fine, and so is `blog.münchen.de`. No normalization is needed on your side. **Concurrent edits.** Entri does not require optimistic locking or version checking, and does not depend on a `409 Conflict` response when two clients write to the same zone at once. Because Entri reads the zone immediately before writing, the window for a collision is very small. If you already implement version checking, keeping it causes no problems. **Asynchronous operations.** A `202 Accepted` response is handled correctly, which matters most for nameserver updates on TLDs that process changes in the background. **Error responses.** Entri reads the error message from the JSON path you configure as **Error Path**, and accepts either a single string or an array of strings at that path. See [Response Mapping](#response-mapping). **Pagination metadata.** Not required. See [Pagination](#pagination). *** ## Endpoint configuration Every DNS endpoint is described using the same set of fields. ### HTTP Request | Field | Required | Description | | - | - | - | | **Method** | ✓ | HTTP method. Read endpoints (`get_domains`, `get_records`) are `GET`; write endpoints offer `POST`, `PUT`, `PATCH`, and (where valid) `DELETE` | | **API URL** | ✓ | Full API URL. Use `{variableName}` for path variables — e.g. `https://api.yourcompany.com/v1/domains/{domainId}/records` | | **Static Query Parameters** | — | Fixed query parameters appended to every request. Pagination parameters are managed automatically — don't add them here | | **Request Headers** | — | Headers added to every call. `Authorization` is injected automatically from your auth parameters | ### Request Body Shown for non-`GET` methods. JSON only. Use `{{variableName}}` for template variables — values from the domain detection step or auth response are injected at call time. For example: ```json theme={"system"} { "name": "{{host}}", "type": "A" } ``` ### Response Mapping For **read** endpoints (`get_domains`, `get_records`), tell Entri how to read your API's response: | Field | Required | Description | | - | - | - | | **Data Path** | ✓ | JSONPath to the list/array in your response — e.g. `$.records`, `$.data.items`, or `$` if the response is the array itself | | **Error Path** | ✓ | JSONPath to the error message in failed responses (e.g. `$.error.message`) | For mutation endpoints (`add_record`, `delete_record`, `batch_records`, `update_nameservers`, `add_www_redirect`), only **Error Path** is shown. > [!NOTE] > > **Error Path** can point at either a string or an array of strings. Some APIs return an error `message` that is a single string in some cases and an array of messages in others. Both shapes are supported, so you do not need to normalize the field before returning it. ### Field mappings Field mappings are **optional**. They exist only to translate names, so you need an entry only when a field in your API has a different name than the one Entri expects. If your API already uses Entri's names, leave the mappings empty. Open the dropdown next to any mapping row to see the full list of names Entri recognizes. For DNS records, these are the only fields Entri needs: | Entri field | Description | | - | - | | `host` | The record hostname or subdomain | | `value` | The record value | | `ttl` | Time to live, in seconds | | `priority` | Priority, for record types that use it (such as MX) | Example, if your API returns `content` instead of `value`: | Your field | Entri standard | | - | - | | `content` | `value` | The dropdown also lists `type`, `name`, `id`, and the type-specific names for SRV, MX, and CAA records (`srv.priority`, `srv.weight`, `srv.port`, `srv.target`, `mx.priority`, `mx.host`, `caa.flag`, `caa.tag`, `caa.value`). Map those only if your API names them differently. #### The `id` field Entri does not require a record `id`, in either batch or separate write mode. Map it only when your own endpoints need it. For example, if your `delete_record` route addresses records by ID, Entri has to know which field carries that ID, so map it. If your API identifies records by host, type, and value instead, no `id` mapping is needed and your records do not need an ID field at all. ### Pagination If `get_domains` or `get_records` returns paginated results, configure pagination so Entri fetches all pages automatically. Choose one of: `none`, `page_based`, `cursor_based`, or `offset_based`, then fill in the parameter names for that style. Entri only needs the request parameters, such as `page` and `limit`. Response metadata like `total_count` or `current_page` is not required, and Entri paginates correctly without it. > [!TIP] > > Pagination parameters (page number, cursor, offset) are managed automatically by Entri. Do not add them as Static Query Parameters. *** ## Testing your integration Entri does not host an external staging or sandbox environment for the network integration, and there is currently no self-serve tool that lets you run the full connection flow against your own configuration to verify it. That capability is on the roadmap but is not available yet. Testing happens through the draft and review process instead. Your configuration is a **draft** by default. Nothing you enter is live, and you can edit every step as many times as you need. When the configuration looks right, you submit it for review. Entri's team then runs the full end-to-end experience against your API, including the authentication flow and every configured endpoint, and reports any findings back to you. Nothing is published until it passes. So once you have finished wiring up authentication and your endpoints, submitting for review is the way to confirm the integration works. You do not need to validate it yourself first. Configure your integration against your **production** environment. Entri's review tests the real flow on real domains, so production endpoints and production credentials are what we expect to see, and they are required before your integration goes live. > [!NOTE] > > If your platform cannot be reviewed against production for some reason, contact Entri before you submit. Staging configurations are handled case by case, not as a standard step. Domain detection depends on public DNS, so nameserver match and DNS lookup cannot be verified against test domains that do not resolve publicly. *** ## Step 5 — Review & submit > **Final check.** Take one more look. When you submit, Entri's team reviews your integration and flips you live in the network — usually within one business day. The review screen summarizes everything you've configured, grouped into blocks: * **Provider** — name, website, support email, logo, brand color. * **Authentication** — method, OAuth credentials (if applicable), static auth parameters, and request-signing settings. * **Domain detection** — the approach, your nameservers, and the DNS record check. * **DNS endpoints** — the method and URL for each configured operation. If any step is incomplete, the screen lists exactly what's left to finish before you can submit. When everything is complete, choose **Submit for review**. After submission, the Entri team reviews and tests your configuration — you won't be able to make edits while it's in review. If your configuration passes, Entri publishes it into the Entri Connect modal and notifies you by email. > [!WARNING] > > You cannot submit until every required field across all steps is complete. *** ## Submission checklist Before submitting your integration, verify the following are configured: * [ ] **Provider profile** — provider name and support email * [ ] **Domain detection** — at least one method (nameserver match and/or DNS lookup) * [ ] **Authentication** — one method (OAuth 2.0, Login, or Basic Auth) and its required fields * [ ] **DNS endpoints** * [ ] List domains (`get_domains`) * [ ] Read DNS records (`get_records`) * [ ] Record writes — either Add record + Delete record, or Batch DNS records * [ ] Update nameservers * [ ] Add WWW redirect (optional, recommended) Field mappings are only needed where your field names differ from Entri's, so an empty mapping list is not a blocker. # Entri Network Overview Source: https://developers.entri.com/network/overview Join the Entri Network as a DNS provider so Entri can configure records on your platform automatically. ## Overview Entri Connect already configures DNS automatically for dozens of registrars and hosting platforms, and there are always more DNS providers that aren't integrated yet. Entri Network closes that gap. **Entri Network** is a self-service program that lets any DNS provider (a registrar, a hosting company, or a managed DNS platform) plug into Entri using a standardized, technology-agnostic API contract. Once you join, every service provider already using Entri can configure DNS records on your platform automatically, the same way they do with the providers Entri supports natively. You describe your API once and Entri handles the rest. There is no custom engineering work on Entri's side and no long sales cycle. You sign up, configure your endpoints in the dashboard, and your platform becomes part of the network. ## How it works 1. You sign up through the self-service onboarding flow and complete checkout. No sales call required. 2. In the Entri Network dashboard, you describe your platform: how Entri should authenticate against your API, how to detect which domains you manage, and which endpoints Entri calls to read and write DNS records. 3. Entri maps your API's request and response formats to its internal DNS logic, so your existing API works as-is with no changes on your side. 4. Once your configuration is submitted, your platform goes live in the network. When a mutual user connects a domain you manage, Entri authenticates and applies the records automatically. 5. You track every connection, view per-domain logs, and see usage analytics from your dashboard. ## Who it's for Entri Network is built for any DNS provider that wants to offer their users a seamless domain connection experience through Entri, without building and maintaining a custom integration. Whether you're a registrar, a hosting company, or a managed DNS platform, you can join the network and gain access to Entri's service providers with minimal engineering effort. The only requirement is that your platform exposes an API for reading and writing DNS records and that you're willing to map it to Entri's standard contract. Beyond that, the integration is technology agnostic. ## What you get Joining the network integrates your platform with every service provider already on Entri in just a few configuration steps. You get usage statistics across the business categories active in the network, full logs for each domain connected through your system, and recognition as a member of the Entri Network. Because everything runs through the dashboard, onboarding, configuration changes, and billing are all self-service. You stay in control of your authentication method, domain detection rules, branding, and endpoint definitions, and you can update them at any time. ## Quick links > **[DNS Provider Onboarding](/network/dns-provider-onboarding)** > > The complete field-by-field reference for registering your platform > **[Authentication](/network/dns-provider-onboarding#authentication)** > > OAuth 2.0, Direct Auth Flow, and Basic Auth options > **[DNS Endpoints](/network/dns-provider-onboarding#dns-endpoints)** > > The endpoints Entri calls to read and write records > **[How Entri Writes Records](/network/dns-provider-onboarding#how-entri-writes-records)** > > Conflict detection, batch writes, and separate add and delete > **[Testing Your Integration](/network/dns-provider-onboarding#testing-your-integration)** > > Drafts, staging environments, and the review process > **[Submission Checklist](/network/dns-provider-onboarding#submission-checklist)** > > Everything required before you go live # Power Configuration Source: https://developers.entri.com/power/configuration connectDomain() config keys for Power: power, applicationUrl, secureRootDomain, and dnsRecords with applicationUrl override. ## Configure your Entri account for Power Before you can use Entri Power, you'll need to provide some basic information on the Entri dashboard and set up your DNS records accordingly. Log into the [Entri Dashboard](https://dashboard.entri.com/), navigate to the configure section, and enter your company’s desired `cname_target`. The `cname_target` is the CNAME record that your *end-users* will eventually need to add. For example: `domains.saascompany.com` After inputting the `cname_target` on the Entri dashboard, you'll need to create a CNAME record that points your `cname_target` to `power.goentri.com` on your domain's DNS. For example, if you run `saascompany.com`and your `cname_target` is `domains.saascompany.com`, then you would add this record to the DNS for `saascompany.com`: ```JSON JSON theme={"system"} { type: "CNAME", host: "domains", value: "power.goentri.com", ttl: 300, } ``` After this DNS record is added, you are ready to offer custom domains to your customers! ## Power a new domain After you've configured your account, there are two methods of adding a new custom domain: utilizing the ***Entri modal***, or making a direct API request. *Please note that you'll need an active subscription to Entri Connect to use the Entri modal method. For questions about this, contact your account manager.* ## Powering a domain via the Entri Connect Modal (recommended) > [!NOTE] > > For more information about configuring the ***Entri modal***, see: [Create the > configuration object](/connect/configuration#entri-connectdomain-config). To power a custom domain via the Entri Modal, you will need to make 2 additions to the [standard configuration object](/connect/configuration#entri-connectdomain-config) for the Entri Modal. * Add the property `power` and set it to `true`. * Add the property `applicationUrl` . The `applicationUrl` is the URL of your application that you would like to render on the customer's domain. This will likely change for every user. For example, the `applicationUrl` for a calendar booking app might look something like this: `https://calenderapp.com/meetings/user-name` ### Powering a root domain For powering a root domain, you just need to add an A record to the `dnsRecords` array, and the `value` as the `{ENTRI_SERVERS}` placeholder. Make sure to also add your target application destination as the `applicationUrl` key value. **Entri** will take care of the rest. If you are prompting users to enter a domain in the Entri modal, make sure that you use [dynamic configuration variables. ](/connect/dns-records#dynamic-configuration-variables) **Sample configuration:** ```JavaScript JavaScript theme={"system"} const config = { applicationId: "12345", // From the Entri dashboard token: mySavedToken, // The "auth_token" value generated via JWT power: true, // This enables the Entri power feature dnsRecords: [ { type: "A", host: "@", value: "{ENTRI_SERVERS}", //This will be automatically replaced for the Entri servers IPs ttl: 300, applicationUrl: "https://app.saascompany.com/page/123" } ], }; ``` > [!NOTE] > > Shopify domains only support a single A record at the root domain. Since this setup is not recommended, Entri automatically manages the logic for you. ### Powering a subdomain When powering a subdomain, you just need to add a CNAME record to the `dnsRecords` array. Be sure that the `value` is set to `{CNAME_TARGET}`. If you are prompting users to enter a domain in the Entri modal, make sure that you use [dynamic configuration variables. ](/connect/dns-records#dynamic-configuration-variables) **Sample configuration:** ```JavaScript JavaScript theme={"system"} const config = { applicationId: "12345", // From the Entri dashboard token: mySavedToken, // The "auth_token" value generated via JWT power: true, // This enables the Entri power feature dnsRecords: [ { type: "CNAME", value: "{CNAME_TARGET}", // `{CNAME_TARGET}` will automatically use the CNAME target entered in the dashboard host: "{SUBDOMAIN}", // This will use the user inputted subdomain. If hostRequired is set to true, then this will default to "www" ttl: 300, applicationUrl: "https://app.saascompany.com/page/123" } ], }; ``` > [!NOTE] > > **SSL Provisioned by Default** Entri Power will automatically provision an SSL > certificate so there is no need to also set up Entri Secure when using Power # Power Endpoints Source: https://developers.entri.com/power/endpoints REST endpoints for Entri Power. > [!NOTE] > > Power endpoints are served by the Connect API gateway, not by a separate Power host. ## Power API - Custom domains ### List powered domains Partners can retrieve all domains currently **Powered** under a given `applicationId` to audit configuration, build admin UIs, and perform maintenance. This endpoint returns a paginated list of all Power-managed domains for the authenticated application. ```txt theme={"system"} GET https://api.goentri.com/power Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` > [!WARNING] > > Listing powered domains requires a JWT issued with `product: "power"`. Mint the token as described in [Enhancing Integration Security](/connect/configuration#enhancing-integration-security). A token without a `product` claim, or a token issued for another product, is rejected with a `403` and no domains are returned. This also applies to applications that have authentication disabled. Checking a single domain with `?domain=` is not affected. #### Headers | Header | Required? | Description | | - | - | - | | Authorization | Yes | Bearer token (JWT) issued with `product: "power"`. | | applicationId | Yes | Your Application ID as set in the dashboard. | #### Query string parameters | Name | Type | Required? | Default | Description | | - | - | - | - | - | | page | integer | No | 0 | Zero-based page index (0 = first page). | | size | integer | No | 50 | Max number of items to return (range: 1–200). | | status | string | No | — | Filter by power status: `active` or `inactive`. | > **Note:** `status` is optional. If omitted, the endpoint returns **all** powered domains for the application. #### Sample response ```json theme={"system"} { "items": [ { "domain": "www.example.com", "applicationUrl": "my.applicationurl.com", "powerRootPathAccess": ["/", "/shop"], "powerStatus": "active" }, { "domain": "blog.example.com", "applicationUrl": "my.applicationurl.com", "powerRootPathAccess": [], "powerStatus": "inactive" } ], "total": 2, "page": 0, "limit": 50, "count": 2, "pages": 1, "nextPage": null, "prevPage": null } ``` #### Field definitions * **domain** (`string`): Fully qualified domain or subdomain configured via Power. * **applicationUrl** (`string`): Current upstream URL for this domain. * **powerRootPathAccess** (`string[]`): List of root paths with access granted (may be empty). * **powerStatus** (`string`): `active` or `inactive`. * **total** (`integer`): Total number of powered domains matching the filter. * **page** (`integer`): Current zero-based page index. * **limit** (`integer`): Maximum number of items requested per page. * **count** (`integer`): Number of items returned. * **pages** (`integer`): Total number of pages available. * **nextPage** (`integer | null`): Next page index, or null if not applicable. * **prevPage** (`integer | null`): Previous page index, or null if not applicable. #### Error responses | HTTP | Example Body | When | | - | - | - | | 400 | `{ "message": "Invalid 'limit' parameter" }` | Validation errors on query parameters. | | 401 | `{ "message": "Unauthorized" }` | Missing/invalid JWT or `applicationId`. | | 403 | `{ "message": "The token must be issued with product 'power' to use this endpoint. See https://developers.entri.com/connect/configuration#enhancing-integration-security" }` | The JWT has no `product` claim, or the application has authentication disabled. | | 403 | `{ "message": "JWT is not valid for this resource" }` | The JWT was issued for another product. | | 500 | `{ "message": "Internal Server Error" }` | Unexpected server-side error. | #### Rate limits This endpoint follows the same global rate limits as other Power API endpoints. #### Example cURL ```bash theme={"system"} curl -X GET "https://api.goentri.com/power?status=active&size=10&page=0 \ -H "Authorization: Bearer " \ -H "applicationId: " ``` ### Check the domain's eligibility ```BASH theme={"system"} GET https://api.goentri.com/power?domain=www.example.com&rootDomain=false Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Parameters description | Parameter | Required? | Default | Description | | - | - | - | - | | domain | Yes | N/A | The domain name to check | | rootDomain | No | false | true if checking the root domain's eligibilityfalse if checking for the subdomain | #### Successful response (200 status) ```JSON JSON theme={"system"} { // Is the domain CNAMEed to the cname_target of the application? "eligible": true | false, // Is the domain already powered? "powerStatus": "active" | "inactive", // Current cnameTarget set on the Dashboard "cnameTarget": URL | "", // Current cnameTarget value for the domain "applicationUrl": URL | "", //Paths with granted access to the root of the Application URL "powerRootPathAccess": [] | ["/path1", "/path2",..., "pathN"] } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. | Error message | Status | | - | - | | Domain provided couldn't be resolved. | 400 | *** ### Power a new domain ```BASH theme={"system"} POST https://api.goentri.com/power Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "domain": "www.example.com", "applicationUrl": "my.applicationurl.com" } ``` > [!NOTE] > > Root Path Access is configured once in your application settings in the Dashboard and applied automatically to every powered domain. See [Root Path Access](/power/root-path-access). #### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Success" } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. The body never carries anything else, and `message` is a plain-English explanation of what to fix. | Error message | Status | When | | - | - | - | | Missing request body, Invalid JSON in request body, or Missing domain in body | 400 | The body is absent, not valid JSON, or has no `domain`. | | Domain does not match with domain passed while creating the token | 400 | The JWT was created for a different domain. | | A certificate cannot be issued for this domain name. Check the domain is spelled correctly and is a public, issuable domain, then try again. | 400 | A certificate cannot be issued for this name, for example an IP address, a bare TLD, or a `.local` name. | | Unauthorized | 401 | Missing or invalid JWT or `applicationId`. | | Domain is blacklisted, Please contact support to know more about this domain. | 403 | The domain is blocked for this application. | | Conflict: Domain is already powered and active. To manage or update this domain, use the appropriate endpoint. | 409 | The domain is already powered by this application. | | Conflict: a certificate provision for this domain is already in progress. Please retry once it has finished. | 409 | Another request is provisioning the same domain right now. The lock is per domain and shared between Secure and Power, so a Secure provision can block a Power one and vice versa. Retry once it finishes. | | Domain ineligible: DNS records (A or CNAME) are not correctly pointed to the Entri target. Please update your DNS and re-verify. | 422 | The eligibility check found the domain is not pointed to Entri. | | We could not validate this domain because our certificate authority could not resolve it. Check that the domain's nameservers are responding, then try again. | 422 | The domain's nameservers did not answer during validation. | | A CAA record on this domain stops our certificate authority from issuing a certificate. Remove the CAA record, or contact support for the value to allow, then try again. | 422 | A CAA record on the domain blocks certificate issuance. Remove it, or ask support which issuer to allow. | | Our certificate authority could not reach this domain to validate it. Check that the domain points at Entri and is reachable over HTTP, then try again. | 422 | The domain could not be reached over HTTP during validation, usually because it does not point to Entri yet. | | Precondition Required: You must first verify the domain's eligibility via a GET request. See: [https://developers.entri.com/power#step-1-get-the-domain's-eligibility](https://developers.entri.com/power#step-1-get-the-domain's-eligibility) | 428 | The domain has never been checked with the eligibility endpoint on this page for this application. | | Our certificate authority is rate limiting certificate issuance for this domain. Retry after , then try again. | 429 | Certificate issuance for this domain is rate limited. The message includes the retry time when one is available. | | Internal server error | 502 | Unexpected failure on Entri's side. | | Our certificate authority could not complete this request. This is a temporary problem on their side - please try again in a few minutes. | 503 | The certificate authority is unavailable or returned a failure Entri could not classify. Retry later. | *** ### Update an already powered domain ``` PUT https://api.goentri.com/power Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "domain": "www.example.com", "applicationUrl": "my.applicationurl.com" } ``` #### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Success." } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. | Error message | Status | | - | - | | `{detailed error message when powering again the domain`} | 502 | *** ### Renew the SSL certificate Entri renews the certificates it provisions automatically before they expire. Use this endpoint when you need to trigger that renewal yourself, for example after your customer fixed their DNS records following a [`domain.power.certificate_renewal_failed`](/power/events#domain-power-certificate_renewal_failed) webhook. ```txt theme={"system"} POST https://api.goentri.com/power/renew Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "domain": "www.example.com" } ``` #### Parameters description | Parameter | Required? | Description | | - | - | - | | domain | Yes | The powered domain to renew. If the JWT was created for a specific domain, it must match this value. | #### Requirements The renewal only runs when all of the following are true. Otherwise the endpoint returns one of the errors listed below without touching the certificate. * The domain is powered by your application and its status is `active`. * The current certificate expires within the next 30 days. * The domain still points to Entri: subdomains must CNAME to the configured CNAME target, and root domains must resolve to Entri's A records with no AAAA records present. #### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Certificate renewed successfully" } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. | Error message | Status | When | | - | - | - | | Missing request body, Invalid JSON in request body, or Missing 'domain' in request body | 400 | The body is absent, not valid JSON, or has no `domain`. | | Domain does not match with domain passed while creating the token | 400 | The JWT was created for a different domain. | | Unauthorized | 401 | Missing or invalid JWT or `applicationId`. | | The requested domain was not found. Please ensure your configuration matches the environment, such as development or staging. | 404 | The domain is not powered by this application. | | Conflict: Domain is not active. Only active power domains can be renewed. | 409 | The domain's power status is `inactive`. | | Certificate renewal is only available within 30 days of expiry. | 409 | The current certificate is still valid for more than 30 days. | | Renewal requires your domain to be pointed to Entri. Please verify your DNS records are configured correctly and try again. | 422 | The DNS check failed. The message names the record that is missing or misconfigured. Entri also sends the `domain.power.certificate_renewal_failed` webhook. | | Internal Server Error | 500 | Unexpected server-side error. | | Failed to renew certificate | 502 | DNS is correct but the certificate authority request failed. Retry later. | #### Example cURL ```bash theme={"system"} curl -X POST "https://api.goentri.com/power/renew" \ -H "Authorization: Bearer " \ -H "applicationId: " \ -H "Content-Type: application/json" \ -d '{"domain": "www.example.com"}' ``` *** ### Remove a powered domain ```BASH theme={"system"} DELETE https://api.goentri.com/power Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "domain": "www.example.com" } ``` #### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Success." } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. | Error message | Status | | - | - | | Domain not valid | 502 | | detailed error message when deleting the SSL certificate of the domain | 502 | ## Appended Headers on Incoming Traffic As part of the SSL provisioning process, all incoming traffic will have specific headers appended to each request. These headers provide additional context about the original request, including information about the host and IP address. The following headers will be added automatically to every incoming request: * **X-Forwarded-Host**: This header contains the original `Host` value of the incoming request before any proxy or load balancer has modified it. It helps in identifying the initial destination for the request. * **x-entri-forwarded-host**: Similar to `X-Forwarded-Host`, this is a custom header used by Entri to track the original host at the time the request was forwarded through Entri’s system. * **X-Forwarded-IP** or **X-Forwarded-For**: These headers contain the original IP address of the client making the request. It is useful for understanding where the request originated from, even if it passed through proxies or load balancers. * **X-Entri-Auth**: The X-Entri-Auth header is a configurable authentication token that you can set in the Entri Dashboard. Once enabled, it is automatically included in every outgoing request, allowing your system to verify that the request originated from Entri. The token can be rotated at any time to align with your internal security policies. These headers ensure that downstream services can access critical metadata about the request, facilitating better logging, security, and handling of the requests in your system. # Power Events Source: https://developers.entri.com/power/events Power webhook events (domain.power.provisioned, domain.power.updated, domain.power.deprovisioned, domain.power.certificate_renewal_failed) and the power_status field. This page documents the webhook events and payload fields relevant to Entri Power. For the payload envelope and signature verification, see [Webhooks Overview](/webhooks-overview). ## Webhook event types Entri Power sends its own webhook events, in addition to the Power fields it adds to the standard flow payload described below. * [`domain.power.provisioned`](#domain-power-provisioned): A domain is live on Power. * [`domain.power.updated`](#domain-power-updated): A domain now points to a different application. * [`domain.power.deprovisioned`](#domain-power-deprovisioned): Power was removed from the domain. * [`domain.power.certificate_renewal_failed`](#domain-power-certificate_renewal_failed): A certificate could not be renewed. > [!NOTE] > > These events are only delivered if they are selected for your application in the Dashboard, under **Application → Webhooks**, in the **Webhook events** section. See [Choosing which events you receive](/webhooks-overview#choosing-which-events-you-receive). ### `domain.power.provisioned` Sent when a domain is successfully set up and goes live on Power. Use it to confirm the domain is ready and kick off any next steps on your side. It tells you which domain went live, the application URL it now points to, when it happened, whether it was set up through the API or the Entri modal, and its current status. | Field | Type | Description | | - | - | - | | `id` | string | Entri's ID for the webhook event. | | `user_id` | string | The user ID your application sent during setup, if any. | | `domain` | string | The domain that went live on Power. | | `type` | string | `"domain.power.provisioned"`. | | `application_url` | string | The application URL the domain now points to, or `"exempt"` when it does not apply. | | `redirect_to` | string | The destination the domain redirects to, or `"exempt"` when the domain is not a redirect. | | `cname_target` | string | The CNAME target used for the DNS configuration. | | `provisioned_at` | string (ISO 8601) | When the domain was provisioned. | | `provisioned_by` | \[api, modal] | How it was set up: `"api"` through the Power API, `"modal"` through the Entri modal. | | `power_status` | \[active, inactive] | The domain's Power status. `"active"` for this event. | ```json theme={"system"} { "id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "user_id": "your-provided-user-id", "domain": "shop.example.com", "type": "domain.power.provisioned", "application_url": "www.mysaasapp.com", "redirect_to": "exempt", "cname_target": "my.saascompany.com", "provisioned_at": "2026-07-14T18:22:00.123456", "provisioned_by": "api", "power_status": "active" } ``` ### `domain.power.updated` Sent when a domain is updated to point to a different application. Use it to keep your own records up to date whenever this changes. It tells you which domain changed, the new destination and the previous one, who made the change, when it happened, and the domain's current status. | Field | Type | Description | | - | - | - | | `id` | string | Entri's ID for the webhook event. | | `user_id` | string | The user ID your application sent during setup, if any. | | `domain` | string | The domain whose destination changed. | | `type` | string | `"domain.power.updated"`. | | `application_url` | string | The application URL the domain points to after the change. | | `previous_application_url` | string | The application URL it pointed to before the change. | | `cname_target` | string | The CNAME target used for the DNS configuration. | | `updated_at` | string (ISO 8601) | When the change was made. | | `updated_by` | string | How the change was made. Currently always `"api"`. | | `power_status` | \[active, inactive] | The domain's Power status. `"active"` for this event. | ```json theme={"system"} { "id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "user_id": "your-provided-user-id", "domain": "shop.example.com", "type": "domain.power.updated", "application_url": "checkout.mysaasapp.com", "previous_application_url": "www.mysaasapp.com", "cname_target": "my.saascompany.com", "updated_at": "2026-08-02T09:10:44.987654", "updated_by": "api", "power_status": "active" } ``` ### `domain.power.deprovisioned` Sent when Power is removed from a domain and Entri stops serving it. Use it to close things out on your side or let the affected user know their domain is no longer powered. It tells you which domain was removed and when it happened. | Field | Type | Description | | - | - | - | | `id` | string | Entri's ID for the webhook event. | | `user_id` | string | The user ID your application sent during setup, if any. | | `domain` | string | The domain Power was removed from. | | `type` | string | `"domain.power.deprovisioned"`. | | `application_url` | string | The application URL the domain pointed to, or `null` when it does not apply. | | `redirect_to` | string | The destination the domain redirected to, or `null` when the domain was not a redirect. | | `cname_target` | string | The CNAME target that was used for the DNS configuration. | | `deprovisioned_at` | string (ISO 8601) | When Power was removed. | | `deprovisioned_by` | string | How it was removed. Currently always `"api"`. | | `power_status` | \[active, inactive] | The domain's Power status. `"inactive"` for this event. | ```json theme={"system"} { "id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "user_id": "your-provided-user-id", "domain": "shop.example.com", "type": "domain.power.deprovisioned", "application_url": "www.mysaasapp.com", "redirect_to": null, "cname_target": "my.saascompany.com", "deprovisioned_at": "2026-08-20T11:47:31.221100", "deprovisioned_by": "api", "power_status": "inactive" } ``` ### `domain.power.certificate_renewal_failed` Sent when the security certificate for a domain running on Power can't be renewed because its settings are missing something or pointing to the wrong place. Use it to alert the domain owner early, before visitors run into security warnings. It tells you which domain is affected, the application URL it points to, when the renewal failed, what the settings should look like, and what they currently look like, so the owner knows exactly what to fix. | Field | Type | Description | | - | - | - | | `id` | string | Entri's ID for the webhook event. | | `user_id` | string | The user ID your application sent during setup, if any. | | `domain` | string | The domain whose renewal failed. | | `type` | string | `"domain.power.certificate_renewal_failed"`. | | `application_url` | string | The application URL the domain points to, or `"exempt"` when it does not apply. | | `redirect_to` | string | The destination the domain redirects to, or `"exempt"` when the domain is not a redirect. | | `cname_target` | string | The CNAME target used for the DNS configuration. | | `renewal_failed_at` | string (ISO 8601) | When the renewal failed. | | `expected_records` | array of DNSRecord objects | The records the domain needs for Power to renew the certificate. | | `records_present` | array of DNSRecord objects | The records currently found for the domain. Empty if none could be read. | > [!NOTE] > > For a domain set up on a root domain, `expected_records` contains the `A` records Power expects. For any other domain it contains a single `CNAME` record pointing at your `cname_target`. ```json theme={"system"} { "id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "user_id": "your-provided-user-id", "domain": "shop.example.com", "type": "domain.power.certificate_renewal_failed", "application_url": "www.mysaasapp.com", "redirect_to": "exempt", "cname_target": "my.saascompany.com", "renewal_failed_at": "2026-09-01T03:15:09.554321", "expected_records": [ { "host": "shop.example.com", "type": "CNAME", "value": "my.saascompany.com" } ], "records_present": [ { "host": "shop.example.com", "type": "CNAME", "value": "old-target.example.net" } ] } ``` ## Status fields * **`power_status`**: Only relevant when using Entri Power. Describes the status of the advanced features configuration. Possible values: * `"pending"`: Setup of advanced features is pending. * `"success"`: Advanced features setup was successful. * `"failed"`: Setup of advanced features failed. * `"exempt"`: Entri Power does not apply to the current flow. > [!NOTE] > > In the `domain.power.*` events listed above, `power_status` reports whether Power is currently running on the domain and uses a different set of values: `"active"` or `"inactive"`. The values above apply to the standard flow payload. ## Payload fields * **`cname_target`**: Only applicable for Entri Power and Secure setups. The CNAME target used for DNS configuration (e.g. `"my.saascompany.com"`). The base flow webhook payload's `data.records_propagated` entries may include the following Power-only fields: * **`applicationUrl`**: (optional, Entri Power only) The application URL tied to the propagated DNS record (e.g. `"www.example.com"`). * **`powerRootPathAccess`**: (optional, Entri Power only) An array of paths accessible through Entri Power. Example: ```json theme={"system"} ["path1", "path2", "pathN"] ``` # Entri Power Overview Source: https://developers.entri.com/power/overview Root-domain hosting — what Entri Power is and when to use it. Users care about a fully customizable product experience. That's where custom domains come in. Domain-connected users become fully integrated with your product, resulting in better retention, and a better customer experience for their end users. ## About Entri Power (FAQ) ### How does Entri Power work? Entri uses a reverse proxy with SSL termination. To illustrate the flow of data: 1. A client (such as a web browser) makes a request to your customer's domain. 2. That request goes through Entri's reverse proxy server and is passed along to your service. 3. Your service returns a response through the reverse proxy, which is then passed back to the client and renders your `applicationUrl` ### Why should you trust Entri as a reverse proxy? Entri Power uses Amazon Web Services with [multi-region architecture](https://aws.amazon.com/solutions/implementations/multi-region-application-architecture/) to avoid single points of failure and minimize latency. We also leverage advanced distributed denial of service (DDOS) protection. You can view Entri's uptime history on our [status page](https://status.entri.com/). ### What certificate authority does Entri use? Entri is proud to use [Let's Encrypt](https://letsencrypt.org/) SSL certificates. ### How long on average does it take for an SSL certificate to go live? On average, between 3-7 seconds. ### Can I use Entri Power with Cloudflare? Yes you can. ### How many times can I provision the same domain? You can re-power the same domain a maximum amount of 5 times during a 24 hours period. # Root Path Access Source: https://developers.entri.com/power/root-path-access Serving content at the root path of a Power-connected domain. ## Enabling Root Path Access (RPA) for static files Entri Power provides a method for granting access to the root of the Application URL for specific paths. This feature is particularly beneficial for applications that need to share static files like JS, CSS, or image files among their customers. By utilizing the RPA functionality, the URLs of these files are automatically excluded from being rewritten. ### Configuring RPA in the dashboard You configure Root Path Access directly on your application, so Entri stores it once and applies it to every domain you power. You'll find the field in the Dashboard, under Application Settings, in the **Entri Power/Secure** section. Enter one path per line in the **Root Path Access** text area and save. A few notes on behavior: * If a value is already stored, it is pre-populated when the page loads. * Clearing the field and saving removes the stored value. * Whitespace-only values are rejected with an inline error. # Provider Limitations Source: https://developers.entri.com/provider-limitations Known constraints and behaviors by DNS provider that may affect automated configuration Some DNS providers enforce restrictions through their APIs, security policies, or implementations that limit what Entri can configure automatically. Understanding these limitations helps you anticipate issues and plan accordingly. > [!NOTE] > > These restrictions originate from DNS providers themselves, not from Entri. They are enforced through provider systems and APIs. ## Common Limitation Types Before diving into specific providers, here are the categories of limitations you may encounter: | Type | Description | Impact | | - | - | - | | **MFA/Security** | Passkeys, security keys, or device-based MFA not supported | User falls back to manual setup | | **Record Restrictions** | TXT >255 chars, wildcards, or CNAME at root not supported | Specific record types fail | | **Login Methods** | Social login (Google, Apple) not supported | Credential login required | ## Provider-Specific Limitations ### Amazon Route 53 * No separate hosted zones for subdomains * Passkey/security key login not supported * MFA setup is mandatory ### ArubaIT * DNS changes take up to 30 minutes to propagate * Records cannot be updated during propagation window ### Cloudflare * **Proxy mode**: When enabled via Entri, applies to ALL records created through that flow (not individually configurable) ### CrazyDomains * Email verification may be required after extended inactivity * Premium DNS required for TXT records ### DreamHost * Advanced domain protection plans require email verification on every login * Some services auto-create DNS records that cannot be removed, even if they conflict ### Dynadot * Accounts may lock during repeated login attempts * Repeated invalid credentials can trigger temporary lockouts ### Gandi * Account verification may be required * Some domains use legacy nameservers that don't support advanced DNS automation ### GoDaddy * **TTL values**: GoDaddy uses a fixed TTL of X. If you need a custom TTL, please contact Entri support. * **Parked A records**: Tied to GoDaddy's free products. Entri removes them automatically if they conflict with your records ### GreenGeeks * Domains pointing to expired or missing hosting cannot be managed * DNS operations fail if hosting is inactive ### Hosting.com * Some domains require admin-level login access ### InMotion * Invalid password errors are only surfaced after MFA submission ### O2switch * Requires a cPanel password to be set for new hosting domains ### One.com * **MFA**: Uses a companion mobile app for two-factor authentication. This MFA method is not currently supported by Entri * Users with app-based MFA will be redirected to manual setup ### Papaki * Nameservers must be manually configured before DNS automation is possible ### Registro.br * **Domain in transition**: When enabling advanced DNS for the first time, Registro.br may take up to 5 minutes to transition the domain. During this window, DNS operations will fail with a `RegistroDomainInTransition` error. Retry after 5 minutes. ### Shopify * Passkey, social, and biometric logins not supported * TXT records longer than 255 characters not supported * Record values must be entered as FQDNs * multiple A records at @ host is not supported ### Simply * Explicit permission from the account owner is required ### Spaceship * **Domain location**: Domain must be in "Web Hosting" section, not "SellerHub". Domains listed under SellerHub cannot be configured automatically * USB security key login not supported ### NetworkSolutions.com, Bluehost.com, Hostgator.com * Password reset required after long inactivity * Migrated accounts may not be able to authenticate ### Record-Specific Limitations #### TXT Records >255 Characters Not supported by: * Shopify * WordPress.com * Hover **Workaround**: Split the record if your application supports it, or use manual setup. #### Wildcard Records Not supported by: * Strato * Wix * OVH * LocaWeb * OpenSRS #### CNAME at Root (@) Most providers don't support CNAME records at the root domain due to DNS specification constraints. Some providers work around this using CNAME flattening, ALIAS, or ANAME records, but support varies and may have restrictions. See [DNS Concepts](/dns-concepts#cname-at-root-the-technical-limitation) for a detailed explanation. Use `checkDomain` to detect support programmatically: ```javascript theme={"system"} const result = await entri.checkDomain("example.com", config); if (result.cnameFlattening) { // Provider supports CNAME at root } ``` **Workarounds for providers without support:** 1. Use A records pointing to your server's IP 2. Use [Entri Secure](/secure/overview) with `secureRootDomain: true` 3. Redirect root to www subdomain (`wwwRedirect: true`) ## Security-Related Limitations ### Login Method Compatibility Some providers don't support all authentication methods. When a user attempts to log in with an unsupported method (such as passkeys, social login, or hardware security keys), Entri automatically redirects them to manual setup with clear instructions. > [!NOTE] > > If your users report being unexpectedly redirected to manual setup, verify they're using standard credential-based login with app-based or SMS MFA. ### Supported MFA Methods Multi-factor authentication support varies by provider: **Amazon Route 53** * ✅ Authenticator apps (Google Authenticator, Authy, Microsoft Authenticator) * ✅ Email verification codes * ❌ Other MFA methods trigger manual setup **All Other Providers** * ✅ SMS text messages * ✅ Authenticator apps * ✅ Email verification codes > [!NOTE] > > If a user has hardware security keys (YubiKey), passkeys, or device-based MFA enabled, they will be redirected to manual setup. Consider documenting this in your user-facing help content. ### Domain Protection Features The following can block automated DNS changes: * **NameSilo**: Domain Defender * **Reg123**: Domain Protection setting Users with these features enabled will be redirected to manual setup. ## Troubleshooting If a user encounters issues during automated setup: 1. Run `entri.checkDomain(domain, config)` to verify provider detection and capabilities 2. Check [provider health status](/webhooks-overview#provider-health) 3. Verify the user isn't using an unsupported login method 4. Check if domain protection features are enabled 5. For TXT records, verify length is under 255 characters 6. If all else fails, use `forceManualSetup: true` and provide clear instructions ## Need Help? If you encounter issues not listed here, contact Entri support with: * Domain name * Provider name * Error message or screenshot * DNS records you're trying to configure # Responsible Disclosure Policy Source: https://developers.entri.com/responsible-disclosure-policy How to report a security vulnerability to Entri, plus our disclosure guidelines and exclusions. Data security is a top priority for Entri, and Entri believes that working with skilled security researchers can identify weaknesses in any technology. If you believe you’ve found a security vulnerability in Entri’s service, please notify us; we will work with you to resolve the issue promptly. ## Disclosure Policy If you believe you’ve discovered a potential vulnerability, please let us know by emailing us at security (at) goentri.com We will acknowledge your email promptly. Provide us with a reasonable amount of time to resolve the issue before disclosing it to the public or a third party. Make a good faith effort to avoid violating privacy, destroying data, or interrupting or degrading the Entri service. Please only interact with accounts you own or for which you have explicit permission from the account holder. ## Exclusions While researching, we’d like you to refrain from: * Distributed Denial of Service (DDoS) * Spamming * Social engineering or phishing of Entri employees or contractors * Any attacks against Entri’s physical property or data centers Thank you for helping to keep Entri and our users safe! ## Changes We may revise these guidelines from time to time. The most current version of the guidelines will be available at [https://developers.entri.com/responsible-disclosure-policy](/responsible-disclosure-policy). Entri is always open to feedback, questions, and suggestions. If you would like to talk to us, please feel free to email us at [security@goentri.com](mailto:security@goentri.com). # SCIM User Provisioning Source: https://developers.entri.com/scim-provisioning Provision, update, and remove Entri dashboard users from your identity provider with SCIM 2.0. ## Overview Entri supports SCIM 2.0 so your identity provider can manage who has access to the Entri dashboard. Once connected, assigning a user to the Entri application in Okta, Microsoft Entra ID, or any other SCIM 2.0 client creates their dashboard account, and unassigning them removes it. SCIM is available on plans that include enterprise SSO. ## What SCIM does | Action in your identity provider | Result in Entri | | - | - | | Assign a user to the Entri application | A dashboard user is created with the **Analyst** role. No invitation email is sent. The user signs in through SSO. | | Change the user's email address | The dashboard user's email is updated. | | Unassign or deactivate the user | The dashboard user is deleted. Reassigning the user creates a new account with the Analyst role. | | Delete the user | The dashboard user is deleted. | > [!WARNING] > > Roles and permissions are not synced through SCIM. Every provisioned user starts as an Analyst. An Entri admin changes roles in the dashboard after the user is created. Role, group, and custom attributes sent by your identity provider are ignored. > [!NOTE] > > Groups are not supported. Only the User resource is available, so group push has no effect. Deactivating a user removes the account rather than suspending it, and there is no inactive state. ## Setup **1. Copy your SCIM credentials from the Entri dashboard** Open the SCIM settings in the Entri dashboard and copy the **SCIM base URL** and the **bearer token**. The token is shown in full, so store it somewhere safe. **2. Create a SCIM integration in your identity provider** Add a SCIM 2.0 provisioning integration for Entri and paste the base URL and token. Authentication is an HTTP bearer token sent in the `Authorization` header. **3. Map attributes** Map the attributes listed below and leave all others unmapped. Enable provisioning for create, update, and deactivate. **4. Assign users** Assign users or groups to the Entri application. Each user appears in the Entri dashboard once your identity provider runs its next sync. > [!WARNING] > > The bearer token expires **180 days** after it is generated. Generate a new token in the Entri dashboard before it expires and update your identity provider. Requests with an expired token fail with `403`. ## Attribute mapping Entri reads three attributes from each user. | SCIM attribute | Required | Entri field | | - | - | - | | `userName` | Yes | The user's email address, used to sign in. | | `emails[type eq "work"].value` | No | The same email address as `userName`. | | `active` | No | Setting this to `false` deletes the user. | ## Endpoints The base URL is `https://api.goentri.com/integration/scim/v2`. | Method | Path | Notes | | - | - | - | | `GET` | `/Users` | Supports `filter=userName eq "email"`, `startIndex`, and `count`. Maximum `count` is 100. | | `POST` | `/Users` | Returns `400` if the email already belongs to a user in your organization. | | `GET` | `/Users/{id}` | Returns a single user. | | `PUT` | `/Users/{id}` | Updates `userName` and `active`. | | `PATCH` | `/Users/{id}` | Supports `replace` and `add` operations on `userName`, `emails`, and `active`. | | `DELETE` | `/Users/{id}` | Returns `204`. | | `GET` | `/ServiceProviderConfig` | Describes supported features. Bulk operations, sorting, ETags, and password changes are not supported. | | `GET` | `/ResourceTypes` | Lists the User resource type. | | `GET` | `/Schemas` | Returns the User schema. | ## Troubleshooting | Symptom | Cause | | - | - | | Every request returns `403` | The token has expired or was regenerated. Copy the current token from the dashboard into your identity provider. | | Assignment fails with `User already exists` | The email already belongs to a dashboard user in your organization. Remove the existing user in the dashboard, or unassign and reassign the user in your identity provider. | | A user was created with the wrong role | Expected. Roles are set in the dashboard, not by SCIM. | | A deactivated user is missing from the dashboard | Expected. Deactivation deletes the account. | # Secure Configuration Source: https://developers.entri.com/secure/configuration connectDomain() config keys for Secure: ssl on dnsRecords, secureRootDomain, applicationUrl. ## Configure your Entri account Before you can provision SSL certificates on Entri, you'll need to provide some basic information. Log into the [Entri Dashboard](https://dashboard.entri.com/), navigate to the SSL section, and enter the following information: * The `applicationUrl`, which is the URL of the application that responds to requests coming from your clients' URLs. This is also commonly referred to as an origin server. * Your company’s `cname_target`. This is the CNAME record that your customers need. It needs to be pointed to `ssl.goentri.com` and will be the target domain for your clients’ requests, providing a layer of security and encryption. For example, if you run `saascompany.com`. You would first create a CNAME record: ```json json theme={"system"} { "type": "CNAME", "host": "domains", "value": "ssl.goentri.com", "ttl": 300, } ``` You're now ready to provision SSL certificates for your customers. ## Provision a certificate After you've configured your account for SSL, there are two methods of provisioning an SSL certificate for your customer's domain: utilizing the ***Entri modal***, or making a direct API request. ### Provisioning an SSL certificate via the Entri Modal (recommended) Provisioning a certificate for a subdomain is effortless with the ***Entri modal***. Add an extra property, `ssl: true`, to the CNAME record that will be set by Entri (as shown in the configuration object below) and set `value` to be `{CNAME_TARGET}`. `{CNAME_TARGET}` will automatically use the **CNAME target** entered in the dashboard in step 1. ```JSON JSON theme={"system"} { "type": "CNAME", "host": "www", "value": "{CNAME_TARGET}", // This will match the CNAME target defined in the Entri dashboard in step 1 "ttl": 300, "ssl": true, } ``` We suggest this method because it guarantees that your user has properly added the required `cname_target` record. Without this CNAME record added to your customer's DNS, Entri cannot provision an SSL certificate. Additionally, if the user has a conflicting CAA record, Entri will automatically fix it during the DNS setup process. > [!NOTE] > > For more information about configuring the ***Entri modal***, see: [Create the > configuration object](/connect/configuration#entri-connectdomain-config). ### SSL certificates for the root domain via the Entri Modal You can also create an SSL certificate for the root domain using Entri. It will require you to add an extra dnsRecord to the configuration, and Entri will do all the rest for you. This feature will create 2 new A records with Entri's IPs on the root domain's dns configuration and will use Entri as proxy to encrypt and forward the traffic to your application. ```JSON JSON theme={"system"} { type: "A", host: "@", value: "{ENTRI_SERVERS}", ttl: 300, ssl: true, applicationUrl: "my.applicationurl.com", // [Optional] overrides the pre-configured applicationUrl redirectTo: "some.domain.com" //[Optional] Allows you to create a custom redirect policy from the secured domain to any other domain or subdomain. } ``` You should only use the `applicationUrl` key, whenever you need to override the applicationUrl configured on your Customer Dashboard. ## Get notified when the SSL certificate is provisioned You can use [Entri's Webhook functionality](/webhooks-overview) to listen for when an SSL certificate has been provisioned on a domain. Check for `"secure_status": "success"` in the webhook payload. ## Appended Headers on Incoming Traffic As part of the SSL provisioning process, all incoming traffic will have specific headers appended to each request. These headers provide additional context about the original request, including information about the host and IP address. The following headers will be added automatically to every incoming request: * **X-Forwarded-Host**: This header contains the original `Host` value of the incoming request before any proxy or load balancer has modified it. It helps in identifying the initial destination for the request. * **x-entri-forwarded-host**: Similar to `X-Forwarded-Host`, this is a custom header used by Entri to track the original host at the time the request was forwarded through Entri’s system. * **X-Forwarded-IP** or **X-Forwarded-For**: These headers contain the original IP address of the client making the request. It is useful for understanding where the request originated from, even if it passed through proxies or load balancers. * **X-Entri-Auth**: The X-Entri-Auth header is a configurable authentication token that you can set in the Entri Dashboard. Once enabled, it is automatically included in every outgoing request, allowing your system to verify that the request originated from Entri. The token can be rotated at any time to align with your internal security policies. These headers ensure that downstream services can access critical metadata about the request, facilitating better logging, security, and handling of the requests in your system. ### Secure root domains This feature allows you to create a valid SSL certificate for the root domain, in a way that it can be used either as a redirect rule to the `www` subdomain or as a way to show the content directly. This feature, in all cases, will create 2 new `A` records with Entri's IPs to the root domain's dns configuration, and will use Entri as proxy to encrypt and forward the traffic to your application. IMPORTANT: This feature requires to have [Entri Secure](/secure/overview) or [Entri Power](/power/overview) enabled on your account. #### Basic usage (wwwRedirect only) This configuration may be used for securing the root domain (e.g. `https://mydomain.com`) and redirect it to `www` (eg. `https://www.mydomain.com`) ```JSON JSON theme={"system"} { applicationId: "12345", token: mySavedToken, secureRootDomain: true, wwwRedirect:true, dnsRecords: [...] } ``` #### Advanced usage (display content) This configuration may be used for securing the root domain (e.g. `https://mydomain.com`) and show the content directly on the root domain level, without redirections. ```JSON JSON theme={"system"} { applicationId: "12345", token: mySavedToken, secureRootDomain: true, wwwRedirect:true, dnsRecords: [ { type: "A", host: "@", value: "{ENTRI_SERVERS}", ttl: 300, ssl: true, applicationUrl: "my.applicationurl.com" // [Optional] overrides the pre-configured applicationUrl }, ... //Other records ] } ``` # Secure Endpoints Source: https://developers.entri.com/secure/endpoints REST endpoints for Entri Secure. > [!NOTE] > > Secure endpoints are served by the Connect API gateway, not by a separate Secure host. ## Secure API - SSL certificates ### List secured domains Partners can retrieve all domains currently **Secured** under a given `applicationId` to audit configuration, build admin UIs, and perform maintenance. This endpoint returns a paginated list of all Secure-managed domains for the authenticated application. ```txt theme={"system"} GET https://api.goentri.com/ssl Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` > [!WARNING] > > Listing secured domains requires a JWT issued with `product: "secure"`. Mint the token as described in [Enhancing Integration Security](/connect/configuration#enhancing-integration-security). A token without a `product` claim, or a token issued for another product, is rejected with a `403` and no domains are returned. This also applies to applications that have authentication disabled. Checking a single domain with `?domain=` is not affected. #### Headers | Header | Required? | Description | | - | - | - | | Authorization | Yes | Bearer token (JWT) issued with `product: "secure"`. | | applicationId | Yes | Your Application ID as set in the dashboard. | #### Query string parameters | Name | Type | Required? | Default | Description | | - | - | - | - | - | | page | integer | No | 0 | Zero-based page index (0 = first page). | | size | integer | No | 50 | Max number of items to return (range: 1–200). | | status | string | No | — | Filter by secure status: `active` or `inactive`. | > **Note:** `status` is optional. If omitted, the endpoint returns **all** secured domains for the application. #### Sample response ```json theme={"system"} { "items": [ { "domain": "www.example.com", "applicationUrl": "my.applicationurl.com", "secureStatus": "active" }, { "domain": "blog.example.com", "applicationUrl": "my.applicationurl.com", "secureStatus": "inactive" } ], "total": 2, "page": 0, "limit": 50, "count": 2, "pages": 1, "nextPage": null, "prevPage": null } ``` #### Field definitions * **domain** (`string`): Fully qualified domain or subdomain configured via Secure. * **applicationUrl** (`string`): Current upstream URL for this domain. * **secureStatus** (`string`): `active` or `inactive`. * **total** (`integer`): Total number of secured domains matching the filter. * **page** (`integer`): Current zero-based page index. * **limit** (`integer`): Maximum number of items requested per page. * **count** (`integer`): Number of items returned. * **pages** (`integer`): Total number of pages available. * **nextPage** (`integer | null`): Next page index, or null if not applicable. * **prevPage** (`integer | null`): Previous page index, or null if not applicable. #### Error responses | HTTP | Example Body | When | | - | - | - | | 400 | `{ "message": "Invalid 'limit' parameter" }` | Validation errors on query parameters. | | 401 | `{ "message": "Unauthorized" }` | Missing/invalid JWT or `applicationId`. | | 403 | `{ "message": "The token must be issued with product 'secure' to use this endpoint. See https://developers.entri.com/connect/configuration#enhancing-integration-security" }` | The JWT has no `product` claim, or the application has authentication disabled. | | 403 | `{ "message": "JWT is not valid for this resource" }` | The JWT was issued for another product. | | 500 | `{ "message": "Internal Server Error" }` | Unexpected server-side error. | #### Rate limits This endpoint follows the same global rate limits as other Secure API endpoints. #### Example cURL ```bash theme={"system"} curl -X GET "https://api.goentri.com/ssl?status=active&size=10&page=0 \ -H "Authorization: Bearer " \ -H "applicationId: " ``` ### Check the domain's eligibility ```bash theme={"system"} GET https://api.goentri.com/ssl?domain=www.example.com&rootDomain=false Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Parameters description | Parameter | Required? | Default | Description | | - | - | - | - | | domain | Yes | N/A | The domain name to check | | rootDomain | No | false | true if checking the root domain's eligibilityfalse if checking for the subdomain | #### Successful response (200 status) ```JSON JSON theme={"system"} { // Is the domain CNAMEed to the cname_target of the application? "eligible": true | false, // Is SSL provisioned? "sslStatus": "active" | "inactive", // Current cnameTarget set on the Dashboard "cnameTarget": URL | "", // Current cnameTarget value for the domain "applicationUrl": URL | "" } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. | Error message | Status | | - | - | | Domain provided couldn't be resolved. | 400 | *** ### Provision an SSL certificate ``` POST https://api.goentri.com/ssl Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "domain": "www.example.com", "applicationUrl": "my.applicationurl.com", /*Optional*/ "redirectTo": "shops.example.com" /*Optional*/ } ``` #### Parameters description | Parameter | Required? | Default | Description | | - | - | - | - | | domain | Yes | N/A | The domain name to check | | applicationUrl | No | Configured on Customer's Dashboard. | Overrides the pre-configured value set on the Dashboard. | | redirectTo | No | N/A | Allows you to create a custom redirect policy from the secured domain to any other domain or subdomain. | #### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Success" } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. The body never carries anything else, and `message` is a plain-English explanation of what to fix. | Error message | Status | When | | - | - | - | | Missing request body, Invalid JSON in request body, or Missing domain in body | 400 | The body is absent, not valid JSON, or has no `domain`. | | Domain does not match with domain passed while creating the token | 400 | The JWT was created for a different domain. | | A certificate cannot be issued for this domain name. Check the domain is spelled correctly and is a public, issuable domain, then try again. | 400 | A certificate cannot be issued for this name, for example an IP address, a bare TLD, or a `.local` name. | | Unauthorized | 401 | Missing or invalid JWT or `applicationId`. | | Domain is blacklisted, Please contact support to know more about this domain. | 403 | The domain is blocked for this application. | | Conflict: Domain is already secured and active. To manage or update this domain, use the appropriate endpoint. | 409 | The domain is already secured by this application. | | Conflict: a certificate provision for this domain is already in progress. Please retry once it has finished. | 409 | Another request is provisioning the same domain right now. The lock is per domain and shared between Secure and Power, so a Secure provision can block a Power one and vice versa. Retry once it finishes. | | Domain ineligible: DNS records (A or CNAME) are not correctly pointed to the Entri target. Please update your DNS and re-verify. | 422 | The eligibility check found the domain is not pointed to Entri. | | We could not validate this domain because our certificate authority could not resolve it. Check that the domain's nameservers are responding, then try again. | 422 | The domain's nameservers did not answer during validation. | | A CAA record on this domain stops our certificate authority from issuing a certificate. Remove the CAA record, or contact support for the value to allow, then try again. | 422 | A CAA record on the domain blocks certificate issuance. Remove it, or ask support which issuer to allow. | | Our certificate authority could not reach this domain to validate it. Check that the domain points at Entri and is reachable over HTTP, then try again. | 422 | The domain could not be reached over HTTP during validation, usually because it does not point to Entri yet. | | Precondition Required: You must first verify the domain's eligibility via a GET request. See: [https://developers.entri.com/ssl-provisioning#1-checking-the-domain-eligibility](https://developers.entri.com/ssl-provisioning#1-checking-the-domain-eligibility) | 428 | The domain has never been checked with the eligibility endpoint on this page for this application. | | Our certificate authority is rate limiting certificate issuance for this domain. Retry after , then try again. | 429 | Certificate issuance for this domain is rate limited. The message includes the retry time when one is available. | | Internal server error | 502 | Unexpected failure on Entri's side. | | Our certificate authority could not complete this request. This is a temporary problem on their side - please try again in a few minutes. | 503 | The certificate authority is unavailable or returned a failure Entri could not classify. Retry later. | *** ### Renew the SSL certificate Entri renews the certificates it provisions automatically before they expire. Use this endpoint when you need to trigger that renewal yourself, for example after your customer fixed their DNS records following a [`domain.secure.certificate_renewal_failed`](/secure/events#domain-secure-certificate_renewal_failed) webhook. ```txt theme={"system"} POST https://api.goentri.com/ssl/renew Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` > [!NOTE] > > `PUT https://api.goentri.com/ssl` with the same body is still accepted and runs the same renewal. New integrations should use `POST /ssl/renew`. #### Request body ```JSON JSON theme={"system"} { "domain": "www.example.com" } ``` #### Parameters description | Parameter | Required? | Description | | - | - | - | | domain | Yes | The secured domain to renew. If the JWT was created for a specific domain, it must match this value. | #### Requirements The renewal only runs when all of the following are true. Otherwise the endpoint returns one of the errors listed below without touching the certificate. * The domain is secured by your application and its status is `active`. * The current certificate expires within the next 30 days. * The domain still points to Entri: subdomains must CNAME to the configured CNAME target, and root domains must resolve to Entri's A records with no AAAA records present. #### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Certificate renewed successfully" } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. | Error message | Status | When | | - | - | - | | Missing request body, Invalid JSON in request body, or Missing 'domain' in request body | 400 | The body is absent, not valid JSON, or has no `domain`. | | Domain does not match with domain passed while creating the token | 400 | The JWT was created for a different domain. | | Unauthorized | 401 | Missing or invalid JWT or `applicationId`. | | The requested domain was not found. Please ensure your configuration matches the environment, such as development or staging. | 404 | The domain is not secured by this application. | | Conflict: Domain is not active. Only active secure domains can be renewed. | 409 | The domain's secure status is `inactive`. | | Certificate renewal is only available within 30 days of expiry. | 409 | The current certificate is still valid for more than 30 days. | | Renewal requires your domain to be pointed to Entri. Please verify your DNS records are configured correctly and try again. | 422 | The DNS check failed. The message names the record that is missing or misconfigured. Entri also sends the `domain.secure.certificate_renewal_failed` webhook. | | Internal Server Error | 500 | Unexpected server-side error. | | Failed to renew certificate | 502 | DNS is correct but the certificate authority request failed. Retry later. | #### Example cURL ```bash theme={"system"} curl -X POST "https://api.goentri.com/ssl/renew" \ -H "Authorization: Bearer " \ -H "applicationId: " \ -H "Content-Type: application/json" \ -d '{"domain": "www.example.com"}' ``` *** ### Deprovision an SSL certificate ```BASH theme={"system"} DELETE https://api.goentri.com/ssl Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "domain": "www.example.com" } ``` #### Successful response (200 status) ```JSON JSON theme={"system"} { "message": "Success." } ``` #### Possible error responses Errors are returned as a `{message: 'string'}` object. | Error message | Status | | - | - | | Domain not valid | 502 | | `{detailed error message when deleting the SSL certificate of the domain}` | 502 | # Secure Events Source: https://developers.entri.com/secure/events Secure webhook events (domain.secure.provisioned, domain.secure.deprovisioned, domain.secure.certificate_renewal_failed) and the secure_status field. This page documents the webhook events and payload fields relevant to Entri Secure. For the payload envelope and signature verification, see [Webhooks Overview](/webhooks-overview). ## Webhook event types Entri Secure sends its own webhook events, in addition to the Secure fields it adds to the standard flow payload described below. * [`domain.secure.provisioned`](#domain-secure-provisioned): A certificate was issued for the domain. * [`domain.secure.deprovisioned`](#domain-secure-deprovisioned): Secure was removed from the domain. * [`domain.secure.certificate_renewal_failed`](#domain-secure-certificate_renewal_failed): A certificate could not be renewed. > [!NOTE] > > These events are only delivered if they are selected for your application in the Dashboard, under **Application → Webhooks**, in the **Webhook events** section. See [Choosing which events you receive](/webhooks-overview#choosing-which-events-you-receive). ### `domain.secure.provisioned` Sent when a security certificate is successfully issued for a domain and it's ready to serve visitors safely. Use it to confirm the domain is protected and let your user know everything is in place. It tells you which domain was secured and when it happened. | Field | Type | Description | | - | - | - | | `id` | string | Entri's ID for the webhook event. | | `user_id` | string | The user ID your application sent during setup, if any. | | `domain` | string | The domain that was secured. | | `type` | string | `"domain.secure.provisioned"`. | | `application_url` | string | The application URL the domain points to, or `"exempt"` when it does not apply. | | `redirect_to` | string | The destination the domain redirects to, or `"exempt"` when the domain is not a redirect. | | `cname_target` | string | The CNAME target used for the DNS configuration. | | `provisioned_at` | string (ISO 8601) | When the certificate was issued. | | `provisioned_by` | \[api, modal] | How it was set up: `"api"` through the Secure API, `"modal"` through the Entri modal. | | `secure_status` | \[active, inactive] | The domain's Secure status. `"active"` for this event. | ```json theme={"system"} { "id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "user_id": "your-provided-user-id", "domain": "shop.example.com", "type": "domain.secure.provisioned", "application_url": "www.mysaasapp.com", "redirect_to": "exempt", "cname_target": "my.saascompany.com", "provisioned_at": "2026-07-14T18:22:00.123456", "provisioned_by": "api", "secure_status": "active" } ``` ### `domain.secure.deprovisioned` Sent when Secure is removed from a domain and Entri stops managing its certificate. Use it to close things out on your side or let the affected user know their domain is no longer covered. It tells you which domain was removed and when it happened. | Field | Type | Description | | - | - | - | | `id` | string | Entri's ID for the webhook event. | | `user_id` | string | The user ID your application sent during setup, if any. | | `domain` | string | The domain Secure was removed from. | | `type` | string | `"domain.secure.deprovisioned"`. | | `application_url` | string | The application URL the domain pointed to, or `"exempt"` when it does not apply. | | `redirect_to` | string | The destination the domain redirected to, or `"exempt"` when the domain was not a redirect. | | `cname_target` | string | The CNAME target that was used for the DNS configuration. | | `deprovisioned_at` | string (ISO 8601) | When Secure was removed. | | `deprovisioned_by` | string | How it was removed. Currently always `"api"`. | | `secure_status` | \[active, inactive] | The domain's Secure status. `"inactive"` for this event. | ```json theme={"system"} { "id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "user_id": "your-provided-user-id", "domain": "shop.example.com", "type": "domain.secure.deprovisioned", "application_url": "www.mysaasapp.com", "redirect_to": "exempt", "cname_target": "my.saascompany.com", "deprovisioned_at": "2026-08-20T11:47:31.221100", "deprovisioned_by": "api", "secure_status": "inactive" } ``` ### `domain.secure.certificate_renewal_failed` Sent when a certificate managed by Secure can't be renewed because the domain's settings are missing something or pointing to the wrong place. Use it to alert the domain owner early, before their certificate lapses and visitors run into security warnings. It tells you which domain is affected, when the renewal failed, what the settings should look like, and what they currently look like, so the owner knows exactly what to fix. | Field | Type | Description | | - | - | - | | `id` | string | Entri's ID for the webhook event. | | `user_id` | string | The user ID your application sent during setup, if any. | | `domain` | string | The domain whose renewal failed. | | `type` | string | `"domain.secure.certificate_renewal_failed"`. | | `application_url` | string | The application URL the domain points to, or `"exempt"` when it does not apply. | | `redirect_to` | string | The destination the domain redirects to, or `"exempt"` when the domain is not a redirect. | | `cname_target` | string | The CNAME target used for the DNS configuration. | | `renewal_failed_at` | string (ISO 8601) | When the renewal failed. | | `expected_records` | array of DNSRecord objects | The records the domain needs for Secure to renew the certificate. | | `records_present` | array of DNSRecord objects | The records currently found for the domain. Empty if none could be read. | > [!NOTE] > > For a domain set up on a root domain, `expected_records` contains the `A` records Secure expects. For any other domain it contains a single `CNAME` record pointing at your `cname_target`. ```json theme={"system"} { "id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "user_id": "your-provided-user-id", "domain": "shop.example.com", "type": "domain.secure.certificate_renewal_failed", "application_url": "www.mysaasapp.com", "redirect_to": "exempt", "cname_target": "my.saascompany.com", "renewal_failed_at": "2026-09-01T03:15:09.554321", "expected_records": [ { "host": "shop.example.com", "type": "CNAME", "value": "my.saascompany.com" } ], "records_present": [ { "host": "shop.example.com", "type": "CNAME", "value": "old-target.example.net" } ] } ``` ## Status fields * **`secure_status`**: Only relevant when using Entri Secure. Describes the status of SSL security configuration. Possible values: * `"pending"`: SSL configuration is pending. * `"success"`: SSL setup was successful. * `"failed"`: SSL setup failed. * `"exempt"`: Entri Secure does not apply to the current flow. > [!NOTE] > > In the `domain.secure.*` events listed above, `secure_status` reports whether Secure is currently running on the domain and uses a different set of values: `"active"` or `"inactive"`. The values above apply to the standard flow payload. ## Payload fields * **`cname_target`**: Only applicable for Entri Power and Secure setups. The CNAME target used for DNS configuration (e.g. `"my.saascompany.com"`). # Entri Secure Overview Source: https://developers.entri.com/secure/overview Automated SSL provisioning — what Entri Secure is and when to use it. Entri has the ability to automatically provision SSL certificates. Your happy customers will be able to secure custom encrypted domains for your application instantly with no extra work required by your engineering team. ## About Entri Secure SSL certificates (FAQ) ### How does Entri Secure's SSL configuration work? Entri uses a reverse proxy with SSL termination. To illustrate the flow of data: 1. A client (such as a web browser) makes a request to your customer's domain. 2. That request goes through Entri's reverse proxy server and is passed along to your service. 3. Your service returns a response through the reverse proxy, which is then passed back to the client. ### Why should you trust Entri Secure as a reverse proxy? Entri Secure uses Amazon Web Services with [multi-region architecture](https://aws.amazon.com/solutions/implementations/multi-region-application-architecture/) to avoid single points of failure and minimize latency. We also leverage advanced distributed denial of service (DDOS) protection. You can view Entri's uptime history on our [status page](https://status.entri.com/). ### What certificate authority does Entri Secure use? Entri is proud to use [Let's Encrypt](https://letsencrypt.org/) SSL certificates. ### How long on average does it take for the certificate to go live? On average, between 3-7 seconds. ### Can I use Entri Secure with Cloudflare? Yes you can. ### How many times can I provision the same domain? You can re-provision for the same domain a maximum amount of 5 times during a 24 hours period. # Sell Events Source: https://developers.entri.com/sell/events Entri Sell webhook events (domain.purchased, domain.registered, domain.registration_timeout, domain.purchase.dns_setup.failed, purchase.error, purchase.user_aborted, purchase.confirmation.expired) and browser callback events (onSuccess, onEntriClose). This page documents the webhook events and payload fields relevant to Entri Sell. For the payload envelope and signature verification, see [Webhooks Overview](/webhooks-overview). ## Webhook event types * `"domain.purchased"`: Indicates that the domain *order* creation has been completed. * `"domain.registered"`: The registrar has registered a purchased domain. Sent once per domain, whether or not `disableConnect` is set. See [Registration events](#registration-events). * `"domain.registration_timeout"`: Entri could not confirm the registration of a purchased domain within 48 hours of the purchase. Sent once per domain. See [Registration events](#registration-events). * `"domain.purchase.dns_setup.failed"`: The registrar rejected the DNS records Entri tried to set up for a purchased domain. Sent once per domain. See [DNS setup failure](#dns-setup-failure). * `"purchase.error"`: Indicates an error during the domain purchase process. * `"purchase.user_aborted"`: Only applicable for **IONOS**. The user closed the IONOS checkout. This can happen after the purchase already completed, so if you also received `domain.purchased` for the same domain, the domain was purchased. Carries the same payload as `purchase.error`. * `"purchase.confirmation.expired"`: The purchase confirmation has expired (abandoned flow). ## Registration events Placing an order is not the same as owning a working domain. After the order goes through, the registrar still has to register the domain, and it can hold or reject an order, for example after a fraud review or when the account is blocked. `domain.purchased` tells you the order exists. `domain.registered` and `domain.registration_timeout` tell you how the registration ended, so you can let your user know before they find out that the domain does not work. > [!NOTE] > > Registration events are currently sent for GoDaddy and IONOS purchases. They are not sent for Squarespace purchases yet. ### Event sequence For each purchase, the events arrive in this order: 1. `domain.purchased`: once per order. `purchased_domains` lists every domain in the order. 2. `domain.registered`: once per purchased domain, as soon as Entri confirms that the domain is registered and resolving in DNS. This is usually within minutes, and can take longer while the registrar reviews the order. 3. `domain.added`: once per purchased domain, after Entri applies the DNS records from your configuration. See [Connect events](/connect/events#webhook-event-types). `domain.registered` does not wait for the DNS records to be applied, so it normally arrives before `domain.added`. It is sent with `disableConnect` set to `true` or `false`. With `disableConnect: true` Entri configures no records for you, so use `domain.registered` as the signal that the domain is ready for your own DNS setup. `domain.added` works as before and should not be read as a registration confirmation. ### Registration timeout Entri checks a purchased domain's registration for 48 hours after the purchase. The window is fixed and cannot be configured. If the registration still cannot be confirmed by then, Entri sends `domain.registration_timeout` and stops checking the domain. No `domain.registered` or `domain.added` follows for that domain, and a domain gets either `domain.registered` or `domain.registration_timeout`, never both. A timeout usually means the registrar did not complete the order. Let your user know that the domain is not active yet, and contact Entri support with the `id` of the `domain.purchased` webhook so we can check with the registrar. ### Receiving registration events Both events are selected per application, like every other event (see [Choosing which events you receive](/webhooks-overview#choosing-which-events-you-receive)). If you already chose your Sell events, turn on `domain.registered` and `domain.registration_timeout` under **Application → Webhooks** to start receiving them. ### Sample payload ```json theme={"system"} { "id": "0b8a6b8e-2a4f-5d7e-9c3a-6f1e2d4c5b7a", "type": "domain.registered", "domain": "example.com", "subdomain": "www", "user_id": "your-provided-user-id", "provider": "ionos", "setup_type": "automatic", "purchased_domains": ["example.com"], "propagation_status": "exempt", "dkim_status": "exempt", "secure_status": "exempt", "power_status": "exempt", "dmarc_updated": "exempt", "redirection_status": "exempt", "data": { "records_propagated": [], "records_non_propagated": [] } } ``` `domain.registration_timeout` has the same shape with `"type": "domain.registration_timeout"`. In both events, `domain` and `purchased_domains` name the single domain the event is about, even when the order contained several domains. The `id` is unique to the domain and the event type, so a redelivered event keeps its `id`. The status fields are always `exempt` because these events are not about DNS records. ## DNS setup failure After a purchased domain is registered, Entri applies the DNS records from your configuration. If the registrar rejects those records, Entri sends `domain.purchase.dns_setup.failed` instead of `domain.added`. This happens when the records do not fit what the registrar accepts, for example a `CNAME` record on the root domain (`@`). Retrying the same records does not help. The domain itself is registered; only its DNS setup failed. Check the records in your configuration, and contact Entri support with the `id` of the `domain.purchased` webhook if you need help. `domain.purchase.dns_setup.failed` is sent once per purchased domain, for GoDaddy and IONOS purchases. Turn it on under **Application → Webhooks** to receive it. It has the same shape as the [registration events sample payload](#sample-payload), with `"type": "domain.purchase.dns_setup.failed"`. ## Payload fields * **`purchased_domains`**: An array of domains that were purchased during the transaction. This field is only relevant for Entri Sell. Example: ```json theme={"system"} ["domain1.com", "domain2.com", "domainN.com"] ``` * **`free_domain`**: Indicates whether the domain was obtained through a free domain flow. Possible values: * `true`: The domain was free. * `false`: The domain was not free. ## Status fields The `domain.purchased` event and its follow-up propagation events carry the same status fields as Connect webhooks (`propagation_status`, `dkim_status`, `redirection_status`, `setup_type`). See [Connect events](/connect/events#status-fields) for their values. Three of them report the add-on products configured on the purchased domain: * **`secure_status`**: The status of SSL certificate provisioning through [Entri Secure](/secure/overview). Possible values: * `"pending"`: The DNS records required by Entri Secure have not propagated yet, so the certificate has not been issued. * `"success"`: The records propagated and the SSL certificate was provisioned. * `"failed"`: The records did not propagate within 72 hours. Sent together with the `domain.propagation.timeout` event. * `"exempt"`: Entri Secure is not enabled for the application or does not apply to this flow. This is always the value on `purchase.error` and `purchase.confirmation.expired` events. * **`power_status`**: The status of the advanced features configuration through [Entri Power](/power/overview). Possible values: * `"pending"`: The DNS records required by Entri Power have not propagated yet. * `"success"`: The records propagated and Entri Power is configured for the domain. * `"failed"`: The records did not propagate within 72 hours. Sent together with the `domain.propagation.timeout` event. * `"exempt"`: Entri Power is not enabled for the application or does not apply to this flow. This is always the value on `purchase.error` and `purchase.confirmation.expired` events. * **`monitor_status`**: The status of the domain's enrollment in [Entri Monitor](/monitor/overview). Only present when the flow has records to monitor, which happens when the [`monitor`](/monitor/configuration) config option is `true` and Monitor is enabled for your account. Unlike `secure_status` and `power_status`, this field is never `"exempt"`: it is simply omitted from the payload when Monitor does not apply. Possible values: * `"pending"`: The monitored records have not propagated yet, so the domain is not enrolled in Monitor. * `"success"`: The records propagated and the domain is now monitored. * `"failed"`: The records did not propagate within 72 hours. Sent together with the `domain.propagation.timeout` event. > [!NOTE] > > The product-specific `domain.secure.*` and `domain.power.*` events reuse the same field names with a different vocabulary, `"active"` or `"inactive"`, to report whether the product is currently running on the domain. See [Secure events](/secure/events#status-fields) and [Power events](/power/events#status-fields). ## Browser callback events The Entri Sell modal emits browser events you can listen for to react when a purchase completes or the modal is closed. Each is a `window` event whose `event.detail` carries the payload described below. ### `onSuccess` Callback Event Fired when the user reaches the **Congratulations** screen after a successful purchase. Use it to capture a definitive success signal and the `jobId` that identifies the flow. > [!NOTE] > > The IONOS, Squarespace, and GoDaddy Sell flows all fire `onSuccess`. #### Sample usage: ```JavaScript JavaScript theme={"system"} function handleOnSuccess(event) { console.log('onSuccess', event.detail); } window.addEventListener('onSuccess', handleOnSuccess, false); ``` #### Sample `event.detail` object response: ```JSON JSON theme={"system"} { "domain": "example.com", "success": true, "setupType": "purchase", "provider": "squarespace", "freeDomain": false, "jobId": "2132b20f-e522-42fc-9604-5a53b1f13a4b" } ``` #### Event details object description | Name | Type | Description | | - | - | - | | domain | string | The purchased domain. When multiple domains are purchased, they are returned as a comma-separated string. | | success | boolean | Always `true` for this event. | | setupType | string | Always `purchase` for Sell flows. | | provider | string | The Sell registrar handling the purchase: `ionos`, `squarespace`, or `godaddy`. | | freeDomain | boolean | `true` when the purchase used an Entri Sell free-domain flow; otherwise `false`. | | jobId | string | The unique identifier for the Sell flow. It is also included in the related webhooks. | > [!NOTE] > > The `onSuccess` event is the recommended source to capture the `jobId` for subsequent server-side operations (e.g., retrieving the last webhook or [checking the flow status](/sell/sdk#check-flow-status)). ### `onEntriClose` Callback Event Fired as soon as the modal is closed, with the latest status of the flow. #### Sample usage: ```JavaScript JavaScript theme={"system"} function handleOnEntriClose(event) { console.log('onEntriClose', event.detail); } window.addEventListener('onEntriClose', handleOnEntriClose, false); ``` #### Sample `event.detail` object response: ```JSON JSON theme={"system"} { "domain": "example.com", "success": true, "lastStatus": "FINISHED_SUCCESSFULLY", "provider": "squarespace", "setupType": "purchase" } ``` #### Event details object description | Name | Type | Description | | - | - | - | | domain | string | The domain the user entered. May be an empty string if the user closed the modal before selecting a domain. | | success | boolean | `true` if the purchase completed before the modal closed; otherwise `false`. | | lastStatus | string | `FINISHED_SUCCESSFULLY` when the purchase completed successfully. Omitted when the modal is closed without completing a purchase. | | provider | string | The Sell registrar handling the purchase: `ionos`, `squarespace`, or `godaddy`. | | setupType | string | Always `purchase` for Sell flows. | > [!NOTE] > > The `onEntriClose` payload does not include `freeDomain`. To know whether a completed purchase used a free-domain flow, read `freeDomain` from the `onSuccess` event. When the modal is closed without a completed purchase, `success` is `false` and `lastStatus` is omitted. # Sell Modal Integration Source: https://developers.entri.com/sell/modal-integration Unified Flow — embedded domain purchase modal via connectDomain/purchaseDomain, including Sell-specific config keys. ## Integration Guide ### **Step 1: Configure Entri** To set up Sell, first follow the [**Getting Started guide**](/getting-started). Be sure to use [**dynamic configuration variables**](/connect/configuration#dynamic-configuration-variables) if your DNS records change based on the domain purchased. ### **Step 2: Select your Sell registrar partner** To start selling domains, you’ll need to select your Sell registrar partner. By default, no partner is selected in your account. Each partner will provide a different checkout experience, and a different set of functionality (top level domains, languages, regional support etc.). To learn more about each partner, please visit the Sell Registrars page or the Entri dashboard. After logging into the Entri Dashboard, visit the Application Settings page and the Sell Registrars tab. On this tab you can preview each Sell experience, learn more about the functionality offered by each partner, and select your registrar for each of your `ApplicationIDs`. ![Select your Sell registrar partner](https://mintcdn.com/entri-42/WkNUOj708q1elDUI/images/newDashboardRegistrarSelector.png?fit=max\&auto=format\&n=WkNUOj708q1elDUI\&q=85\&s=2f5de4547576d24380dbc13e49af7d1b) ### **Step 3: Define your return URLs (optional)** By default, Entri Sell redirects the user back to your platform if they complete or exit the purchase flow, on the same page that they were referred from. But, if you’d like to specify a different return URL, you can define this: * **`successCallbackUrl`**: The URL to which the user will be redirected after a successful domain purchase. * **`exitCallbackUrl`**: The URL to which the user will be redirected if they select Close (X) before completing the purchase flow. See more info at [**Basic Configuration**](#basic-configuration). ### **Step 4: Call purchaseDomain()** Call the `purchaseDomain` method with your configuration object to open the Entri Purchase Domain Flow. ```html theme={"system"} ``` ### **Configuration object specifications** More information about the properties within the object that you’ll pass to the `entri.purchaseDomain` method. #### **Basic Configuration** * **`applicationId`** (string): A unique identifier for your application, available in the Entri dashboard. **Example:** **`"12345"`** * **`token`** (string): A JWT token used for authentication and authorization. **Example:** **`"JWT_TOKEN"`** * **`successCallbackUrl`** (string) **(optional)**: The URL to which the user will be redirected after a successful domain purchase. The purchased domain will be added as a **`domain`** query string parameter to the success callback URL. **Example:** **`"https://myapplication.com/success"`** (redirects to **`https://myapplication.com/success?domain=mydomain.com`**) * **`exitCallbackUrl`** (string) **(optional)**: The URL to which the user will be redirected if they select Close (X) before completing the purchase flow. **Example:** **`"https://myapplication.com/exit"`** * **`disableConnect`** (boolean) **(optional)**: When `true`, the flow only performs the domain purchase — no DNS records are configured for the purchased domain. Useful when your app sets up DNS out-of-band. **Default:** `false`. * **`apiLink`** (string) **(optional)**: Overrides the base API endpoint the modal calls. Most integrations should leave this unset; use it only when directed by your Entri account manager (for example, to target a regional endpoint). * **`whiteLabel.sell.flowTarget`** (string) **(optional)**: The target location where the purchase flow window will be displayed. If `_blank` is specified, the flow will open in a new browser tab. **Default:** `_parent`. #### **DNS Records** * **`dnsRecords`** (array of objects): An array containing DNS record objects. These records will applied after a successful domain purchase. * **Example:** ```json theme={"system"} [ { "type": "A", "host": "@", "value": "93.184.216.34", "ttl": 300 }, { "type": "A", "host": "aipv4", "value": "93.184.216.34", "ttl": 300 } ] ``` ### Webhook Notifications When your users go through the Sell flow, Entri will send you webhook notifications to update you on their progress and the status of their purchase. To learn more about the configuration and webhook notifications, please visit our [webhook documentation page](/webhooks-overview). #### **Other Settings** * **`freeDomain`** (boolean): Indicates whether the domain price should be set to \$0. Should only be used on paid users at the customer’s platform. **Example:** **`true`** * Supported by **both IONOS and Squarespace**, enabled the same way. IONOS offers free domains across its full TLD catalog; Squarespace supports a limited set of TLDs. Reach out to your account manager for the current eligible TLD list on Squarespace and for access. See [Advanced Security Settings for `freeDomain`](#advanced-security-settings-for-freedomain) below to lock this flag into the JWT. * **`locale`** (string): The language/locale to be used in the domain purchase flow. **Example:** **`"en"`** #### **Advanced Security Settings for `freeDomain`** For additional security, you can explicitly set `freeDomain: false` or `freeDomain: true` in the request body when you create the JWT. This way, the user gets explicit authorization for running the free domain flow. If the client tries to use a config that does not match the one hashed in the JWT, Entri returns an error. Token creation and the full list of properties you can lock into the JWT are documented in [Enhancing Integration Security](/connect/configuration#enhancing-integration-security). | **Property** | **Type** | **Required** | **Default** | **Description** | | - | - | - | - | - | | **`freeDomain`** | boolean | No | N/A | When set to **`true`**, it will only allow Entri to run under the **`freeDomain`** flow. | #### **Mail Upsell** > [!NOTE] > > Mail Upsell is currently only available when using **IONOS** as the domain registrar. By default, Entri adds an extra step to the domain purchase flow. This step offers users the opportunity to purchase mail inboxes as an upsell. A mailbox is optional, meaning users can manually skip the mail offering if they are not interested. This property enhances the domain purchase experience by allowing you to promote additional services seamlessly, providing more value to users while keeping the flow non-intrusive. You can turn this feature off by setting `disableMailUpsell: true` in your configuration. Example Configuration: ```json theme={"system"} { "applicationId": "exampleapp", "token": "JWT_TOKEN", "disableMailUpsell": true, "successCallbackUrl": "https://[your_success_callback_url].com", "exitCallbackUrl": "https://[your_exit_callback_url].com", "dnsRecords": [ { "type": "A", "host": "@", "value": "93.184.216.34", "ttl": 300 } ], "whiteLabel": { "logo": "https://cdn.yourpartner.com/logo.svg", "theme": { "fg": "#ffffff", "bg": "#012939", "fgSecondary": "#ffffff", "bgSecondary": "#012939" } } } ``` #### Post purchase asynchronous DNS configurations Entri offers the ability for you to perform DNS configuration updates after the Sell flow has taken place. To learn more about how this feature can be used, please refer to the [Asynchronous DNS configurations](/sell/sdk#asynchronous-dns-configurations-entri-sell-only) section. ## Check Domain Availability This endpoint checks whether a domain is available for registration before initiating the **Entri Sell** flow. It returns the availability status along with a reason why the domain is not available, helping you determine whether to proceed with the purchase process. ### Check Domain Availability as HTTP endpoint ```txt theme={"system"} GET https://api.goentri.com/checkdomainavailability Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Headers | Header | Required? | Description | | - | - | - | | Authorization | Yes | Bearer token (JWT) for authentication. | | applicationId | Yes | Your Application ID as set in the dashboard. | #### Query Parameters | Parameter | Type | Required? | Description | | - | - | - | - | | domain | string | Yes | Fully qualified domain name to check (e.g. `example.com`). | #### Sample Response ```json theme={"system"} { "domain": "example.com", "available": true, "reason": "AVAILABLE", // or "UNSUPPORTED_TLD", "ERROR", "UNAVAILABLE" "checkedAt": "2025-05-15T17:20:00Z" } ``` ## Sharing Links API (Entri Sell) ``` POST https://api.goentri.com/sharing/sell Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Request body ```JSON JSON theme={"system"} { "applicationId":"yourApplicationID", "config":{ "prefilledDomain": "mydomain.com", "dnsRecords":[ { "type":"CNAME", "host":"www", "value":"test.com", "ttl":300 } ] } } //All the rest of possible configuration options, see https://developers.entri.com/connect/configuration for more details. ``` #### Successful response (200 status) ```JSON JSON theme={"system"} { // If a custom Sharing Link domain is configured, "link" will reflect that domain. // See: https://developers.entri.com/connect/shared-links#sharing-link-custom-domain "link": "https://app.goentri.com/share/dd339cf05f2646539e79251f8e62f0c5", "job_id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de" } ``` # Entri Sell Overview Source: https://developers.entri.com/sell/overview What Entri Sell is and how the domain purchase modal works. ## Overview With Entri Sell, your users can buy and connect a domain name to your application effortlessly, right within the Entri modal. After purchase, Entri automatically connects their domain to your service, applying the records you define on the **`dnsRecords`** object. You choose a registrar partner — **IONOS**, **Squarespace**, or **GoDaddy** — to power the checkout experience, and Entri handles the connection. The pages below walk you through integrating the modal, comparing registrars, theming the flow to match your brand, and handling post-purchase events. ## Explore the docs * [**Integration Guide**](/sell/modal-integration) — Configure Entri, select your registrar, and call `purchaseDomain()` to open the flow. * [**Sell Registrars**](/sell/white-label#sell-registrars) — Compare the registrar partners and the functionality each one offers: * [IONOS](/sell/white-label#ionos) * [Squarespace](/sell/white-label#squarespace) * [GoDaddy](/sell/white-label#godaddy) * [**White Label & Theming**](/sell/white-label) — Customize colors, partner branding, and custom copy in the purchase flow. * [**Sell SDK**](/sell/sdk) — Method and type reference for the Sell SDK. * [**Sell Events**](/sell/events) — Listen for purchase-flow events emitted by the modal. * [**Frequently Asked Questions**](#frequently-asked-questions) — Registrar, billing, support, and commission questions. *** ## Frequently Asked Questions ### Who is the registrar for the domain? Entri has partnered with IONOS, Squarespace, and GoDaddy, and you can choose between any of these partners as your domain registrar. ### How should I decide which registrar partner to use? Our team can walk you through the checkout experience, TLD coverage, language support, and other functionality offered by each registrar, but this decision should be made based on which partner best supports your business goals and your users. ### How is billing handled? Billing, renewals, and the checkout process are handled by the Sell registrar (IONOS, Squarespace, or GoDaddy) and Entri. ### Who is responsible for customer support relating to the domain purchased? The Sell registrar (IONOS, Squarespace, or GoDaddy) will handle customer support for the domain purchase. If you have any inquiries related to billing, renewals, domain registration, please direct your customers to each respective support team contact. For IONOS support, please visit: **[https://contact.ionos.com/](https://contact.ionos.com/)** For Squarespace support, please reach out to **[support@entri.com](mailto:support@entri.com)** For GoDaddy support, please visit **[https://www.godaddy.com/help](https://www.godaddy.com/help)** ### Can I earn a commission for each domain purchased? Yes! Please contact your Entri account manager to set this up. # Sell SDK Source: https://developers.entri.com/sell/sdk The purchaseDomain() method, configuration options, error handling, and the Sell server-side endpoints for async DNS configuration and listing purchased domains. ## `entri.purchaseDomain(config)` This method launches the [Entri Sell](/sell/overview) modal. The `config` object includes the same set of properties as those specified in [entri.connectDomain(config)](/connect/configuration#entri-connectdomain-config), plus additional Sell-specific options: > [!NOTE] > > For browser callback events (`onSuccess`, `onEntriClose`), see [Sell Events](/sell/events#browser-callback-events). > [!NOTE] > > Domains purchased through `purchaseDomain()` are not monitored by default. To track them with [Entri Monitor](/monitor/overview), pass `monitor: true` in the config as described in [Monitor configuration](/monitor/configuration). Only [`showUnify()`](/unify/overview) enrolls domains in Monitor automatically. | Property | Type | Required? | Default | Description | | - | - | - | - | - | | `disableConnect` | boolean | No | false | If true, the flow will only run the domain(s) purchase process, but no specific DNS records will be configured. | | `debugMode` | boolean | No | false | For testing purposes. It skips the actual payment process and takes the user to the congratulations step. Not currently supported when GoDaddy is the selected registrar. | | `successCallbackUrl` | string | No | N/A | The URL where the user will be redirected after a successful domain purchase. | | `exitCallbackUrl` | string | No | N/A | The URL where the user will be redirected if they exit the purchase flow before completing it (e.g. closing the modal). | | `dnsRecords` | array | Yes | N/A | An array of DNS records to configure for the purchased domain. Each record should include `type`, `host`, `value`, and `ttl`. | | `freeDomain` | boolean | No | false | This feature allows you to offer your users their first domain at no cost. Should only be used on paid users on your platform. Please contact your account manager to enable this feature. | | `locale` | string | No | `"en"` | The language/locale used in the domain purchase flow. | | `disableMailUpsell` | boolean | No | false | If set to true, the mail inbox upsell step is disabled and will not appear in the domain purchase flow. This property allows you to prevent the mail inbox upsell step seamlessly, ensuring a streamlined user experience without optional distractions. | | `searchType` | string | No | `"classic"` | (IONOS only) Use "ai" to enable AI-generated domain suggestions instead of the default "classic" search. | | `whiteLabel` | object | No | N/A | Customizes the branding and appearance of the purchase flow. Includes options for setting the logo, theme colors, hiding logos, and customizing text on the initial screen. | | `whiteLabel.sell.flowTarget` | string | No | `_parent` | The target location where the purchase flow window will be displayed. If \_blank is specified, the flow will open in a new browser tab. | | `whiteLabel.sell.partnerLogo` | string | No | N/A | The URL of the partner’s logo, which will be displayed prominently in the cobranded header of the purchase flow. | | `whiteLabel.sell.partnerName` | string | No | N/A | The name of the partner company to display within the purchase flow. | | `whiteLabel.sell.contact` | object | No | N/A | Prefilled user data required for creating the domain. This includes fields like `firstName`, `lastName`, `email`, `phone`, `address`, `zip`, `city`, `state`, `postalCode`, and `country`. | This `purchaseDomain` method includes all the latest theming options, cobranded elements, and features such as `successCallbackUrl` and `exitCallbackUrl`. Make sure to set the appropriate fields to customize the flow according to your needs. ### Possible `purchaseDomain()` Errors When any of the following critical errors occur, a console error will be logged, and the user will only see “Entri is misconfigured. Please contact support for assistance.” in the UI. | Error | Console Message | Reason | | - | - | - | | Failed to Fetch Application Settings | "Failed to fetch application settings" | API call failed (network error, invalid appId, or API down). | | Missing Registrar | "Entri is misconfigured. Your preferred registrar is missing. Please contact support for assistance." | No Sell registrar is selected for the application. Select one in the Entri Dashboard under Application Settings, Sell Registrars tab (see [Step 2 of the integration guide](/sell/modal-integration#step-2-select-your-sell-registrar-partner)). | | Unsupported Registrar | "Preferred registrar is not supported. Please contact support for assistance." | The registrar selected for the application is not one Entri supports. Supported registrars are IONOS, Squarespace, and GoDaddy. | ## Asynchronous DNS configurations ([Entri Sell](/sell/overview) only) You can make asynchronous DNS configurations after the initial **Entri Sell** flow has finished, for as long as the domain stays registered with the Sell registrar. > [!NOTE] > > There is no time limit on asynchronous configurations. They remain available until the domain expires or is transferred to another registrar. This feature allows you to add or update DNS records after the initial setup without requiring users to repeat the full flow. (Not supported on `debugMode=true` flows.) ```bash theme={"system"} POST https://api.goentri.com/connect/async Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Sample body: ```JSON JSON theme={"system"} { "applicationId": "clickfunnels", "domain": "domain.com", "subdomain": "www", "wwwRedirect": false, "dnsRecords": [ { "value": "13.248.155.104", "host": "@", "ttl": 300, "type": "A" } ] } ``` ### Properties: | Type | Property | Required? | Default | Description | | - | - | - | - | - | | string | applicationId | Yes | N/A | The ID of your application (set in the dashboard) | | string | domain | Yes | N/A | The domain that will have the DNS records configured, e.g. example.com | | array of DNSRecord objects | dnsRecords | Yes | N/A | The DNS records you wish to configure for your users | | string | subdomain | No | N/A | The subdomain that will have the DNS records configured, e.g. www | | boolean | wwwRedirect | No | false | If true, Entri will automatically set the redirect from the bare domain to the www subdomain. | ## List purchased domains This server-side endpoint returns every domain your application has sold through Entri Sell, along with the `userId` you passed in the config at purchase time. Use it to match each purchased domain to the right account in your system, run audits, or backfill data missed by [webhook notifications](/webhooks-overview). Results are scoped to your `applicationId`. > [!NOTE] > > Only domains purchased through the Sell flow are returned, regardless of which registrar (IONOS, GoDaddy, etc.) fulfilled the purchase. Domains transferred directly to another registrar outside of Sell, for example as part of a bulk migration, are not included. ```bash theme={"system"} GET https://api.goentri.com/sell/domains?{query-params} Header "Authorization: Bearer [JWT authorization]" Header "applicationId: [yourApplicationID]" Header "Accept: application/json" ``` Authentication uses the same short-lived JWT as every other Entri API, with one extra requirement: the token must be issued with `product: "sell"`. Mint it server-side with your `applicationId`, `secret` and `product` as described in [Enhancing Integration Security](/connect/configuration#enhancing-integration-security), and send it as a Bearer token together with the `applicationId` header. > [!WARNING] > > A token without a `product` claim, or a token issued for another product, is rejected with a `403` and no domains are returned. This also applies to applications that have authentication disabled. If you call this endpoint today with a token minted without `product`, update your token request to include `"product": "sell"`. ### Query parameters | Parameter | Required? | Description | | - | - | - | | `userId` | No | Return only the domain(s) purchased for this end user. Matches the `userId` you passed in your integration config at purchase time. | | `domain` | No | Return only domains whose name contains this text (partial match, not case-sensitive). | | `fromDate` | No | Only include purchases made on or after this date. Format: `YYYY-MM-DD`. | | `toDate` | No | Only include purchases made on or before this date. Format: `YYYY-MM-DD`. | | `page` | No | Page number, starting at `0`. Defaults to `0`. | | `limit` | No | Number of results per page. Defaults to `100`, maximum `500`. | If no filters are supplied, the endpoint returns every domain purchased through Sell for your application, most recent first. ### Example request ```bash theme={"system"} curl -X GET \ "https://api.goentri.com/sell/domains?fromDate=2026-01-01&toDate=2026-01-31&page=0&limit=10" \ -H "Authorization: Bearer " \ -H "applicationId: " \ -H "Accept: application/json" ``` ### Example response ```json theme={"system"} { "items": [ { "purchaseId": "fb044917-e35d-42fb-a195-c43c4e031d6b", "domain": "example.com", "userId": "user-123", "purchaseDate": "2026-01-14 19:43:46", "status": "purchased", "provider": "GODADDY", "connectionId": "gYSe9Q8cKEw4KEhyLA==", "companyId": "79fa2550-1e21-4fd8-9ec7-61351e4fd8f9", "couponCode": "", "freeDomain": false, "mailUpsell": false, "customerId": "", "sourceApplicationUuid": "" } ], "total": 56, "page": 0, "limit": 10, "count": 10, "pages": 6, "nextPage": 1, "prevPage": null } ``` Each entry in `items` represents one purchased domain: | Field | Description | | - | - | | `purchaseId` | Unique identifier for this purchase record. Useful when referencing a specific purchase in support requests. | | `domain` | The purchased domain name. | | `userId` | The end-user ID you passed in your integration config at purchase time. Empty string if none was provided. | | `purchaseDate` | Date and time of the purchase, in `YYYY-MM-DD HH:MM:SS` format. | | `status` | Currently always `purchased`. | | `provider` | The registrar that fulfilled the purchase, e.g. `IONOS`, `GODADDY`. | | `connectionId` | Internal identifier linking this purchase to a DNS connection flow, if applicable. Empty string otherwise. | | `companyId` | Identifier for the Entri company account associated with this purchase. | | `couponCode` | Coupon code applied at purchase. Empty string if none was used. | | `freeDomain` | `true` if the domain was provided at no cost as part of a bundle or promotion. | | `mailUpsell` | `true` if the user also purchased an email add-on at the same time. | | `customerId` | Internal customer identifier, if available. Empty string otherwise. | | `sourceApplicationUuid` | Identifies the originating application when the purchase came through a sub-account or reseller flow. Empty string when it originated directly from your application. | The response envelope carries the pagination data: | Field | Description | | - | - | | `total` | Total number of domains matching your filters, across all pages. | | `page` | The page number returned. | | `limit` | The page size used. | | `count` | Number of items in this response. | | `pages` | Total number of pages at this page size, rounded up (56 results at `limit: 10` is `6` pages). | | `nextPage` | The next page number to request, or `null` on the last page. | | `prevPage` | The previous page number, or `null` on the first page. | ### Errors Errors are returned as `{ "message": "Error description" }` with the corresponding HTTP status code. | HTTP Status | When it happens | | - | - | | `401 Unauthorized` | Credentials are missing or invalid: no `applicationId`, an expired or invalid JWT, or a JWT that does not match the `applicationId`. | | `403 Forbidden` | The JWT was not issued with `product: "sell"`, or the application has authentication disabled. The message reads `The token must be issued with product 'sell' to use this endpoint. See https://developers.entri.com/connect/configuration#enhancing-integration-security`. A JWT issued for another product returns `JWT is not valid for this resource` instead. | | `400 Bad Request` | A query parameter is invalid, e.g. `fromDate`/`toDate` is not `YYYY-MM-DD`, or `limit`/`page` is not a number. | | `500 Internal Server Error` | An unexpected error occurred on Entri's side. | An empty result is not an error. If no domains match your filters, or your application has no Sell purchases yet, the request returns `200 OK` with `"items": []` and `"total": 0`. ## Check flow status This server-side endpoint returns the current state of a Sell flow identified by its `job_id`. Use it to follow a purchase you started from your backend, for example through the [Sell sharing links API](/sell/modal-integration#sharing-links-api-entri-sell), or to confirm on demand that the purchased domain's DNS records have propagated. [Webhooks](/sell/events#webhook-event-types) remain the recommended way to be notified when a purchase progresses; this endpoint complements them when you need to read the state at a given moment. ```bash theme={"system"} GET https://api.goentri.com/sell/{job_id}/status Header "Authorization: Bearer [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` Authentication uses the same short-lived JWT as every other Entri API. Mint it server-side with your `applicationId` and `secret` as described in [Token creation (JWT)](/connect/configuration#token-creation-jwt), and send it as a Bearer token together with the `applicationId` header. The endpoint only returns flows that belong to that `applicationId`. ### Path parameters | Parameter | Type | Required? | Description | | - | - | - | - | | `job_id` | string (UUID v4) | Yes | The Sell flow identifier. Capture it from the [`onSuccess`](/sell/events#onsuccess-callback-event) browser event or from the `job_id` returned when you create a sharing link. | > [!NOTE] > > On an order with several domains, the webhooks for each domain carry their own per-domain `id`. Those identifiers have no flow record of their own. Always query this endpoint with the flow's `job_id`, not with a per-domain webhook `id`. ### Example request ```bash theme={"system"} curl -X GET \ "https://api.goentri.com/sell/9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de/status" \ -H "Authorization: Bearer " \ -H "applicationId: " ``` ### Example response ```json theme={"system"} { "job_id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "connected": false, "status": "in_progress", "prefilled_domain": "example.com", "domains": ["example.com", "example.net"] } ``` | Field | Type | Description | | - | - | - | | `job_id` | string | The flow identifier from the path. | | `connected` | boolean | `true` once Entri has confirmed that the DNS records for the purchased domain propagated. This is the same condition that produces `propagation_status: "success"` in the webhook. | | `status` | string | The progress marker of the purchase flow. See the table below. | | `prefilled_domain` | string | The domain passed as `prefilledDomain` in the configuration, or the domain of the flow when none was prefilled. | | `domains` | array of strings | The domains in the order. Only present once the user has reached the checkout. | ### Status values `status` reflects the step the purchase flow reached and is reported as stored. The values below are the ones the flow produces today. | `status` | Meaning | | - | - | | `pending` | The link was created and the user has not started the flow. | | `in_progress` | The user entered the checkout. | | `purchase flow completed` | The payment went through and the order was placed. | | `success` | The DNS records for the purchased domain propagated. `connected` is `true` at this point. | | `purchase_canceled`, `user_aborted`, `account_linking_failed`, `invalid_config` | The purchase did not complete. The value names the reason. | > [!WARNING] > > These values are an internal vocabulary and may change. Base decisions on `connected` and on the [`domain.purchased`](/sell/events#webhook-event-types), [`domain.registered`](/sell/events#registration-events) and [`domain.added`](/connect/events#webhook-event-types) webhooks rather than on exact `status` strings. ### Errors Errors are returned as `{ "message": "Error description" }` with the corresponding HTTP status code. | HTTP Status | Message | When it happens | | - | - | - | | `400 Bad Request` | `Invalid job_id format` | The `job_id` is missing or is not a UUID v4. | | `400 Bad Request` | `Sell flow not found for job id: {job_id}` | No flow exists with that `job_id`. | | `400 Bad Request` | `Sell flow not found for job id associated with application id: {application_id}` | The flow exists but belongs to a different `applicationId`. | | `403 Forbidden` | `Application ID not found` or `JWT token is expired or invalid` | Credentials are missing or invalid. | | `500 Internal Server Error` | `Failed to retrieve Connect flow status` | An unexpected error occurred on Entri's side. The message reads "Connect" on this endpoint as well. | # Sell White Label Source: https://developers.entri.com/sell/white-label Sell-specific theming: WhitelabelColors tokens per registrar, visibility flags, custom copy, partner branding, and IONOS/Squarespace/GoDaddy variants. ## Theme tokens (`WhitelabelColors`) Sell exposes a set of color tokens via `WhitelabelColors`. Each registrar supports a different subset. The table below shows which tokens are recognized by each registrar. | Token | IONOS | Squarespace | GoDaddy | Description | | - | :-: | :-: | :-: | - | | `primary` | ✓ | — | — | Main brand color. Used for background colors throughout the flow. | | `onPrimary` | ✓ | — | — | Text / icon color rendered on top of `primary` surfaces. | | `secondary` | ✓ | ✓ | — | Secondary brand color, used for most calls-to-action (CTAs) and UI accents. | | `onSecondary` | ✓ | ✓ | — | Text / icon color rendered on top of `secondary` surfaces. | | `error` | ✓ | — | — | Error-state color (error text, error borders, validation messages). | | `border` | ✓ | — | — | Default border color for inputs, cards, and dividers. | | `priceBadge` | ✓ | ✓ | — | Background color of price badges (e.g. "First year offer"). | | `onPriceBadge` | ✓ | ✓ | — | Text color rendered on top of the price badge. | | `headerBackground` | ✓ | — | — | Header background color. Defaults to `primary` if not set. | | `interactive` | ✓ | — | — | Color for interactive elements such as radio buttons. | | `premiumBadge` | ✓ | — | — | Background color of the premium badge component. | | `onPremiumBadge` | ✓ | — | — | Text color on the premium badge. | | `activating` | ✓ | — | — | Background color of the "Search Domain" button. | | `onActivating` | ✓ | — | — | Text color on the "Search Domain" button. | GoDaddy does not support `WhitelabelColors` theming. Branding for GoDaddy is limited to the partner logo, partner name and `removeLogoBorder` (see the [GoDaddy Sell Object](#godaddy-sell-object) below). ### Theme read order Sell resolves theme tokens in the following order, with the first match winning: 1. `config.whiteLabel.theme.sell.colors` — **preferred**. Sell-scoped colors live here. 2. `config.whiteLabel.theme.colors` — **fallback**. Reused from the shared Connect theme when `theme.sell.colors` isn't provided. This lets integrators reuse a single theme object across Connect and Sell, while still giving Sell-specific overrides priority when they are set. ### Modal backdrop The dim overlay rendered behind the Sell modal reads the same tokens as Connect: `whiteLabel.theme.colors.modalOverlay`, falling back to the legacy `whiteLabel.theme.lightBox.color`. Use a transparent `rgba` or `hsla` value to soften or remove the dim, for example when you launch Entri from a UI that already darkens the page. The backdrop is drawn by the embed script on your page, outside the registrar UI, so it applies to every registrar. ## Sell Registrars Entri currently partners with IONOS, Squarespace, and GoDaddy as our Sell registrars. You have the ability to choose between these partners to determine your checkout experience and functionality that you will have available. If you are a customer and have any questions on Sell registrars, please reach out to your Account Manager. If you are a registrar or reseller who is interested in partnering with Entri, please reach out to us at [partnerships@entri.com](mailto:partnerships@entri.com). ### IONOS With over 6.2 million valued customers, IONOS is the trusted partner for digital transformation for businesses across the globe. * Highly customizable user experience * FREE domain for first year offer (only for paid users) * 300+ TLDs available * Supports 7 languages and 52 countries * Offer users an email inbox with their domain * Customer support handled by IONOS [Launch demo](https://www.entri.com/demo) ![Sell Unified](https://mintcdn.com/entri-42/Ip7OvblAVR9nh6xG/images/Sell_Unified_1.png?fit=max\&auto=format\&n=Ip7OvblAVR9nh6xG\&q=85\&s=4b3b9f6522c65d0b789c2963fad88751) #### Whitelabeling/Branding **`whiteLabel`** (object): Options for customizing the appearance of the domain purchase flow to match your brand. * **`theme`** (object): Customizes the colors used in the purchase flow. * **`primary`** (string): Main color used in your theme. Used for background colors throughout the flow. **Example:** **`"#012939"`** * **`onPrimary`** (string): Color used for text and icons that appear on top of the primary color. **Example:** **`"#ffffff"`** * **`secondary`** (string): Color that complements the primary color and is used for secondary UI elements. **Example:** **`"#012939"`** * **`onSecondary`** (string): Color used for text and icons that appear on top of the secondary color. **Example:** **`"#ffffff"`** * **`headerBackground`** (string) (**optional**): Background color of the header. Accepts any valid CSS color code (e.g., hex, rgb). If not defined, it will default to the primary color value. **Example:** **`"#123456"`** * **`interactive`** (string) (**optional**): Color for interactive elements such as radio buttons. Accepts any valid CSS color code (e.g., hex, rgb). **Example:** **`"#ffcc00"`** * **`premiumBadge`** (string) (**optional**): Background color of premium badge components. Accepts any valid CSS color code (e.g., hex, rgb). **Example:** **`"#00ffcc"`** * **`onPremiumBadge`** (string) (**optional**): Text color on the premium badge. Accepts any valid CSS color code (e.g., hex, rgb). **Example:** **`"#ffffff"`** * **`priceBadge`** (string) (**optional**):This field specifies the background color of the price badge component. Accepts any valid CSS color code (e.g., hex, rgb).**Example:** **`"#ff6600"`** * **`onPriceBadge`** (string) (**optional**):This field specifies the text color on the price badge. Accepts any valid CSS color code (e.g., hex, rgb).**Example:** **`"#ffffff"`** * **`activating`** (string) (**optional**): Background color of the “Search Domain” button. Accepts any valid CSS color code (e.g., hex, rgb). **Example:** **`"#ff4500"`** * **`onActivating`** (string) (**optional**): Text color on the “Search Domain” button. Accepts any valid CSS color code (e.g., hex, rgb). **Example:** **`"#000000"`** * **`hideEntriLogo`** (boolean): Hide the Entri logo in the purchase flow. **Example:** **`true`** * **`hideCompanyLogo`** (boolean): Hide the company logo in the purchase flow. **Example:** **`true`** * **`hideCompanyName`** (boolean): Hide the company name in the purchase flow. **Example:** **`true`** * **`customCopy`** (object): Custom text to be displayed in the purchase flow. * **`initialScreen.title.{locale}`** (object): Title text that appears on the initial screen of the domain purchase flow, localized by language. **Example:** **`"Search for your domain"`** * **`initialScreen.marketingCopy.{locale}`** (object): Marketing copy that appears below the domain input field, localized by language. **Example:** **`"Your website will look even better with a custom domain!"`** ![Whitelabel-1.png](https://mintcdn.com/entri-42/gDL9vkDM9b5Qt4S-/images/V2SellUnifiedWhitelabel1.png?fit=max\&auto=format\&n=gDL9vkDM9b5Qt4S-\&q=85\&s=aea83e35bd38f487b9c5cac5a3e4954a) ![Whitelabel 1.2.png](https://mintcdn.com/entri-42/GFUDfPxcnU01TB1v/images/V3SellUnifiedWhitelabel2.png.png?fit=max\&auto=format\&n=GFUDfPxcnU01TB1v\&q=85\&s=1f2d3ea2fecd8917ebae3201a0572766) ![Whitelabel-2.png](https://mintcdn.com/entri-42/JkBfIpChZEKiOfog/images/Whitelabel-2.png?fit=max\&auto=format\&n=JkBfIpChZEKiOfog\&q=85\&s=753d4870146268417163eee33bf8f2bf) ![Whitelabel-3.png](https://mintcdn.com/entri-42/JkBfIpChZEKiOfog/images/Whitelabel-3.png?fit=max\&auto=format\&n=JkBfIpChZEKiOfog\&q=85\&s=08df466ee153b56d5b1ae2aeec92d17b) ![Whitelabel-4.png](https://mintcdn.com/entri-42/JkBfIpChZEKiOfog/images/Whitelabel-4.png?fit=max\&auto=format\&n=JkBfIpChZEKiOfog\&q=85\&s=c838b56270009f78f0c227f72f1623cc) #### Ionos Sell Object * **`whiteLabel.sell`** (object): Contains information specific to the cobranding and user data prefill in the domain purchase flow. * **`flowTarget`** (string): The target location where the purchase flow window will be displayed. If \_blank is specified, the flow will open in a new browser tab. **Example:** **`"_blank"`** * **`partnerLogo`** (string): The URL of the partner’s logo, which will be displayed prominently in the cobranded header. **Example:** **`"https://cdn.goentri.com/mylogo.svg"`** * **`partnerIcon`** (string): The URL of the partner’s icon, which will appear in the floating cart at the bottom of the page. **Example:** **`"https://cdn.goentri.com/myicon.svg"`** * **`partnerName`** (string): The name of the partner company, displayed within the purchase flow. **Example:** **`"My Company name"`** * **`removeLogoBorder`** (boolean): Removes the rounded mask applied over the partner logo, so square logos render uncropped. When not set, Sell falls back to the root `whiteLabel.removeLogoBorder` used by Connect. **Example:** **`true`** * **`contact`** (object): Prefilled user data to be used in the contact information form during domain creation. The following fields are supported: * **`firstName`** (string): User’s first name. **Example:** **`"John"`** * **`lastName`** (string): User’s last name. **Example:** **`"Doe"`** * **`email`** (string): User’s email address. **Example:** **`"john.doe@example.com"`** * **`phone`** (string): User’s phone number. **Example:** **`"+1234567890"`** * **`address`** (string): User’s street address. **Example:** **`"123 Main St"`** * **`zip`** (string): User’s ZIP or postal code. **Example:** **`"12345"`** * **`city`** (string): User’s city. **Example:** **`"Exampleville"`** * **`state`** (string): User’s state or province. **Example:** **`"EX"`** * **`postalCode`** (string): User’s postal code. **Example:** **`"12345"`** * **`country`** (string): User’s country. **Example:** **`"US"`** ### Squarespace World class domain registration and a clean, easy-to-use interface. Squarespace Domains makes it easy. * 300+ TLDs to choose from. * Award-winning support from Squarespace. * Default domain privacy for added security. * Instant DNS setup after purchase. * Seamless connection to your website. * Easy-to-use management dashboard. * \$0 in the first year for select TLDs (reach out to your account manager for access) [Launch demo](https://www.entri.com/demo) ![Search](https://mintcdn.com/entri-42/HzJbynr4FJZOeNOG/images/Search.png?fit=max\&auto=format\&n=HzJbynr4FJZOeNOG\&q=85\&s=53d15c69dcd850b36868efdca258009f) #### Squarespace Sell Object * **`whiteLabel.sell`** (object): Contains information specific to the cobranding and user data prefill in the domain purchase flow. * **`partnerLogo`** (string): The URL of the partner's logo, which will be displayed prominently in the cobranded header. **Example:** **`"https://cdn.goentri.com/mylogo.svg"`** * **`partnerName`** (string): The name of the partner company, displayed within the purchase flow. **Example:** **`"My Company name"`** * **`removeLogoBorder`** (boolean): Removes the rounded mask applied over the partner logo, so square logos render uncropped. When not set, Sell falls back to the root `whiteLabel.removeLogoBorder` used by Connect. **Example:** **`true`** * **`contact`** (object): Prefilled user data to be used in the contact information form during domain creation. The following fields are supported: * **`firstName`** (string): User's first name. **Example:** **`"John"`** * **`lastName`** (string): User's last name. **Example:** **`"Doe"`** * **`email`** (string): User's email address. **Example:** **`"john.doe@example.com"`** * **`phone`** (string): User's phone number. **Example:** **`"+1234567890"`** * **`address`** (string): User's street address. **Example:** **`"123 Main St"`** * **`zip`** (string): User's ZIP or postal code. **Example:** **`"12345"`** * **`city`** (string): User's city. **Example:** **`"Exampleville"`** * **`state`** (string): User's state or province. **Example:** **`"EX"`** * **`postalCode`** (string): User's postal code. **Example:** **`"12345"`** * **`country`** (string): User's country. **Example:** **`"US"`** #### Whitelabeling/Branding **`whiteLabel`** (object): Options for customizing the appearance of the domain purchase flow to match your brand. * **`theme`** (object): Customizes the colors used in the purchase flow. * **`secondary`** (string): Color used for buttons and secondary UI elements throughout the purchase flow (Search, Continue to Checkout, Continue to Payment, Back to App). **Example:** **`"#012939"`** * **`onSecondary`** (string): Color used for text and icons that appear on top of the secondary color. **Example:** **`"#ffffff"`** * **`priceBadge`** (string) (**optional**): This field specifies the background color of the price badge component (e.g. "First year offer"). Accepts any valid CSS color code (e.g., hex, rgb). **Example:** **`"#ff6600"`** * **`onPriceBadge`** (string) (**optional**): This field specifies the text color on the price badge. Accepts any valid CSS color code (e.g., hex, rgb). **Example:** **`"#ffffff"`** * **`customCopy`** (object): Custom text to be displayed in the purchase flow. * **`initialScreen.title.{locale}`** (object): Title text that appears on the initial screen of the domain purchase flow, localized by language. **Example:** **`"Find your new domain"`** * **`initialScreen.marketingCopy.{locale}`** (object): Marketing copy that appears below the title on the initial screen, localized by language. **Example:** **`"Your website will look even better with a custom domain!"`** * **`congratulations.sell.title.{locale}`** (object): Title text that appears on the order confirmation screen after a successful purchase, localized by language. **Example:** **`"Order placed"`** * **`congratulations.sell.description.{locale}`** (object): Description text that appears on the order confirmation screen below the title, localized by language. **Example:** **`"Squarespace will send you a confirmation email soon."`** ![SQSP Whitelabel-1.png](https://mintcdn.com/entri-42/9PSPuAEyYXmu5B9d/images/SQSP_Whitelabel_1.png?fit=max\&auto=format\&n=9PSPuAEyYXmu5B9d\&q=85\&s=6f6897e39bfa792a9d8bc7a2aa2efb08) ![SQSP Whitelabel-2.png](https://mintcdn.com/entri-42/5pwmcKAklIWaNX8s/images/SQSP_Whitelabel_2.png?fit=max\&auto=format\&n=5pwmcKAklIWaNX8s\&q=85\&s=c6c2612772136a2b7dc6ffb0d4a9670f) ![SQSP Whitelabel-3.png](https://mintcdn.com/entri-42/9PSPuAEyYXmu5B9d/images/SQSP_Whitelabel_3.png?fit=max\&auto=format\&n=9PSPuAEyYXmu5B9d\&q=85\&s=f99ead09c591be882ef74a6a62f6c4d7) ![SQSP Whitelabel-4.png](https://mintcdn.com/entri-42/9PSPuAEyYXmu5B9d/images/SQSP_Whitelabel_4.png?fit=max\&auto=format\&n=9PSPuAEyYXmu5B9d\&q=85\&s=5c7bb2ee39dae60941ad6e5bbbc586e6) ![SQSP Whitelabel 5.png](https://mintcdn.com/entri-42/9PSPuAEyYXmu5B9d/images/SQSP_Whitelabel_5.png?fit=max\&auto=format\&n=9PSPuAEyYXmu5B9d\&q=85\&s=4749faeb08e9438b456bbe3596562bcf) ### GoDaddy As the #1 domain registrar in the world for over 25 years, GoDaddy makes domain ownership and management seamless and easy. * 20+ million customers worldwide trust GoDaddy with their domains * 550+ TLDs available * 24/7 award-winning, human support * Automatic DMARC set up — configured for your users * Automated DNS management * Free WHOIS privacy [Launch demo](https://www.entri.com/demo) ![GoDaddy domain search](https://mintcdn.com/entri-42/mYHjAHL1Vxfj15E4/images/godaddySearch.png?fit=max\&auto=format\&n=mYHjAHL1Vxfj15E4\&q=85\&s=3f012728d374d48d6068513a83c4187c) #### GoDaddy Sell Object * **`whiteLabel.sell`** (object): Contains information specific to the cobranding in the domain purchase flow. GoDaddy supports partner branding only; theme color tokens and contact prefill are not applied. * **`partnerLogo`** (string): The URL of the partner's logo, which will be displayed prominently in the cobranded header. **Example:** **`"https://cdn.goentri.com/mylogo.svg"`** * **`partnerName`** (string): The name of the partner company, displayed within the purchase flow. **Example:** **`"My Company name"`** * **`removeLogoBorder`** (boolean): Removes the rounded mask applied over the partner logo, so square logos render uncropped. When not set, Sell falls back to the root `whiteLabel.removeLogoBorder` used by Connect. **Example:** **`true`** #### Whitelabeling/Branding GoDaddy does not support `whiteLabel.theme` color tokens or `customCopy` overrides inside the purchase flow. Branding is limited to `partnerLogo`, `partnerName` and `removeLogoBorder` as described in the [GoDaddy Sell Object](#godaddy-sell-object) above. The [modal backdrop](#modal-backdrop) still applies, since it is drawn outside the registrar UI. # Entri Unify Configuration Source: https://developers.entri.com/unify/configuration Configuration reference for the showUnify() call. ## Overview `entri.showUnify(config)` takes a single config object made up almost entirely of the existing [Connect](/connect/configuration) and [Sell](/sell/overview) keys. Any key you already pass to `connectDomain()` or `purchaseDomain()` is valid here, and Entri forwards the relevant ones into whichever flow the user selects. The one Unify-specific key is `disableUnifySellRedirect`, described below. This means you don't redefine your setup for Unify. Your authentication, DNS records, and branding carry over from the flows you already use. ## How the config is routed When the user picks "Connect a domain," Entri applies the Connect-side keys (the same ones `connectDomain()` accepts). When the user picks "Buy a new domain," Entri applies the Sell-side keys (the same ones `purchaseDomain()` accepts). Shared keys such as your application credentials and branding apply to both paths. Both paths are always reachable. There is no key to show only "buy" or only "connect." A partner who needs a single path should call `connectDomain()` or `purchaseDomain()` directly instead of `showUnify()`. The one case where the selection screen is skipped is a prefilled domain that is available for purchase, described next. ## Prefilled domains available for purchase When the config carries a `prefilledDomain` that is unregistered and available for purchase, Entri opens the Sell flow for that domain directly instead of the selection screen. The back arrow inside Sell returns the user to the selection screen, so the Connect path stays reachable. The redirect requires your application to have Sell enabled with a registrar selected. If the domain is already registered, or the availability check fails or doesn't answer within a few seconds, the user lands on the selection screen as usual. Domains with a subdomain never trigger the check. To opt out and always show the selection screen: | Key | Type | Required | Default | Description | | - | - | - | - | - | | `disableUnifySellRedirect` | `boolean` | No | `false` | Disables the automatic Sell redirect for purchasable prefilled domains. No availability check is made. | ## DNS monitoring Every domain that completes the flow, whether purchased or connected, is added to [Entri Monitor](/monitor/overview) automatically. You don't pass the `monitor: true` flag that the standalone `connectDomain()` and `purchaseDomain()` calls require. Enrollment is included with `showUnify()`. To opt out, pass `monitor: false` in the config. Domains that complete that flow are not enrolled: ```js theme={"system"} entri.showUnify({ applicationId: "YOUR_APPLICATION_ID", token: "GENERATED_JWT", monitor: false, // don't enroll domains from this flow in Entri Monitor dnsRecords: [ // ... ], }); ``` ## Shared keys These keys behave the same way they do in the Connect and Sell flows. See the [Connect configuration reference](/connect/configuration) for the full list and field-level detail. | Key | Type | Description | | - | - | - | | `applicationId` | `string` | Your Entri application ID. | | `token` | `string` | Short-lived JWT generated by your backend. | | `dnsRecords` | `array` | The records Entri applies once the domain is connected or purchased. | ## White-label Entri Unify runs on the same redesigned modal as Connect. The unified modal, including the selection screen where the user chooses to buy or connect a domain, is themed through the same `whiteLabel` object you already pass for Connect. There is no separate Unify theming object, and `showUnify()` always renders the redesigned modal. The white-label properties that apply are the ones documented in the Connect white-label reference. That list is the single source of truth, so rather than repeat it here, refer to it directly: > **[Connect white-label reference](/connect/white-label)** > > The full set of `whiteLabel` properties supported by the modal ### Selection screen The selection screen, where the user chooses to buy or connect a domain, is themed by the same `whiteLabel` branding properties as the rest of the flow. Your `logo`, `logoBackgroundColor`, `removeLogoBorder`, `hideCompanyLogo`, and `hideEntriLogo` settings all apply here, and `hideCompanyName` switches the heading from "Add a domain to " to a neutral "Add a domain." These are the same properties documented in the white-label reference above, so there is nothing extra to configure for branding. The screen's text, including the heading, the subtitle, and the "Buy a new domain" and "Connect a domain" card labels, is provided and localized by Entri. It is not currently overridable through `customCopy`. ## Example ```js theme={"system"} entri.showUnify({ applicationId: "YOUR_APPLICATION_ID", token: "GENERATED_JWT", dnsRecords: [ // ...records applied after the user connects or purchases a domain ], }); ``` # Entri Unify Events Source: https://developers.entri.com/unify/events Browser events and webhook notifications fired during the Unify flow. ## Overview Entri Unify fires one new browser event for the path-selection step, then hands off to the Connect or Sell flow, which fires its existing events for the rest of the session. On the backend, Unify does not introduce a new webhook payload. The flow the user selects sends the same Connect or Sell webhooks you already handle. ## `onEntriPathSelected` Event When the user chooses between buying a new domain and connecting an existing one, Unify fires `onEntriPathSelected`. Use it to track which path your users take or to update your own UI before the underlying flow opens. #### Sample usage: ```JavaScript JavaScript theme={"system"} function handleOnEntriPathSelected(event) { console.log('onEntriPathSelected', event.detail); } window.addEventListener('onEntriPathSelected', handleOnEntriPathSelected, false); ``` #### Sample `event.detail` object response: ```JSON JSON theme={"system"} { "path": "connect", "domain": "example.com", "user": "user-123456" } ``` #### Event details object description | Name | Type | Description | | - | - | - | | path | string | Which path the user chose: `"sell"` or `"connect"`. | | domain | string | Domain the user entered, if collected before selection. Can be null. | | user | string | The `userId` sent over the initial configuration. Helpful for mapping users vs. flows. | ## Flow events After the path is selected, all subsequent browser events come from the chosen flow: For the connect path, listen for the [Entri Connect events](/connect/events). For the sell path, listen for the [Entri Sell events](/sell/events). > [!NOTE] > > Because Unify reuses these events, existing listeners you wrote for Connect > or Sell continue to work without changes. ## Webhooks Unify does not add a webhook payload of its own. The selected flow fires its standard webhooks, so the server-side notification you receive when a domain goes live is the same one Connect or Sell would send on its own. See the [webhooks overview](/webhooks-overview) for payload detail. # Migrating to Entri Unify Source: https://developers.entri.com/unify/migration Upgrade an existing Connect or Sell integration to the unified Unify flow. ## Overview This page is for partners who already integrate Entri Connect, Entri Sell, or both, and want to move to the single `showUnify()` entry point. After migrating, you make one call and Entri presents the "buy a new domain" or "connect a domain" choice, then routes the user into the matching flow. You no longer maintain your own selection screen or the branching logic that decides which flow to open. If you only ever offer one path, you don't need to migrate. `connectDomain()` and `purchaseDomain()` continue to work unchanged. ## Before you start If your existing Connect or Sell integration works today, you already have everything you need to call `showUnify()`. There are two ways to adopt Entri Unify. > [!TIP] > > If you prefer to not make any code changes, you can force Unify on by navigating to your application settings and enabling **"Force Unify"**. The rest of this page covers the other path: adopting `showUnify()` in your own code for full control over configuration and events. Because the Unify config is a superset of the Connect and Sell configs, the keys you pass today remain valid. See the [configuration reference](/unify/configuration) for details. ## Migrating from a two-flow integration If you currently show your own buy-versus-connect screen and call `connectDomain()` or `purchaseDomain()` depending on the user's choice, replace that logic with a single `showUnify()` call. ```js theme={"system"} // Before: your UI decides, then you call one flow or the other if (userChoseToBuy) { entri.purchaseDomain(sellConfig); } else { entri.connectDomain(connectConfig); } // After: Entri presents the choice and routes internally entri.showUnify({ ...sharedConfig, // Connect and Sell keys both live in this one object }); ``` Once migrated, you can remove your selection UI and the conditional that branched between the two flows. ## Migrating from a single flow If you call only `connectDomain()` or only `purchaseDomain()` today and now want to offer both paths, move your existing config into a `showUnify()` call and add the keys for the second flow. There are no Unify-specific keys to learn. You combine the same Connect and Sell keys you already know into one object. For example, a Connect-only integration adding the buy path: ```js theme={"system"} // Before: connect-only, your existing connectDomain() call entri.connectDomain({ applicationId: "YOUR_APPLICATION_ID", token: "GENERATED_JWT", dnsRecords: [ // ...records applied after the user connects their domain ], }); // After: same Connect keys, plus the Sell keys for the buy path entri.showUnify({ applicationId: "YOUR_APPLICATION_ID", token: "GENERATED_JWT", dnsRecords: [ // ...same records, applied whether the user connects or buys ], // ...add the Sell keys you would pass to purchaseDomain() }); ``` A Sell-only integration adding the connect path works the same way in reverse: keep your `purchaseDomain()` keys and add the Connect keys for the existing-domain path. ## Monitoring after migration Moving to `showUnify()` changes one default: every domain that completes the flow is automatically added to [Entri Monitor](/monitor/overview). With `connectDomain()` or `purchaseDomain()`, monitoring required `monitor: true` in the config. With `showUnify()` it is included, so you can drop that flag from the config you carry over. If you don't want the domains monitored, pass `monitor: false` instead. ## Events after migration Existing event listeners keep working. The chosen flow fires the same Connect or Sell browser events and webhooks as before, and Unify adds one new `onEntriPathSelected` event for the selection step. See [Unify events](/unify/events). # Entri Unify Overview Source: https://developers.entri.com/unify/overview A single SDK call that lets users buy a new domain or connect one they already own. ## Overview Most SaaS products depend on a working custom domain to deliver their core value, whether that's a website, an email address, or a branded storefront. Getting there means the user either buys a domain or configures one they already own, and until that domain is live the user is blocked. They can't send email from their brand, serve their site, or use whatever your platform sold them. **Entri Unify** is the call that closes that loop. `entri.showUnify(config)` presents a centralized modal where the user chooses to buy a new domain or connect an existing one, then routes them through the right Entri flow automatically. When that flow completes, the domain goes from purchased or owned to fully functional inside your platform. Before Unify, offering both paths meant building your own selection UI, writing conditional logic to invoke the right flow, and managing two separate integrations. Unify removes that complexity. You make one call and Entri handles the path selection and the routing. ## How it works 1. You call `entri.showUnify(config)` and Entri opens a centralized modal. 2. The user chooses between "Buy a new domain" and "Connect a domain." 3. Based on that choice, Entri internally routes to the matching flow: * **Buy a new domain** runs the Entri Sell flow (`purchaseDomain()`), which handles the purchase and auto-configures DNS. * **Connect a domain** runs the Entri Connect flow (`connectDomain()`), which guides the user through DNS setup for the domain they already own. 4. Entri applies the records you defined and monitors propagation, just as it does for the underlying flows. 5. Entri automatically adds the domain to [Entri Monitor](/monitor/overview), which watches its DNS records for later changes. ## When to use Entri Unify Use Unify when you want to offer both the purchase and connect paths through a single unified entry point, or when you want Entri to handle the path-selection experience on your behalf. If you only ever need one path, you can continue to call `connectDomain()` or `purchaseDomain()` directly. Unify does not replace Connect or Sell as standalone products. It sits in front of them as a single front door for partners who need both. ## Key features **Single integration** replaces the selection UI and branching logic you would otherwise build yourself. One call to `showUnify()` covers both the purchase and connect paths. **Centralized path selection** presents the "buy" and "connect" choice in an Entri-managed modal, so you never build or maintain that screen. The modal is themed with the same [`whiteLabel` object](/connect/white-label) as the rest of the flow. **Automatic routing** sends the user into the Entri Sell or Entri Connect flow based on what they pick, with no state to manage across the two. **Consistent configuration** lets you define your DNS records once and have them applied no matter which path the user takes, and **propagation monitoring** carries through from the underlying flow so you're notified when the domain goes live. **Built-in DNS monitoring** enrolls every domain in [Entri Monitor](/monitor/overview) automatically, so you're alerted if the records change or break after setup. This is included only with `showUnify()`. The standalone `connectDomain()` and `purchaseDomain()` calls enroll domains in Monitor when you pass `monitor: true` in the config. ## Quick links > **[Configuration](/unify/configuration)** > > Full showUnify() config key reference > **[Events](/unify/events)** > > Browser events and webhook notifications > **[Migration](/unify/migration)** > > Upgrade an existing Connect or Sell integration > **[Connect & Sell](/connect/overview)** > > The flows Unify routes into # Webhooks Overview Source: https://developers.entri.com/webhooks-overview Payload envelope, signature verification, top-level fields, and links to per-product event pages. > [!NOTE] > > Webhooks will only be delivered to accounts set as `Admin` or `Developer` roles within the Dashboard. Entri uses webhooks to notify your backend about the status of a domain that has been [connected](/getting-started) or [sold](/sell/overview). You can configure a URL in the Entri dashboard to receive these webhook events. ## Example webhook payload When a domain has been added by a user, Entri sends the following webhook payload: ```json theme={"system"} { "id": "1234567890-abcdefg-1234567890", "user_id": "your-provided-user-id", "domain": "example.com", "subdomain": "shop", "provider" : "cloudflare", "type": "domain.added", "propagation_status": "pending", "dkim_status": "success", "redirection_status": "exempt", "setup_type": "automatic", "secure_status": "success", "power_status": "success", "monitor_status": "pending", "dmarc_updated": "exempt", "cname_target": "my.saascompany.com", "purchased_domains": ["domain1.com", "domain2.com", "domainN.com"], "free_domain": true, "data": { "records_propagated": [ { "type": "A", "host": "smallbusiness.com", "value": "54.153.2.220", "applicationUrl": "www.example.com", "powerRootPathAccess": ["path1", "path2", "pathN"] }, { "type": "CNAME", "host": "www", "value": "smallbusiness.com" } ], "records_non_propagated": [] } } ``` ## Webhook payload breakdown The webhook payload includes several fields with nested objects, depending on the type of event. Below is a complete description of each key and value. ### Top-Level fields * **`id`**: A unique identifier for the webhook event (e.g. `"1234567890-abcdefg-1234567890"`). * **`user_id`**: The ID of the user who initiated the domain-related action (e.g. `"your-provided-user-id"`). * **`domain`**: The domain involved in the event (e.g. `"example.com"`). * **`subdomain`**: The subdomain associated with the event, if any (e.g. `"shop"`). * **`provider`**: The domain's provider associated with the event (e.g. `"cloudflare"`). For event types and status fields, see the per-product events pages: [Connect events](/connect/events), [Sell events](/sell/events), [Power events](/power/events), [Secure events](/secure/events), [Monitor events](/monitor/events). ## Examples of key and value pairs * `"type": "domain.added"`: An event type indicating that a domain has been added. * `"propagation_status": "pending"`: DNS record propagation is still in progress. * `"secure_status": "success"`: SSL configuration completed successfully. * `"power_status": "failed"`: The advanced feature configuration process has failed. * `"cname_target": "my.saascompany.com"`: The CNAME target for Entri Power or Secure configuration. * `"type": "domain.power.provisioned"`: A product-scoped event. Power and Secure send their own events on top of the flow events above. ## Choosing which events you receive You decide which events Entri sends to your webhook URL. In the Dashboard, open **Application → Webhooks** and find the **Webhook events** section: events are grouped by product, and each one can be turned on or off individually. Unselected events are skipped entirely and are not retried later. > [!NOTE] > > Selections are saved even before a webhook URL is set, and take effect as soon as you add one. Power and Secure send their own events, listed on [Power events](/power/events#webhook-event-types) and [Secure events](/secure/events#webhook-event-types). Unlike the events tied to a connection flow, these are sent throughout the life of the domain: when it is provisioned, when it changes, when Power or Secure is removed, and when a certificate renewal fails. They are only delivered if they are selected for your application. ## Webhook updates If any part of the webhook object is updated, subsequent webhooks will include ALL fields. Example update: ```json theme={"system"} { "id": "1234567890-abcdefg-1234567890", "propagation_status": "success", "updated_objects": ["propagation_status"] } ``` ## Propagation retries If the DNS records are not fully propagated on the first attempt, Entri will retry every 10 seconds for the first 2 mins, and then at increasing intervals (1 minute, 2 minutes, 4 minutes, 8 mins, ...etc). This process will continue for up to 72 hours. After 72 hours, if the records are still not propagated, a webhook with `"type": "domain.propagation.timeout"` will be sent. ## Connection failures retries Webhooks automatically retries up to 3 times if something goes wrong. If all 3 retries fail, a warning email will be sent (limited to 1 per day). ## DKIM status notes The `dkim_status` field is set to `exempt` if: * The user does not use Google or Microsoft email providers. * The `Enable support for DKIM` setting is disabled for your `applicationId`. ## Overview and Webhook Structure > [!TIP] > > **Included in all tiers.** All webhook notifications include the following headers and follow the structure described below. All webhook notifications will have the following header in the Request: `"User-Agent": "Entri-Webhook"`. This is the list of keys you will receive on a webhook notification: ```JSON JSON theme={"system"} { "id": "028b5078-8fed-4ffb-8e3e-3e6e6d8214b4", "user_id": "sample-user", "domain": "smallbusiness.com", "provider": "ionos.com", "type": "domain.added", "propagation_status": "success", "optional_records_propagation_status": "pending", //Only when the configuration includes optional records "dkim_status": "success", "redirection_status": "exempt", "ssl_status": "success", "setup_type": "automatic", "secure_status": "success", //Only for Entri Secure usage "power_status" : "success", //Only for Entri Power usage "cname_target": "my.saascompany.com", //Only for Entri Power and Secure usage "purchased_domains": ["domain1.com",...,"domainN.com"], //Only for Entri Sell usage "data": { "records_propagated": [ { "type": "A", "host": "smallbusiness.com", "value": "54.153.2.220" }, { "type": "CNAME", "host": "www", "value": "smallbusiness.com" } ], "records_non_propagated": [ { "type": "TXT", "host": "@", "value": "v=spf1 include:_spf.example-mail.com ~all", "optional": true } ], "updated_objects": [ "propagation_status", "ssl_status" ] } } ``` The JSON object contains the following properties: | Property | Type | Description | | - | - | - | | id | string | Entri's ID for the webhook event | | user\_id | string | The user ID that your application can optionally send via the configuration object during setup (see the [entri.connectDomain method](/connect/configuration#entri-connectdomain-config)) | | domain | string | The domain name set by your user | | type | string | The event type. The events available to you depend on the products enabled for your application. See [Connect events](/connect/events#webhook-event-types), [Sell events](/sell/events#webhook-event-types), [Power events](/power/events#webhook-event-types), [Secure events](/secure/events#webhook-event-types) and [Monitor events](/monitor/events#webhook-event-types). | | setup\_type | \[automatic, manual] | States if the dns record(s) was done in a manual or automatic way. Options:- automatic- manual | | propagation\_status | \[pending, success, failed, exempt] | The DNS propagation status. Options:- success- pending- failed | | optional\_records\_propagation\_status | \[pending, success, failed] | The propagation status of records marked as [optional](/connect/dns-records#optional-records) in the configuration, tracked independently from propagation\_status. See [Connect events](/connect/events#status-fields). | | dkim\_status | \[pending, success, failed, exempt] | Whether DKIM has been set up (see [Handling DKIM, SPF, and DMARC Records](/handling-dkim-spf-dmarc-records)). Options:- success- pending- failed- exempt (the feature is disabled) | | redirection\_status | \[pending, success, failed, exempt] | If the wwwRedirect feature was enabled for your applicationId, then Entri will check to confirm the status of the url redirect.Options:- success- pending- failed- exempt (the feature is disabled) | | data.records\_propagated | array of DNSRecord objects | See above | | data.records\_non\_propagated | array of DNSRecord objects | See above | | updated\_objects | array of strings | The object properties that have been updated since the last webhook event. | | secure\_status | \[pending, success, failed, exempt] | Whether an SSL certificate has been provisioned (see [Provisioning SSL Certificates](/secure/overview)). Options:- success- pending- failed- exempt (the feature is disabled) | | power\_status | \[pending, success, failed, exempt] | Whether a domain has been powered (see [Powering domains](/power/overview)). Options:- success- pending- failed- exempt (the feature is disabled) | | cname\_target | string | Account's configured cname\_target value for Entri Power and Secure or empty string if it doesn't apply. | | purchased\_domains | array of strings | List of purchased domains along the Entri Sell flow or empty array if not an Entri Sell flow. | | provider | string | The domain's provider associated with the event (e.g. `"cloudflare"`). | ## Webhook Management Endpoints These endpoints are designed to help partners retrieve or re-trigger webhook events programmatically. Each request requires a valid jobId, which can be captured from the [`onSuccess`](/connect/events#onsuccess-callback-event) browser event. To read a flow's current state directly instead of its webhook history, use the Check flow status endpoint for [Connect](/connect/sdk#check-flow-status) or [Sell](/sell/sdk#check-flow-status). ### Trigger propagation re-check (async) When this endpoint is called, Entri performs an immediate DNS propagation re-check for the specified Connect flow and **delivers the latest result via webhook**. The endpoint is still **asynchronous**: it only confirms that the check was queued; the propagation result is sent exclusively through the webhook, and no continuous propagation checks happen after this manual re-check. > **Tip:** The `jobId` required for this endpoint can be obtained from the [`onSuccess`](/connect/events#onsuccess-callback-event) browser event once the flow finishes successfully. ```txt theme={"system"} POST https://api.goentri.com/connect/propagation/recheck/:job_id Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Alternative UI-based option This action can also be triggered directly from the Customer Dashboard, under the Webhook logs section. In front of each log, users will find the “Check propagation again” button, which performs the same propagation re-check as this endpoint. #### Headers | Header | Required? | Description | | - | - | - | | Authorization | Yes | Bearer token (JWT) for authentication. | | applicationId | Yes | Your Application ID as set in the dashboard. | #### Path Parameters | Parameter | Type | Required? | Description | | - | - | - | - | | job\_id | string (UUID) | Yes | The Connect flow identifier (returned by initialize and included in all related webhooks). | #### Request Body *None.* All inputs are provided via path parameters and headers. #### Response * **202 Accepted** if the re-check was queued successfully. ```json theme={"system"} { "jobId": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "queued": true, "message": "Propagation re-check has been queued. A webhook will be sent with the result.", "enqueuedAt": "2025-11-05T18:22:00Z" } ``` #### Webhook behavior * Performs one immediate propagation re-check and sends a webhook with the **latest** propagation status; no continuous propagation retries follow this manual re-check. * Includes `"manual_retry": true` in the webhook **body**. * Follows the standard delivery policy with up to **3 attempts** if the receiver is unavailable. * **Logs a new webhook attempt** entry; existing webhook logs are not overridden. * Uses the same execution codepath as the private Dashboard action for this functionality. #### Cooldown To avoid abuse and accidental hot-polling, this endpoint can be called **once every 5 minutes per job**.\ If called sooner, it returns: * **429 Too Many Requests** with message: `"You can only trigger the check once every 5 mins"`\ (Servers may also include `Retry-After: 300`.) #### Error Responses | HTTP | Example Body | Description | | -: | - | - | | 400 | `{ "message": "Invalid job_id format" }` | Malformed UUID. | | 401 | `{ "message": "Unauthorized" }` | Invalid or missing JWT. | | 403 | `{ "message": "Forbidden" }` | The `job_id` does not belong to the calling `applicationId`. | | 404 | `{ "message": "Job not found" }` | Unknown `job_id`. | | 429 | `{ "message": "You can only trigger the check once every 5 mins" }` | Called within the 5‑minute cooldown window. | | 500 | `{ "message": "Internal Server Error" }` | Unexpected server error. | #### Example cURL ```bash theme={"system"} curl -s -X POST \ "https://api.goentri.com/connect/propagation/recheck/9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de" \ -H "Authorization: Bearer " \ -H "applicationId: " ``` ### Get last webhook by job ID This endpoint allows you to retrieve the last webhook event sent for a specific Connect flow, based on the `job_id`. It is useful for debugging or validating the final propagation result of a specific domain connection. > **Tip:** You can obtain the `jobId` value directly from the [`onSuccess`](/connect/events#onsuccess-callback-event) browser event, which is triggered when the user reaches the Congratulations screen. ```txt theme={"system"} GET https://api.goentri.com/connect/webhooks/last/:job_id Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` #### Headers | Header | Required? | Description | | - | - | - | | Authorization | Yes | Bearer token (JWT) for authentication. | | applicationId | Yes | Your Application ID as set in the dashboard. | #### Path Parameters | Parameter | Type | Required? | Description | | - | - | - | - | | job\_id | string (UUID) | Yes | The UUID of the Connect flow. The same job\_id returned in the initialize endpoint and included in all related webhooks. | #### Sample Response ```json theme={"system"} { "id": "d6a6b6c4-45f3-42a2-8bb1-3c92debf47e2", "job_id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "domain": "example.com", "type": "domain.propagation.success", "manual_retry": false, "status": "delivered", "sentAt": "2025-11-05T18:22:00Z", "payload": { "domain": "example.com", "job_id": "9c128fe4-63cd-4ec4-9ae8-8a9d06c0e6de", "propagation_status": "success", "records_checked": [ { "type": "CNAME", "host": "www", "value": "myapp.com" } ] } } ``` #### Error Responses | HTTP | Example Body | Description | | - | - | - | | 400 | `{ "message": "Invalid job_id format" }` | Malformed or missing job\_id. | | 401 | `{ "message": "Unauthorized" }` | Invalid or missing JWT. | | 403 | `{ "message": "Forbidden" }` | The job\_id does not belong to the calling applicationId. | | 404 | `{ "message": "Webhook not found" }` | No webhook log was found for the given job\_id. | | 500 | `{ "message": "Internal Server Error" }` | Unexpected server error. | #### Notes * This endpoint is **read-only** and returns the last logged webhook event associated with the provided job\_id. * It retrieves data from the webhook logs table and does **not** resend or trigger new webhooks. * Only returns the **most recent** webhook entry for that job. ## Provider Health Returns the status of all the providers for an application ID that Entri supports. ``` GET https://api.goentri.com/providers_health Header "Authorization: [JWT authorization]" Header "applicationId: [yourApplicationID]" ``` ### Response body ```JSON JSON theme={"system"} { "message": "success", "data": [ { "provider": "IONOS", "enabled": true }, { "provider": "Enom", "enabled": true }, { "provider": "Amazon Route 53", "enabled": true }, ... ] } ``` ## Entri Webhook Signature Verification ## Enforcing Webhook Source IP (Optional) All webhook requests from Entri are now sent from a fixed static IP address: `3.14.77.245` For an additional layer of security, you may allow webhook traffic only from this IP within your firewall, API gateway, or reverse proxy. This ensures that only Entri can reach your webhook endpoint, even before signature validation occurs, providing a strong network-level safeguard against unauthorized requests. > [!NOTE] > > The fixed IP address (`3.14.77.245`) applies only to production webhook deliveries. The **Dashboard webhook tester** does not originate from this IP address. If you are testing webhooks using the Dashboard tester, you must temporarily disable IP allowlisting or your endpoint may reject the request. ## Signature Timestamp Header The `Entri-Timestamp` header contains the Unix timestamp (in seconds) for when the webhook was generated. It is used by both Signature V2 and Signature V3 verification. This enables servers to enforce freshness windows and reject replayed requests. ## Signature Verification Methods Entri sends all three signature headers on every webhook request — they are additive and do not replace each other. You may verify any or all of them; we recommend verifying at least V3 for new integrations. | Header | Algorithm | Signed content | Notes | | - | - | - | - | | `Entri-Signature` | SHA-256 | `sha256(webhook_id + client_secret)` | V1 — legacy | | `Entri-Signature-V2` | SHA-256 | `sha256(webhook_id + timestamp + client_secret)` | Replay-protected | | `Entri-Signature-V3` | HMAC-SHA256 (RFC 2104) | `hmac_sha256(key=client_secret, msg="{timestamp}.{raw_body}")` | **Recommended** — body-bound, replay-protected | | `Entri-Timestamp` | — | Unix timestamp (seconds) | Used by V2 and V3 | ### Signature V3 (Recommended) `Entri-Signature-V3` uses true **HMAC-SHA256** (RFC 2104). It provides two security improvements over V1 and V2: * **Body binding**: the HMAC is computed over the raw HTTP request body, so any tampering with the payload invalidates the signature. V1 and V2 sign only identifiers and timestamps, not the body contents. * **Replay protection**: the `Entri-Timestamp` value is embedded in the signed message, so a captured valid request cannot be replayed after 300 seconds. #### Header value format ``` Entri-Signature-V3: sha256= ``` #### How to verify 1. Read `Entri-Timestamp`. Reject the request if `abs(now - timestamp) > 300` seconds. 2. Build the signed payload by concatenating: the timestamp string, a literal `.`, then the **raw HTTP request body bytes**. 3. Compute `HMAC-SHA256` with your `client_secret` as the key over that payload. 4. Hex-encode the result and prepend `sha256=`. 5. Compare to the `Entri-Signature-V3` header value using a constant-time comparison. > [!WARNING] > > Always compute the HMAC over the **raw HTTP request body bytes**, before any JSON parsing. Do not parse the JSON body and re-serialize it — different libraries produce different byte sequences (whitespace, key ordering, number formatting), which will cause verification to fail. #### Verification examples ```python Python theme={"system"} import hmac import hashlib import time def verify_entri_signature_v3( raw_body: bytes, headers: dict, client_secret: str, max_age_seconds: int = 300, ) -> bool: timestamp = headers.get("Entri-Timestamp", "") signature = headers.get("Entri-Signature-V3", "") try: if abs(time.time() - int(timestamp)) > max_age_seconds: return False except (ValueError, TypeError): return False signed_payload = f"{timestamp}.".encode() + raw_body expected = "sha256=" + hmac.new( key=client_secret.encode(), msg=signed_payload, digestmod=hashlib.sha256, ).hexdigest() return hmac.compare_digest(expected, signature) ``` ```javascript Node.js theme={"system"} const crypto = require("crypto"); function verifyEntriSignatureV3(rawBody, headers, clientSecret, maxAgeSeconds = 300) { // Header names are lowercased by most Node.js HTTP frameworks const timestamp = headers["entri-timestamp"] ?? headers["Entri-Timestamp"] ?? ""; const signature = headers["entri-signature-v3"] ?? headers["Entri-Signature-V3"] ?? ""; const ts = parseInt(timestamp, 10); if (isNaN(ts) || Math.abs(Date.now() / 1000 - ts) > maxAgeSeconds) { return false; } // rawBody must be the original Buffer — do not pass a re-serialized JSON string const body = Buffer.isBuffer(rawBody) ? rawBody : Buffer.from(rawBody); const signedPayload = Buffer.concat([Buffer.from(`${timestamp}.`), body]); const expected = "sha256=" + crypto .createHmac("sha256", clientSecret) .update(signedPayload) .digest("hex"); try { return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature)); } catch { return false; } } ``` ```php PHP theme={"system"} $maxAgeSeconds) { return false; } // Concatenate timestamp, literal dot, and raw body — do not JSON-decode first $signedPayload = $timestamp . '.' . $rawBody; $expected = 'sha256=' . hash_hmac('sha256', $signedPayload, $clientSecret); return hash_equals($expected, $signature); } ``` > [!NOTE] > > `Entri-Signature` (V1) and `Entri-Signature-V2` continue to be sent alongside V3. Existing integrations that verify V1 or V2 will keep working without any changes. V3 is purely additive — add it to new integrations and migrate existing ones at your convenience. ### Signature V2 `Entri-Signature-V2` adds timestamp binding to V1, making each signature unique and time-bound. It is computed as `SHA256(webhook_id + timestamp + client_secret)` with no separators between the values. > [!NOTE] > > The V2 signature is a plain SHA-256 digest of `webhook_id ‖ timestamp ‖ client_secret`. It is **not** an RFC 2104 HMAC-SHA256. Placing the secret at the end of the input avoids the length-extension weakness of the `H(secret ‖ msg)` construction. #### How to verify 1. Read the webhook payload’s `id` field. 2. Read the `Entri-Timestamp` header (epoch seconds). 3. Build the canonical message: `webhook_id + timestamp + client_secret` (concatenated, no separators). 4. Compute `SHA256(canonical_message)` and hex-encode it. 5. Compare the result to the `Entri-Signature-V2` header using a constant-time comparison. 6. Enforce a freshness window (for example, 5 minutes) using the timestamp. #### Verification example (Python) ```python theme={"system"} import hashlib import hmac import time def verify_entri_signature_v2( webhook_id: str, client_secret: str, received_signature: str, received_timestamp: str, max_age_seconds: int = 300, ) -> bool: try: if int(time.time()) - int(received_timestamp) > max_age_seconds: return False expected = hashlib.sha256( webhook_id.encode() + received_timestamp.encode() + client_secret.encode() ).hexdigest() return hmac.compare_digest(expected, received_signature) except (ValueError, TypeError, AttributeError): return False ``` ### Signature V1 (Legacy) `Entri-Signature` is the original signature, computed as `SHA256(webhook_id + client_secret)`. It does not include a timestamp, so it provides no replay protection. #### Verification example (Python) ```python theme={"system"} import hashlib import hmac def verify_entri_signature_v1( webhook_id: str, client_secret: str, received_signature: str, ) -> bool: expected = hashlib.sha256( webhook_id.encode("utf-8") + client_secret.encode("utf-8") ).hexdigest() return hmac.compare_digest(expected, received_signature) ```