> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/notifications/emails/get-email-campaign-messages.md).

# Get Email Campaign Messages

Notifications is Norbix's unified Email + Push + SMS messaging system — one template engine and data-binding context across all three channels, for both transactional sends and high-volume campaigns. This method returns the email campaign messages available in your project.

This method is on the **Hub** surface (`norbix.hub.notifications`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

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

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.notifications.getEmailCampaignMessages({
  campaignId: 'cmp_4kX9mQvR2tYw7ZbC1dFgHj',
  campaignBatchId: 'campaignbatch_4kX9mQvR2tYw7ZbC1dFgHj',
  databaseIntegrationId: 'int_4kX9mQvR2tYw7ZbC1dFgHj',
  startingAfter: 'cursor_next',
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Notifications.GetEmailCampaignMessagesAsync(new GetEmailCampaignMessagesRequest
{
    CampaignId = "cmp_4kX9mQvR2tYw7ZbC1dFgHj",
    CampaignBatchId = "campaignbatch_4kX9mQvR2tYw7ZbC1dFgHj",
    DatabaseIntegrationId = "int_4kX9mQvR2tYw7ZbC1dFgHj",
    StartingAfter = "cursor_next",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.notifications.get_email_campaign_messages(
    campaignId="cmp_4kX9mQvR2tYw7ZbC1dFgHj",
    campaignBatchId="campaignbatch_4kX9mQvR2tYw7ZbC1dFgHj",
    databaseIntegrationId="int_4kX9mQvR2tYw7ZbC1dFgHj",
    startingAfter="cursor_next",
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Notifications.GetEmailCampaignMessages(ctx, "cmp_4kX9mQvR2tYw7ZbC1dFgHj", map[string]any{
	"campaignBatchId": "campaignbatch_4kX9mQvR2tYw7ZbC1dFgHj",
	"databaseIntegrationId": "int_4kX9mQvR2tYw7ZbC1dFgHj",
	"startingAfter": "cursor_next",
}, &result)
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.hub.notifications.getEmailCampaignMessages([
    "campaignId": "cmp_4kX9mQvR2tYw7ZbC1dFgHj",
    "campaignBatchId": "campaignbatch_4kX9mQvR2tYw7ZbC1dFgHj",
    "databaseIntegrationId": "int_4kX9mQvR2tYw7ZbC1dFgHj",
    "startingAfter": "cursor_next",
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.notifications.getEmailCampaignMessages(mapOf(
    "campaignId" to "cmp_4kX9mQvR2tYw7ZbC1dFgHj",
    "campaignBatchId" to "campaignbatch_4kX9mQvR2tYw7ZbC1dFgHj",
    "databaseIntegrationId" to "int_4kX9mQvR2tYw7ZbC1dFgHj",
    "startingAfter" to "cursor_next",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub email campaign messages get --campaignId cmp_4kX9mQvR2tYw7ZbC1dFgHj --campaignBatchId campaignbatch_4kX9mQvR2tYw7ZbC1dFgHj --databaseIntegrationId int_4kX9mQvR2tYw7ZbC1dFgHj --startingAfter cursor_next
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
Dart / Flutter examples for this page are still in the works — we are verifying the exact SDK shapes and will add them shortly. The method itself is available in every Norbix SDK.
{% endhint %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Notifications → Emails](/norbix-cloud/notifications.md).

## API reference

Full request and response for this endpoint: [Get Email Campaign Messages](/api-reference/notifications/emails/get-email-campaign-messages.md).
