maislurp-client-powershell.maislurp-client-powershell/Api.BulkActionsControllerApi

All URIs are relative to https://api.mailslurp.com

MethodHTTP requestDescription
Invoke-BulkCreateInboxesPOST /bulk/inboxesBulk create Inboxes (email addresses)
Invoke-BulkDeleteInboxesDELETE /bulk/inboxesBulk Delete Inboxes
Invoke-BulkSendEmailsPOST /bulk/sendBulk Send Emails

Invoke-BulkCreateInboxes

Inbox[] Invoke-BulkCreateInboxes         [-Count]

Bulk create Inboxes (email addresses)

Example

# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: API_KEY
$Configuration.ApiKey.x-api-key = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.x-api-key = "Bearer"

$Count = 987 # Int32 | Number of inboxes to be created in bulk

# Bulk create Inboxes (email addresses)
try {
     $Result = Invoke-BulkCreateInboxes -Count $Count
} catch {
    Write-Host ("Exception occured when calling Invoke-BulkCreateInboxes: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
    Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}

Parameters

NameTypeDescriptionNotes
CountInt32Number of inboxes to be created in bulk

Return type

**Inbox[]** (PSCustomObject)

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to ]

Invoke-BulkDeleteInboxes

void Invoke-BulkDeleteInboxes         [-Ids] <String[]>

Bulk Delete Inboxes

Example

# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: API_KEY
$Configuration.ApiKey.x-api-key = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.x-api-key = "Bearer"

$Ids = @("Property_example") # String[] | ids

# Bulk Delete Inboxes
try {
     $Result = Invoke-BulkDeleteInboxes -Ids $Ids
} catch {
    Write-Host ("Exception occured when calling Invoke-BulkDeleteInboxes: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
    Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}

Parameters

NameTypeDescriptionNotes
Ids**String[]**ids

Return type

void (empty response body)

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to ]

Invoke-BulkSendEmails

void Invoke-BulkSendEmails         [-BulkSendEmailOptions]

Bulk Send Emails

Example

# general setting of the PowerShell module, e.g. base URL, authentication, etc
$Configuration = Get-Configuration
# Configure API key authorization: API_KEY
$Configuration.ApiKey.x-api-key = "YOUR_API_KEY"
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$Configuration.ApiKeyPrefix.x-api-key = "Bearer"

$BulkSendEmailOptions = (Initialize-BulkSendEmailOptions -InboxIds @("InboxIds_example") -SendEmailOptions (Initialize-SendEmailOptions -AddTrackingPixel $false -Attachments @("Attachments_example") -Bcc @("Bcc_example") -Body "Body_example" -Cc @("Cc_example") -Charset "Charset_example" -VarFrom "VarFrom_example" -Html $false -IsHTML $false -ReplyTo "ReplyTo_example" -SendStrategy "SINGLE_MESSAGE" -Subject "Subject_example" -Template "Template_example" -TemplateVariables "TODO" -To @("To_example") -ToContacts @("ToContacts_example") -ToGroup "ToGroup_example" -UseInboxName $false)) # BulkSendEmailOptions | bulkSendEmailOptions

# Bulk Send Emails
try {
     $Result = Invoke-BulkSendEmails -BulkSendEmailOptions $BulkSendEmailOptions
} catch {
    Write-Host ("Exception occured when calling Invoke-BulkSendEmails: {0}" -f ($_.ErrorDetails | ConvertFrom-Json))
    Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json))
}

Parameters

NameTypeDescriptionNotes
BulkSendEmailOptionsBulkSendEmailOptionsbulkSendEmailOptions

Return type

void (empty response body)

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to ]