Java SDK

Setup & Initialization

  1. Add the Pingram dependency (Maven). Use the latest version on Maven Central:
<dependency>
    <groupId>io.pingram</groupId>
    <artifactId>pingram</artifactId>
    <version>1.0.0</version>
</dependency>

Or with Gradle:

implementation 'io.pingram:pingram:1.0.0'
  1. Create the Pingram client with your API key:
import io.pingram.Pingram;

Pingram client = new Pingram("YOUR_API_KEY");
NameTypeDescription
apiKey*stringYour Pingram API key. You can get it from your dashboard under Environments.
baseUrlstringOptional. Use new Pingram(apiKey, "https://api.eu.pingram.io") or new Pingram(apiKey, Pingram.Region.EU) for EU/CA.

* required

Region example:

// EU or CA region
Pingram client = new Pingram("YOUR_API_KEY", Pingram.Region.EU);

Send

send()

Send a notification

SenderPostBody senderPostBody = new SenderPostBody(); // SenderPostBody | 
try {
    SenderPostResponse result = client.send(senderPostBody);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#send: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes

Request Body Properties

NameTypeDescription
typestring
toobject
to.idstring
to.emailstring
to.numberstring
to.pushTokensobject[]
to.pushTokens[].type”FCM” | “APN”(required)
to.pushTokens[].tokenstring(required)
to.pushTokens[].deviceobject(required)
to.pushTokens[].device.app_idstring
to.pushTokens[].device.ad_idstring
to.pushTokens[].device.device_idstring(required)
to.pushTokens[].device.platformstring
to.pushTokens[].device.manufacturerstring
to.pushTokens[].device.modelstring
to.pushTokens[].environmentstringused by APN to differentiate between sandbox and production builds (sandbox/undefined or production)
to.webPushTokensobject[]
to.webPushTokens[].subobject(required) Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify’ing a PushSubscription in the browser.
to.webPushTokens[].sub.endpointstring(required)
to.webPushTokens[].sub.keysobject(required)
to.webPushTokens[].sub.keys.p256dhstring(required)
to.webPushTokens[].sub.keys.authstring(required)
to.timezonestring
to.slackChannelstringThe destination channel of slack notifications sent to this user. Can be either of the following: - Channel name, e.g. “test” - Channel name with # prefix, e.g. “#test” - Channel ID, e.g. “C1234567890” - User ID for DM, e.g. “U1234567890” - Username with @ prefix, e.g. “@test”
to.slackTokenobject
to.slackToken.access_tokenstring
to.slackToken.app_idstring
to.slackToken.authed_userobject
to.slackToken.authed_user.access_tokenstring
to.slackToken.authed_user.expires_innumber
to.slackToken.authed_user.idstring
to.slackToken.authed_user.refresh_tokenstring
to.slackToken.authed_user.scopestring
to.slackToken.authed_user.token_typestring
to.slackToken.bot_user_idstring
to.slackToken.enterpriseobject
to.slackToken.enterprise.idstring
to.slackToken.enterprise.namestring
to.slackToken.errorstring
to.slackToken.expires_innumber
to.slackToken.incoming_webhookobject
to.slackToken.incoming_webhook.channelstring
to.slackToken.incoming_webhook.channel_idstring
to.slackToken.incoming_webhook.configuration_urlstring
to.slackToken.incoming_webhook.urlstring
to.slackToken.is_enterprise_installboolean
to.slackToken.neededstring
to.slackToken.okboolean(required)
to.slackToken.providedstring
to.slackToken.refresh_tokenstring
to.slackToken.scopestring
to.slackToken.teamobject
to.slackToken.team.idstring
to.slackToken.team.namestring
to.slackToken.token_typestring
to.slackToken.warningstring
to.slackToken.response_metadataobject
to.slackToken.response_metadata.warningsstring[]
to.slackToken.response_metadata.next_cursorstring
to.slackToken.response_metadata.scopesstring[]
to.slackToken.response_metadata.acceptedScopesstring[]
to.slackToken.response_metadata.retryAfternumber
to.slackToken.response_metadata.messagesstring[]
to.lastSeenTimestring
to.updatedAtstring
to.createdAtstring
to.emailSuppressionStatusobject
to.emailSuppressionStatus.reason”Bounce” | “Complaint”(required)
to.emailSuppressionStatus.detailsobject(required)
forceChannels(“EMAIL” | “INAPP_WEB” | “SMS” | “CALL” | “PUSH” | “WEB_PUSH” | “SLACK”)[]
parametersRecord<string, any>
secondaryIdstring
templateIdstring
subNotificationIdstring
optionsobject
options.emailobject
options.email.replyToAddressesstring[]
options.email.ccAddressesstring[]
options.email.bccAddressesstring[]
options.email.fromAddressstring
options.email.fromNamestring
options.email.attachments(object | object)[]
options.email.conditionstring
options.apnobject
options.apn.expirynumber
options.apn.prioritynumber
options.apn.collapseIdstring
options.apn.threadIdstring
options.apn.badgenumber
options.apn.soundstring
options.apn.contentAvailableboolean
options.fcmobject
options.fcm.androidobject
options.fcm.android.collapseKeystring
options.fcm.android.priority”high” | “normal”
options.fcm.android.ttlnumber
options.fcm.android.restrictedPackageNamestring
schedulestring
emailobject
email.subjectstring(required)
email.htmlstring(required)
email.previewTextstring
email.senderNamestring
email.senderEmailstring
inappobject
inapp.titlestring(required)
inapp.urlstring
inapp.imagestring
smsobject
sms.messagestring
sms.autoReplyobject
sms.autoReply.messagestring(required)
callobject
call.messagestring(required)
web_pushobject
web_push.titlestring(required)
web_push.messagestring(required)
web_push.iconstring
web_push.urlstring
mobile_pushobject
mobile_push.titlestring(required)
mobile_push.messagestring(required)
slackobject
slack.textstring(required)
slack.blocksRecord<string, any>[]
slack.usernamestring
slack.iconstring
slack.thread_tsstring
slack.reply_broadcastboolean
slack.parse”full” | “none”
slack.link_namesboolean
slack.mrkdwnboolean
slack.unfurl_linksboolean
slack.unfurl_mediaboolean
slack.metadataobjectSlack message metadata with optional work object entities. Combines standard Slack message metadata fields with an array of entity objects.
slack.metadata.entitiesobject[]An array of work object entities.
slack.metadata.entities[].entity_typestring(required) Entity type (e.g., ‘slack#/entities/task’, ‘slack#/entities/file’).
slack.metadata.entities[].entity_payloadRecord<string, any>(required) Schema for the given entity type.
slack.metadata.entities[].external_refobject(required) Reference used to identify an entity within the developer’s system.
slack.metadata.entities[].external_ref.idstring(required)
slack.metadata.entities[].external_ref.typestring
slack.metadata.entities[].urlstring(required) URL used to identify an entity within the developer’s system.
slack.metadata.entities[].app_unfurl_urlstringThe exact URL posted in the source message. Required in metadata passed to chat.unfurl.
slack.metadata.event_typestringA human readable alphanumeric string representing your application’s metadata event.
slack.metadata.event_payloadRecord<string, any>A free-form object containing whatever data your application wishes to attach to messages.

Domains

domainsAddDomain()

Request to verify a new sender domain

PostSendersRequestBody postSendersRequestBody = new PostSendersRequestBody(); // PostSendersRequestBody | 
try {
    List<GetSendersResponseInner> result = client.getDomains().domainsAddDomain(postSendersRequestBody);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DomainsApi#domainsAddDomain: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes

Request Body Properties

NameTypeDescription
senderstring(required)

domainsDeleteDomain()

Delete a sender domain or email address

String sender = "sender_example"; // String | Sender domain or email address (URL encoded)
try {
    SuccessResponse result = client.getDomains().domainsDeleteDomain(sender);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DomainsApi#domainsDeleteDomain: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
senderStringSender domain or email address (URL encoded)

domainsListDomains()

Get all sender domains configured for the account

try {
    List<GetSendersResponseInner> result = client.getDomains().domainsListDomains();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DomainsApi#domainsListDomains: " + e.getMessage());
}

Parameters

This endpoint does not need any parameter.

Environments

environmentsCreateEnvironment()

Create a new environment for the account

EnvironmentCreateRequest environmentCreateRequest = new EnvironmentCreateRequest(); // EnvironmentCreateRequest | 
try {
    Environment result = client.getEnvironments().environmentsCreateEnvironment(environmentCreateRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling EnvironmentsApi#environmentsCreateEnvironment: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes

Request Body Properties

NameTypeDescription
titlestring(required)

environmentsListEnvironments()

Get all environments for the authenticated account

try {
    List<GetEnvironmentsResponseInner> result = client.getEnvironments().environmentsListEnvironments();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling EnvironmentsApi#environmentsListEnvironments: " + e.getMessage());
}

Parameters

This endpoint does not need any parameter.

environmentsUpdateEnvironment()

Update environment settings (title, secret, disable sending, secure mode)

String clientId = "clientId_example"; // String | Environment client ID
EnvironmentPatchRequest environmentPatchRequest = new EnvironmentPatchRequest(); // EnvironmentPatchRequest | 
try {
    Environment result = client.getEnvironments().environmentsUpdateEnvironment(clientId, environmentPatchRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling EnvironmentsApi#environmentsUpdateEnvironment: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
clientIdStringEnvironment client ID
environmentPatchRequestEnvironmentPatchRequest

Request Body Properties

NameTypeDescription
resetSecretboolean
disableSending(“EMAIL” | “INAPP_WEB” | “SMS” | “CALL” | “PUSH” | “WEB_PUSH” | “SLACK”)[]
titlestring
secureModeboolean

Logs

logsGetLogRetention()

Get log retention period in days for the account

try {
    LogsRetentionResponse result = client.getLogs().logsGetLogRetention();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LogsApi#logsGetLogRetention: " + e.getMessage());
}

Parameters

This endpoint does not need any parameter.

logsGetLogs()

List logs for the authenticated account

BigDecimal limit = new BigDecimal(78); // BigDecimal | Maximum number of logs to return (default
String cursor = "cursor_example"; // String | Pagination cursor for next page
try {
    GetLogsResponse result = client.getLogs().logsGetLogs(limit, cursor);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LogsApi#logsGetLogs: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
limitBigDecimalMaximum number of logs to return (default[optional]
cursorStringPagination cursor for next page[optional]

logsGetLogsByTrackingIds()

Get logs by tracking IDs (comma-separated, max 25 IDs)

String trackingIds = "trackingIds_example"; // String | Comma-separated tracking IDs (URL encoded)
try {
    LogsGetResponse result = client.getLogs().logsGetLogsByTrackingIds(trackingIds);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LogsApi#logsGetLogsByTrackingIds: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
trackingIdsStringComma-separated tracking IDs (URL encoded)

logsGetLogsQueryResult()

Get results from a query ID

String queryId = "queryId_example"; // String | Query ID
try {
    LogsQueryResultResponse result = client.getLogs().logsGetLogsQueryResult(queryId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LogsApi#logsGetLogsQueryResult: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
queryIdStringQuery ID

logsStartLogsQuery()

Start a log query and return query ID for asynchronous log searching

LogQueryPostBody logQueryPostBody = new LogQueryPostBody(); // LogQueryPostBody | 
try {
    LogsQueryResponse result = client.getLogs().logsStartLogsQuery(logQueryPostBody);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LogsApi#logsStartLogsQuery: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes

Request Body Properties

NameTypeDescription
dateRangeFilternumber[]A tuple of [startTime, endTime] for the date range filter, each representing a unix timestamp.
userFilterstring
envIdFilterstring[]
statusFilterstring
channelFilter(“email” | “inapp” | “sms” | “call” | “web_push” | “mobile_push” | “slack”)[]
notificationFilterstring[]

logsTailLogs()

Get last 100 logs from the stream

try {
    LogsTailResponse result = client.getLogs().logsTailLogs();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LogsApi#logsTailLogs: " + e.getMessage());
}

Parameters

This endpoint does not need any parameter.

Sender

senderDeleteSchedule()

Delete (unschedule) an already scheduled notification

String trackingId = "trackingId_example"; // String | The tracking ID of the scheduled notification
try {
    MessageResponse result = client.getSender().senderDeleteSchedule(trackingId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling SenderApi#senderDeleteSchedule: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
trackingIdStringThe tracking ID of the scheduled notification

senderTestEmail()

Test the emailer with a sample email

PostEmailTestRequest postEmailTestRequest = new PostEmailTestRequest(); // PostEmailTestRequest | 
try {
    PostEmailTestResponse result = client.getSender().senderTestEmail(postEmailTestRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling SenderApi#senderTestEmail: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes

Request Body Properties

NameTypeDescription
notificationIdstring(required)
tostring(required)
subjectstring(required)
htmlstring(required)
fromAddressstring(required)
fromNamestring(required)
previewTextstring

senderUpdateSchedule()

Update the body or schedule of an already scheduled notification.

String trackingId = "trackingId_example"; // String | The tracking ID of the scheduled notification
SenderPostBody senderPostBody = new SenderPostBody(); // SenderPostBody | 
try {
    MessageResponse result = client.getSender().senderUpdateSchedule(trackingId, senderPostBody);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling SenderApi#senderUpdateSchedule: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
trackingIdStringThe tracking ID of the scheduled notification
senderPostBodySenderPostBody

Request Body Properties

NameTypeDescription
typestring
toobject
to.idstring
to.emailstring
to.numberstring
to.pushTokensobject[]
to.pushTokens[].type”FCM” | “APN”(required)
to.pushTokens[].tokenstring(required)
to.pushTokens[].deviceobject(required)
to.pushTokens[].device.app_idstring
to.pushTokens[].device.ad_idstring
to.pushTokens[].device.device_idstring(required)
to.pushTokens[].device.platformstring
to.pushTokens[].device.manufacturerstring
to.pushTokens[].device.modelstring
to.pushTokens[].environmentstringused by APN to differentiate between sandbox and production builds (sandbox/undefined or production)
to.webPushTokensobject[]
to.webPushTokens[].subobject(required) Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify’ing a PushSubscription in the browser.
to.webPushTokens[].sub.endpointstring(required)
to.webPushTokens[].sub.keysobject(required)
to.webPushTokens[].sub.keys.p256dhstring(required)
to.webPushTokens[].sub.keys.authstring(required)
to.timezonestring
to.slackChannelstringThe destination channel of slack notifications sent to this user. Can be either of the following: - Channel name, e.g. “test” - Channel name with # prefix, e.g. “#test” - Channel ID, e.g. “C1234567890” - User ID for DM, e.g. “U1234567890” - Username with @ prefix, e.g. “@test”
to.slackTokenobject
to.slackToken.access_tokenstring
to.slackToken.app_idstring
to.slackToken.authed_userobject
to.slackToken.authed_user.access_tokenstring
to.slackToken.authed_user.expires_innumber
to.slackToken.authed_user.idstring
to.slackToken.authed_user.refresh_tokenstring
to.slackToken.authed_user.scopestring
to.slackToken.authed_user.token_typestring
to.slackToken.bot_user_idstring
to.slackToken.enterpriseobject
to.slackToken.enterprise.idstring
to.slackToken.enterprise.namestring
to.slackToken.errorstring
to.slackToken.expires_innumber
to.slackToken.incoming_webhookobject
to.slackToken.incoming_webhook.channelstring
to.slackToken.incoming_webhook.channel_idstring
to.slackToken.incoming_webhook.configuration_urlstring
to.slackToken.incoming_webhook.urlstring
to.slackToken.is_enterprise_installboolean
to.slackToken.neededstring
to.slackToken.okboolean(required)
to.slackToken.providedstring
to.slackToken.refresh_tokenstring
to.slackToken.scopestring
to.slackToken.teamobject
to.slackToken.team.idstring
to.slackToken.team.namestring
to.slackToken.token_typestring
to.slackToken.warningstring
to.slackToken.response_metadataobject
to.slackToken.response_metadata.warningsstring[]
to.slackToken.response_metadata.next_cursorstring
to.slackToken.response_metadata.scopesstring[]
to.slackToken.response_metadata.acceptedScopesstring[]
to.slackToken.response_metadata.retryAfternumber
to.slackToken.response_metadata.messagesstring[]
to.lastSeenTimestring
to.updatedAtstring
to.createdAtstring
to.emailSuppressionStatusobject
to.emailSuppressionStatus.reason”Bounce” | “Complaint”(required)
to.emailSuppressionStatus.detailsobject(required)
forceChannels(“EMAIL” | “INAPP_WEB” | “SMS” | “CALL” | “PUSH” | “WEB_PUSH” | “SLACK”)[]
parametersRecord<string, any>
secondaryIdstring
templateIdstring
subNotificationIdstring
optionsobject
options.emailobject
options.email.replyToAddressesstring[]
options.email.ccAddressesstring[]
options.email.bccAddressesstring[]
options.email.fromAddressstring
options.email.fromNamestring
options.email.attachments(object | object)[]
options.email.conditionstring
options.apnobject
options.apn.expirynumber
options.apn.prioritynumber
options.apn.collapseIdstring
options.apn.threadIdstring
options.apn.badgenumber
options.apn.soundstring
options.apn.contentAvailableboolean
options.fcmobject
options.fcm.androidobject
options.fcm.android.collapseKeystring
options.fcm.android.priority”high” | “normal”
options.fcm.android.ttlnumber
options.fcm.android.restrictedPackageNamestring
schedulestring
emailobject
email.subjectstring(required)
email.htmlstring(required)
email.previewTextstring
email.senderNamestring
email.senderEmailstring
inappobject
inapp.titlestring(required)
inapp.urlstring
inapp.imagestring
smsobject
sms.messagestring
sms.autoReplyobject
sms.autoReply.messagestring(required)
callobject
call.messagestring(required)
web_pushobject
web_push.titlestring(required)
web_push.messagestring(required)
web_push.iconstring
web_push.urlstring
mobile_pushobject
mobile_push.titlestring(required)
mobile_push.messagestring(required)
slackobject
slack.textstring(required)
slack.blocksRecord<string, any>[]
slack.usernamestring
slack.iconstring
slack.thread_tsstring
slack.reply_broadcastboolean
slack.parse”full” | “none”
slack.link_namesboolean
slack.mrkdwnboolean
slack.unfurl_linksboolean
slack.unfurl_mediaboolean
slack.metadataobjectSlack message metadata with optional work object entities. Combines standard Slack message metadata fields with an array of entity objects.
slack.metadata.entitiesobject[]An array of work object entities.
slack.metadata.entities[].entity_typestring(required) Entity type (e.g., ‘slack#/entities/task’, ‘slack#/entities/file’).
slack.metadata.entities[].entity_payloadRecord<string, any>(required) Schema for the given entity type.
slack.metadata.entities[].external_refobject(required) Reference used to identify an entity within the developer’s system.
slack.metadata.entities[].external_ref.idstring(required)
slack.metadata.entities[].external_ref.typestring
slack.metadata.entities[].urlstring(required) URL used to identify an entity within the developer’s system.
slack.metadata.entities[].app_unfurl_urlstringThe exact URL posted in the source message. Required in metadata passed to chat.unfurl.
slack.metadata.event_typestringA human readable alphanumeric string representing your application’s metadata event.
slack.metadata.event_payloadRecord<string, any>A free-form object containing whatever data your application wishes to attach to messages.

Templates

templatesCreateTemplate()

Create a new template for a notification

String notificationId = "notificationId_example"; // String | Notification ID
String channel = "channel_example"; // String | Channel type
TemplatePostRequest templatePostRequest = new TemplatePostRequest(); // TemplatePostRequest | 
try {
    Template result = client.getTemplates().templatesCreateTemplate(notificationId, channel, templatePostRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#templatesCreateTemplate: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringNotification ID
channelStringChannel type
templatePostRequestTemplatePostRequest

Request Body Properties

NameTypeDescription
templateIdstring(required) Unique ID for this template within the notification and channel. Required.
htmlstringHTML body of the email.
previewTextstringPreview text (e.g. for inbox).
internalstringInternal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field.
subjectstringEmail subject line.
senderNamestringSender display name.
senderEmailstringSender email address.
migrationstringMigration metadata (e.g. from template migration).
titlestringNotification title (in-app).
redirectURLstringURL to open when the user taps the notification.
imageURLstringImage URL shown in the in-app notification.
instantobjectCopy for instant (real-time) delivery.
instant.titlestring
instant.redirectURLstring
instant.imageURLstring(required)
batchobjectCopy for batch delivery.
batch.titlestring(required)
batch.redirectURLstring(required)
batch.imageURLstring(required)
textstringMessage text (SMS or call).
messagestringPush notification body text. (title is shared with INAPP_WEB above.)
iconstringWeb push: icon URL. Slack: bot icon (emoji or URL).
urlstringWeb push: URL to open when the notification is clicked.
blocksRecord<string, any>[]Slack message blocks (optional).
usernamestringSlack bot username.

templatesDeleteTemplate()

Delete a template

String notificationId = "notificationId_example"; // String | Notification ID
String channel = "channel_example"; // String | Channel type
String templateId = "templateId_example"; // String | Template ID
try {
    client.getTemplates().templatesDeleteTemplate(notificationId, channel, templateId);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#templatesDeleteTemplate: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringNotification ID
channelStringChannel type
templateIdStringTemplate ID

templatesGetTemplate()

Get a single template by ID

String notificationId = "notificationId_example"; // String | Notification ID
String channel = "channel_example"; // String | Channel type
String templateId = "templateId_example"; // String | Template ID
try {
    GetTemplatesResponse result = client.getTemplates().templatesGetTemplate(notificationId, channel, templateId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#templatesGetTemplate: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringNotification ID
channelStringChannel type
templateIdStringTemplate ID

templatesInitiateMigration()

Initiate AI-powered template migration from complex to simple HTML

String notificationId = "notificationId_example"; // String | Notification ID
String channel = "channel_example"; // String | Channel type
String templateId = "templateId_example"; // String | Template ID
try {
    Template result = client.getTemplates().templatesInitiateMigration(notificationId, channel, templateId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#templatesInitiateMigration: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringNotification ID
channelStringChannel type
templateIdStringTemplate ID

templatesListTemplates()

List all templates for a notification and channel

String notificationId = "notificationId_example"; // String | Notification ID
String channel = "channel_example"; // String | Channel type
try {
    List<GetTemplatesListResponseInner> result = client.getTemplates().templatesListTemplates(notificationId, channel);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#templatesListTemplates: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringNotification ID
channelStringChannel type

templatesSetDefaultTemplate()

Set a template as default for specific delivery modes

String notificationId = "notificationId_example"; // String | Notification ID
String channel = "channel_example"; // String | Channel type
SetDefaultTemplateRequest setDefaultTemplateRequest = new SetDefaultTemplateRequest(); // SetDefaultTemplateRequest | 
try {
    Template result = client.getTemplates().templatesSetDefaultTemplate(notificationId, channel, setDefaultTemplateRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#templatesSetDefaultTemplate: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringNotification ID
channelStringChannel type
setDefaultTemplateRequestSetDefaultTemplateRequest

Request Body Properties

NameTypeDescription
templateIdstring(required)
modes(“instant” | “hourly” | “daily” | “weekly” | “monthly”)[](required)

templatesUpdateTemplate()

Update a template’s properties

String notificationId = "notificationId_example"; // String | Notification ID
String channel = "channel_example"; // String | Channel type
String templateId = "templateId_example"; // String | Template ID
TemplatePatchRequest templatePatchRequest = new TemplatePatchRequest(); // TemplatePatchRequest | 
try {
    Template result = client.getTemplates().templatesUpdateTemplate(notificationId, channel, templateId, templatePatchRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TemplatesApi#templatesUpdateTemplate: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringNotification ID
channelStringChannel type
templateIdStringTemplate ID
templatePatchRequestTemplatePatchRequest

Types

typesCreateNotificationType()

Create a new notification

NotificationCreateRequest notificationCreateRequest = new NotificationCreateRequest(); // NotificationCreateRequest | 
try {
    Notification result = client.getTypes().typesCreateNotificationType(notificationCreateRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TypesApi#typesCreateNotificationType: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes

Request Body Properties

NameTypeDescription
notificationIdstring(required)
titlestring(required)
channelsstring[](required)
optionsobject
options.EMAILobject
options.EMAIL.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.EMAIL.offobject
options.EMAIL.off.enabledboolean(required)
options.EMAIL.instantobject
options.EMAIL.instant.enabledboolean(required)
options.EMAIL.hourlyobject
options.EMAIL.hourly.enabledboolean(required)
options.EMAIL.dailyobject
options.EMAIL.daily.enabledboolean(required)
options.EMAIL.daily.hourstring
options.EMAIL.weeklyobject
options.EMAIL.weekly.enabledboolean(required)
options.EMAIL.weekly.hourstring
options.EMAIL.weekly.daystring
options.EMAIL.monthlyobject
options.EMAIL.monthly.enabledboolean(required)
options.EMAIL.monthly.hourstring
options.EMAIL.monthly.date”first” | “last”
options.INAPP_WEBobject
options.INAPP_WEB.defaultDeliveryOption”off” | “instant”(required)
options.INAPP_WEB.offobject
options.INAPP_WEB.off.enabledboolean(required)
options.INAPP_WEB.instantobject
options.INAPP_WEB.instant.enabledboolean(required)
options.INAPP_WEB.instant.batchingboolean
options.INAPP_WEB.instant.batchingKeystring
options.INAPP_WEB.instant.batchingWindownumber
options.SMSobject
options.SMS.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.SMS.offobject
options.SMS.off.enabledboolean(required)
options.SMS.instantobject
options.SMS.instant.enabledboolean(required)
options.SMS.hourlyobject
options.SMS.hourly.enabledboolean(required)
options.SMS.dailyobject
options.SMS.daily.enabledboolean(required)
options.SMS.daily.hourstring
options.SMS.weeklyobject
options.SMS.weekly.enabledboolean(required)
options.SMS.weekly.hourstring
options.SMS.weekly.daystring
options.SMS.monthlyobject
options.SMS.monthly.enabledboolean(required)
options.SMS.monthly.hourstring
options.SMS.monthly.date”first” | “last”
options.CALLobject
options.CALL.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.CALL.offobject
options.CALL.off.enabledboolean(required)
options.CALL.instantobject
options.CALL.instant.enabledboolean(required)
options.CALL.hourlyobject
options.CALL.hourly.enabledboolean(required)
options.CALL.dailyobject
options.CALL.daily.enabledboolean(required)
options.CALL.daily.hourstring
options.CALL.weeklyobject
options.CALL.weekly.enabledboolean(required)
options.CALL.weekly.hourstring
options.CALL.weekly.daystring
options.CALL.monthlyobject
options.CALL.monthly.enabledboolean(required)
options.CALL.monthly.hourstring
options.CALL.monthly.date”first” | “last”
options.PUSHobject
options.PUSH.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.PUSH.offobject
options.PUSH.off.enabledboolean(required)
options.PUSH.instantobject
options.PUSH.instant.enabledboolean(required)
options.PUSH.hourlyobject
options.PUSH.hourly.enabledboolean(required)
options.PUSH.dailyobject
options.PUSH.daily.enabledboolean(required)
options.PUSH.daily.hourstring
options.PUSH.weeklyobject
options.PUSH.weekly.enabledboolean(required)
options.PUSH.weekly.hourstring
options.PUSH.weekly.daystring
options.PUSH.monthlyobject
options.PUSH.monthly.enabledboolean(required)
options.PUSH.monthly.hourstring
options.PUSH.monthly.date”first” | “last”
options.WEB_PUSHobject
options.WEB_PUSH.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.WEB_PUSH.offobject
options.WEB_PUSH.off.enabledboolean(required)
options.WEB_PUSH.instantobject
options.WEB_PUSH.instant.enabledboolean(required)
options.WEB_PUSH.hourlyobject
options.WEB_PUSH.hourly.enabledboolean(required)
options.WEB_PUSH.dailyobject
options.WEB_PUSH.daily.enabledboolean(required)
options.WEB_PUSH.daily.hourstring
options.WEB_PUSH.weeklyobject
options.WEB_PUSH.weekly.enabledboolean(required)
options.WEB_PUSH.weekly.hourstring
options.WEB_PUSH.weekly.daystring
options.WEB_PUSH.monthlyobject
options.WEB_PUSH.monthly.enabledboolean(required)
options.WEB_PUSH.monthly.hourstring
options.WEB_PUSH.monthly.date”first” | “last”
options.SLACKobject
options.SLACK.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.SLACK.offobject
options.SLACK.off.enabledboolean(required)
options.SLACK.instantobject
options.SLACK.instant.enabledboolean(required)
options.SLACK.hourlyobject
options.SLACK.hourly.enabledboolean(required)
options.SLACK.dailyobject
options.SLACK.daily.enabledboolean(required)
options.SLACK.daily.hourstring
options.SLACK.weeklyobject
options.SLACK.weekly.enabledboolean(required)
options.SLACK.weekly.hourstring
options.SLACK.weekly.daystring
options.SLACK.monthlyobject
options.SLACK.monthly.enabledboolean(required)
options.SLACK.monthly.hourstring
options.SLACK.monthly.date”first” | “last”

typesDeleteNotificationType()

Delete a notification

String notificationId = "notificationId_example"; // String | The notification ID
try {
    client.getTypes().typesDeleteNotificationType(notificationId);
} catch (ApiException e) {
    System.err.println("Exception when calling TypesApi#typesDeleteNotificationType: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringThe notification ID

typesGetNotificationType()

Get a specific notification by ID

String notificationId = "notificationId_example"; // String | The notification ID
try {
    List<GetNotificationsResponseInner> result = client.getTypes().typesGetNotificationType(notificationId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TypesApi#typesGetNotificationType: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringThe notification ID

typesListNotificationTypes()

Get all notifications for an account with their templates

try {
    List<GetNotificationsResponseInner> result = client.getTypes().typesListNotificationTypes();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TypesApi#typesListNotificationTypes: " + e.getMessage());
}

Parameters

This endpoint does not need any parameter.

typesUpdateNotificationType()

Update a notification’s settings

String notificationId = "notificationId_example"; // String | The notification ID
NotificationPatchRequest notificationPatchRequest = new NotificationPatchRequest(); // NotificationPatchRequest | 
try {
    Notification result = client.getTypes().typesUpdateNotificationType(notificationId, notificationPatchRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling TypesApi#typesUpdateNotificationType: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
notificationIdStringThe notification ID
notificationPatchRequestNotificationPatchRequest

Request Body Properties

NameTypeDescription
titlestring
channels(“EMAIL” | “INAPP_WEB” | “SMS” | “CALL” | “PUSH” | “WEB_PUSH” | “SLACK”)[]
enabledboolean
deduplicationobject
deduplication.durationnumber(required)
throttlingobject
throttling.maxnumber(required)
throttling.periodnumber(required)
throttling.unit”seconds” | “minutes” | “hours” | “days” | “months” | “years”(required)
throttling.foreverboolean(required)
throttling.scope(“userId” | “notificationId”)[](required)
retentionnumber
optionsobject
options.EMAILobject
options.EMAIL.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.EMAIL.offobject
options.EMAIL.off.enabledboolean(required)
options.EMAIL.instantobject
options.EMAIL.instant.enabledboolean(required)
options.EMAIL.hourlyobject
options.EMAIL.hourly.enabledboolean(required)
options.EMAIL.dailyobject
options.EMAIL.daily.enabledboolean(required)
options.EMAIL.daily.hourstring
options.EMAIL.weeklyobject
options.EMAIL.weekly.enabledboolean(required)
options.EMAIL.weekly.hourstring
options.EMAIL.weekly.daystring
options.EMAIL.monthlyobject
options.EMAIL.monthly.enabledboolean(required)
options.EMAIL.monthly.hourstring
options.EMAIL.monthly.date”first” | “last”
options.INAPP_WEBobject
options.INAPP_WEB.defaultDeliveryOption”off” | “instant”(required)
options.INAPP_WEB.offobject
options.INAPP_WEB.off.enabledboolean(required)
options.INAPP_WEB.instantobject
options.INAPP_WEB.instant.enabledboolean(required)
options.INAPP_WEB.instant.batchingboolean
options.INAPP_WEB.instant.batchingKeystring
options.INAPP_WEB.instant.batchingWindownumber
options.SMSobject
options.SMS.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.SMS.offobject
options.SMS.off.enabledboolean(required)
options.SMS.instantobject
options.SMS.instant.enabledboolean(required)
options.SMS.hourlyobject
options.SMS.hourly.enabledboolean(required)
options.SMS.dailyobject
options.SMS.daily.enabledboolean(required)
options.SMS.daily.hourstring
options.SMS.weeklyobject
options.SMS.weekly.enabledboolean(required)
options.SMS.weekly.hourstring
options.SMS.weekly.daystring
options.SMS.monthlyobject
options.SMS.monthly.enabledboolean(required)
options.SMS.monthly.hourstring
options.SMS.monthly.date”first” | “last”
options.CALLobject
options.CALL.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.CALL.offobject
options.CALL.off.enabledboolean(required)
options.CALL.instantobject
options.CALL.instant.enabledboolean(required)
options.CALL.hourlyobject
options.CALL.hourly.enabledboolean(required)
options.CALL.dailyobject
options.CALL.daily.enabledboolean(required)
options.CALL.daily.hourstring
options.CALL.weeklyobject
options.CALL.weekly.enabledboolean(required)
options.CALL.weekly.hourstring
options.CALL.weekly.daystring
options.CALL.monthlyobject
options.CALL.monthly.enabledboolean(required)
options.CALL.monthly.hourstring
options.CALL.monthly.date”first” | “last”
options.PUSHobject
options.PUSH.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.PUSH.offobject
options.PUSH.off.enabledboolean(required)
options.PUSH.instantobject
options.PUSH.instant.enabledboolean(required)
options.PUSH.hourlyobject
options.PUSH.hourly.enabledboolean(required)
options.PUSH.dailyobject
options.PUSH.daily.enabledboolean(required)
options.PUSH.daily.hourstring
options.PUSH.weeklyobject
options.PUSH.weekly.enabledboolean(required)
options.PUSH.weekly.hourstring
options.PUSH.weekly.daystring
options.PUSH.monthlyobject
options.PUSH.monthly.enabledboolean(required)
options.PUSH.monthly.hourstring
options.PUSH.monthly.date”first” | “last”
options.WEB_PUSHobject
options.WEB_PUSH.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.WEB_PUSH.offobject
options.WEB_PUSH.off.enabledboolean(required)
options.WEB_PUSH.instantobject
options.WEB_PUSH.instant.enabledboolean(required)
options.WEB_PUSH.hourlyobject
options.WEB_PUSH.hourly.enabledboolean(required)
options.WEB_PUSH.dailyobject
options.WEB_PUSH.daily.enabledboolean(required)
options.WEB_PUSH.daily.hourstring
options.WEB_PUSH.weeklyobject
options.WEB_PUSH.weekly.enabledboolean(required)
options.WEB_PUSH.weekly.hourstring
options.WEB_PUSH.weekly.daystring
options.WEB_PUSH.monthlyobject
options.WEB_PUSH.monthly.enabledboolean(required)
options.WEB_PUSH.monthly.hourstring
options.WEB_PUSH.monthly.date”first” | “last”
options.SLACKobject
options.SLACK.defaultDeliveryOption”off” | “instant” | “hourly” | “daily” | “weekly” | “monthly”(required)
options.SLACK.offobject
options.SLACK.off.enabledboolean(required)
options.SLACK.instantobject
options.SLACK.instant.enabledboolean(required)
options.SLACK.hourlyobject
options.SLACK.hourly.enabledboolean(required)
options.SLACK.dailyobject
options.SLACK.daily.enabledboolean(required)
options.SLACK.daily.hourstring
options.SLACK.weeklyobject
options.SLACK.weekly.enabledboolean(required)
options.SLACK.weekly.hourstring
options.SLACK.weekly.daystring
options.SLACK.monthlyobject
options.SLACK.monthly.enabledboolean(required)
options.SLACK.monthly.hourstring
options.SLACK.monthly.date”first” | “last”

User

userGenerateSlackOauthPath()

Complete Slack OAuth flow and store access token for user

String userId = "userId_example"; // String | User ID
SlackOauthRequest slackOauthRequest = new SlackOauthRequest(); // SlackOauthRequest | 
try {
    client.getUser().userGenerateSlackOauthPath(userId, slackOauthRequest);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userGenerateSlackOauthPath: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
userIdStringUser ID
slackOauthRequestSlackOauthRequest

Request Body Properties

NameTypeDescription
codestring(required)
redirect_uristring(required)

userGetAccountMetadata()

Get account-level metadata including logo, VAPID key, and web push status

try {
    GetAccountMetadataResponse result = client.getUser().userGetAccountMetadata();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userGetAccountMetadata: " + e.getMessage());
}

Parameters

This endpoint does not need any parameter.

userGetAvailableSlackChannels()

Get list of Slack channels and users for the authenticated user

String userId = "userId_example"; // String | User ID
try {
    client.getUser().userGetAvailableSlackChannels(userId);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userGetAvailableSlackChannels: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
userIdStringUser ID

userGetInAppNotifications()

Get in-app notifications for a user

String before = "before_example"; // String | Timestamp or ISO date to fetch notifications before
BigDecimal count = new BigDecimal(78); // BigDecimal | Number of notifications to return (default 10)
try {
    GetInappNotificationsResponse result = client.getUser().userGetInAppNotifications(before, count);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userGetInAppNotifications: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
beforeStringTimestamp or ISO date to fetch notifications before[optional]
countBigDecimalNumber of notifications to return (default 10)[optional]

userGetInAppUnreadCount()

Get the count of unread in-app notifications for a user

try {
    InappUnreadCountResponse result = client.getUser().userGetInAppUnreadCount();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userGetInAppUnreadCount: " + e.getMessage());
}

Parameters

This endpoint does not need any parameter.

userGetUser()

Get a user by ID. All users exist implicitly, returns basic user object if not found in DB.

String userId = "userId_example"; // String | User ID
try {
    User result = client.getUser().userGetUser(userId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userGetUser: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
userIdStringUser ID

userIdentify()

Create or update a user with the given ID. Updates lastSeenTime automatically.

String userId = "userId_example"; // String | User ID
PostUserRequest postUserRequest = new PostUserRequest(); // PostUserRequest | 
try {
    User result = client.getUser().userIdentify(userId, postUserRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userIdentify: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
userIdStringUser ID
postUserRequestPostUserRequest

Request Body Properties

NameTypeDescription
idstring
emailstring
numberstring
pushTokensobject[]
pushTokens[].type”FCM” | “APN”(required)
pushTokens[].tokenstring(required)
pushTokens[].deviceobject(required)
pushTokens[].device.app_idstring
pushTokens[].device.ad_idstring
pushTokens[].device.device_idstring(required)
pushTokens[].device.platformstring
pushTokens[].device.manufacturerstring
pushTokens[].device.modelstring
pushTokens[].environmentstringused by APN to differentiate between sandbox and production builds (sandbox/undefined or production)
webPushTokensobject[]
webPushTokens[].subobject(required) Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify’ing a PushSubscription in the browser.
webPushTokens[].sub.endpointstring(required)
webPushTokens[].sub.keysobject(required)
webPushTokens[].sub.keys.p256dhstring(required)
webPushTokens[].sub.keys.authstring(required)
timezonestring
slackChannelstringThe destination channel of slack notifications sent to this user. Can be either of the following: - Channel name, e.g. “test” - Channel name with # prefix, e.g. “#test” - Channel ID, e.g. “C1234567890” - User ID for DM, e.g. “U1234567890” - Username with @ prefix, e.g. “@test”
slackTokenobject
slackToken.access_tokenstring
slackToken.app_idstring
slackToken.authed_userobject
slackToken.authed_user.access_tokenstring
slackToken.authed_user.expires_innumber
slackToken.authed_user.idstring
slackToken.authed_user.refresh_tokenstring
slackToken.authed_user.scopestring
slackToken.authed_user.token_typestring
slackToken.bot_user_idstring
slackToken.enterpriseobject
slackToken.enterprise.idstring
slackToken.enterprise.namestring
slackToken.errorstring
slackToken.expires_innumber
slackToken.incoming_webhookobject
slackToken.incoming_webhook.channelstring
slackToken.incoming_webhook.channel_idstring
slackToken.incoming_webhook.configuration_urlstring
slackToken.incoming_webhook.urlstring
slackToken.is_enterprise_installboolean
slackToken.neededstring
slackToken.okboolean(required)
slackToken.providedstring
slackToken.refresh_tokenstring
slackToken.scopestring
slackToken.teamobject
slackToken.team.idstring
slackToken.team.namestring
slackToken.token_typestring
slackToken.warningstring
slackToken.response_metadataobject
slackToken.response_metadata.warningsstring[]
slackToken.response_metadata.next_cursorstring
slackToken.response_metadata.scopesstring[]
slackToken.response_metadata.acceptedScopesstring[]
slackToken.response_metadata.retryAfternumber
slackToken.response_metadata.messagesstring[]

userMarkInAppNotificationsAsSeen()

Mark in-app web notifications as seen/read for a user

InAppNotificationUnreadClearRequest inAppNotificationUnreadClearRequest = new InAppNotificationUnreadClearRequest(); // InAppNotificationUnreadClearRequest | 
try {
    SuccessResponse result = client.getUser().userMarkInAppNotificationsAsSeen(inAppNotificationUnreadClearRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userMarkInAppNotificationsAsSeen: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes

Request Body Properties

NameTypeDescription
notificationIdstring
trackingIdstring

userUpdateInAppNotificationStatus()

Update in-app web notification status (opened, archived, clicked, etc.)

InAppNotificationPatchRequest inAppNotificationPatchRequest = new InAppNotificationPatchRequest(); // InAppNotificationPatchRequest | 
try {
    SuccessResponse result = client.getUser().userUpdateInAppNotificationStatus(inAppNotificationPatchRequest);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserApi#userUpdateInAppNotificationStatus: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes

Request Body Properties

NameTypeDescription
trackingIdsstring[](required)
openedstring
clickedstring
archivedstring
actioned1string
actioned2string
replyobject
reply.datestring(required)
reply.messagestring(required)
repliesobject[]
replies[].datestring(required)
replies[].messagestring(required)

Users

usersDeleteUser()

Delete a user and all associated data (in-app notifications, preferences, and user record)

String userId = "userId_example"; // String | User ID
String envId = "envId_example"; // String | Environment ID (required when using JWT auth)
try {
    DeleteUserResponse result = client.getUsers().usersDeleteUser(userId, envId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UsersApi#usersDeleteUser: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
userIdStringUser ID
envIdStringEnvironment ID (required when using JWT auth)[optional]

usersListUsers()

Get all users for an environment with pagination support

BigDecimal limit = new BigDecimal(78); // BigDecimal | Maximum number of users to return (default
String nextToken = "nextToken_example"; // String | Pagination token for next page
String envId = "envId_example"; // String | Environment ID (required when using JWT auth)
try {
    GetUsersResponse result = client.getUsers().usersListUsers(limit, nextToken, envId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UsersApi#usersListUsers: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
limitBigDecimalMaximum number of users to return (default
nextTokenStringPagination token for next page
envIdStringEnvironment ID (required when using JWT auth)[optional]

usersRemoveUserFromSuppression()

Remove user suppression status for a specific channel

String userId = "userId_example"; // String | User ID
String channel = "channel_example"; // String | Channel type (EMAIL)
String envId = "envId_example"; // String | Environment ID (required when using JWT auth)
try {
    UserSuppressionDeleteResponse result = client.getUsers().usersRemoveUserFromSuppression(userId, channel, envId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UsersApi#usersRemoveUserFromSuppression: " + e.getMessage());
}

Parameters

NameTypeDescriptionNotes
userIdStringUser ID
channelStringChannel type (EMAIL)
envIdStringEnvironment ID (required when using JWT auth)[optional]