> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/reference/endpoints.md).

# Endpoints & custom URL

Production API host: **`api.dnotifier.com`** (HTTPS / WSS).

The SDK connects to DNotifier’s production API by default. You normally do **not** need to configure endpoints.

## What the SDK uses

| Purpose                                        | Transport            | When                                        |
| ---------------------------------------------- | -------------------- | ------------------------------------------- |
| Authentication                                 | HTTPS                | Every `connect()`                           |
| Realtime messaging                             | WebSocket (`wss://`) | `transport: "ws"`                           |
| RPC-style APIs (AI, RAG, HTTP send, workflows) | HTTPS                | `transport: "http"` and AI/document methods |

Optional session logging (`logs: true`) and workflow observability (`observability: true`) also use the production API host. Exact paths are handled inside the SDK.

## Custom WebSocket URL

Override the WebSocket URL only when DNotifier support has given you a dedicated endpoint:

{% tabs %}
{% tab title="JavaScript" %}

```js
const notifier = new DNotifier({
  appId: "your-app-id",
  secret: "your-app-secret",
  transport: "ws",
  userId: "user-123",
  url: "wss://YOUR_HOST", // only if provided by DNotifier
  WebSocketImpl: WebSocket,
});
```

{% endtab %}

{% tab title="Dart" %}

```dart
final notifier = DNotifier(
  appId: appId,
  secret: secret,
  transport: 'ws',
  userId: userId,
  url: 'wss://YOUR_HOST', // only if provided by DNotifier
);
```

{% endtab %}

{% tab title="Python" %}

```python
notifier = DNotifier(
    app_id=app_id,
    secret=secret,
    transport="ws",
    user_id=user_id,
    url="wss://YOUR_HOST",  # only if provided by DNotifier
)
```

{% endtab %}
{% endtabs %}

Auth and HTTP RPC hosts are fixed in the published SDK. Contact DNotifier if you need a custom deployment.

## Firewall / CSP

Allow outbound TLS to the production host:

* `https://api.dnotifier.com`
* `wss://api.dnotifier.com`

## See also

* [Connection & auth](/product-docs/reference/connection-auth.md)
* [Configuration](/product-docs/reference/configuration.md)
