🌐 Domains module Inbound API
Manage your MailChannels Inbound domains.
Provision method
Provision a single domain to use MailChannels Inbound.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { data, error } = await domains.provision({
domain: 'example.com',
subscriptionHandle: 'your-subscription-handle'
})import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { data, error } = await mailchannels.domains.provision({
domain: 'example.com',
subscriptionHandle: 'your-subscription-handle'
})Params
optionsDomainsProvisionOptions & DomainsDatarequired: The provision options and domain data.subscriptionHandlestringrequired: The subscriptionhandlethat identifies the subscription that this domain should be provisioned against.TIP
Subscription handles can be retrieved from the
subscriptionsservice method.domainstringrequired: The domain name.settingsobjectoptional: The abuse policy settings for the domain. These settings determine how spam messages are handled.abusePolicy"block" | "flag" | "quarantine"optional: The abuse policy.abusePolicyOverridebooleanoptional: Iftrue, this abuse policy overrides the recipient abuse policy.spamHeaderNamestringoptional: The header name to use if the abuse policy is set toflag.spamHeaderValuestringoptional: The header value to use if the abuse policy is set toflag.
adminsstring[] | nulloptional: A list of email addresses that are the domain admins for the domain.downstreamAddressesobject[] | nulloptional: The locations of mail servers to which messages will be delivered after filtering.prioritynumberrequired: The priority of the downstream address. Only addresses with the highest priority (the lowest numerical value) are selected.weightnumberrequired: Downstream addresses are selected in proportion to their weights. For example, if there are two downstream addresses, A with weight 40, and B with weight 10, then A is selected 80% of the time and B is selected 20% of the time.portnumberrequired: TCP port on which the downstream mail server is listening.targetstringrequired: The canonical hostname of the host providing the service, ending in a dot.
aliasesstring[] | nulloptional: A list of aliases for the domain. Mail is accepted for these domains and routed to thedownstreamAddressesdefined for the domain.NOTE
Aliases are limited to 255 characters.
associateKeybooleanoptional: If present and set to true, the domain will be associated with the api-key that created it. This means that this api-key must be used for inbound-api actions involving this domain (for example adding safe/block list entries, etc).overwritebooleanoptional: If present and set to true, the settings (domain settings, downstream addresses, aliases and admins) for the domain will be overwritten with the ones in the request if the domain already exists, unless a section is not included in the request or there is problem updating a setting in which case the previous settings are carried forward.
Response
dataDomainsData | nullnullable: The provisioned domain data.domainstringguaranteed: The domain name.settingsobjectoptional: The abuse policy settings for the domain. These settings determine how spam messages are handled.abusePolicy"block" | "flag" | "quarantine"optional: The abuse policy.abusePolicyOverridebooleanoptional: Iftrue, this abuse policy overrides the recipient abuse policy.spamHeaderNamestringoptional: The header name to use if the abuse policy is set toflag.spamHeaderValuestringoptional: The header value to use if the abuse policy is set toflag.
adminsstring[] | nullnullable: A list of email addresses that are the domain admins for the domain.downstreamAddressesobject[] | nullnullable: The locations of mail servers to which messages will be delivered after filtering.prioritynumberguaranteed: The priority of the downstream address. Only addresses with the highest priority (the lowest numerical value) are selected.weightnumberguaranteed: Downstream addresses are selected in proportion to their weights. For example, if there are two downstream addresses, A with weight 40, and B with weight 10, then A is selected 80% of the time and B is selected 20% of the time.portnumberguaranteed: TCP port on which the downstream mail server is listening.targetstringguaranteed: The canonical hostname of the host providing the service, ending in a dot.
aliasesstring[] | nullnullable: A list of aliases for the domain. Mail is accepted for these domains and routed to thedownstreamAddressesdefined for the domain.subscriptionHandlestringguaranteed: The subscriptionhandlethat identifies the subscription that this domain should be provisioned against.
errorstring | nullnullable
Bulk Provision method
Provision up to 1000 domains to use MailChannels Inbound.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { data, error } = await domains.bulkProvision({
subscriptionHandle: 'your-subscription-handle'
}, [
{ domain: 'example.com' },
{ domain: 'example2.com' }
])import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { data, error } = await mailchannels.domains.bulkProvision({
subscriptionHandle: 'your-subscription-handle'
}, [
{ domain: 'example.com' },
{ domain: 'example2.com' }
])Params
optionsDomainsBulkProvisionOptionsrequired: The options to provision the domains.subscriptionHandlestringrequired: The subscriptionhandlethat identifies the subscription that this domain should be provisioned against.TIP
Subscription handles can be retrieved from the
subscriptionsservice method.associateKeybooleanoptional: If present and set to true, the domain will be associated with the api-key that created it. This means that this api-key must be used for inbound-api actions involving this domain (for example adding safe/block list entries, etc).overwritebooleanoptional: If present and set to true, the settings (domain settings, downstream addresses, aliases and admins) for the domain will be overwritten with the ones in the request if the domain already exists, unless a section is not included in the request or there is problem updating a setting in which case the previous settings are carried forward.
domainsDomainsData[]required: A list of domain data to provision.domainstringrequired: The domain name.settingsobjectoptional: The abuse policy settings for the domain. These settings determine how spam messages are handled.abusePolicy"block" | "flag" | "quarantine"optional: The abuse policy.abusePolicyOverridebooleanoptional: Iftrue, this abuse policy overrides the recipient abuse policy.spamHeaderNamestringoptional: The header name to use if the abuse policy is set toflag.spamHeaderValuestringoptional: The header value to use if the abuse policy is set toflag.
adminsstring[] | nulloptional: A list of email addresses that are the domain admins for the domain.downstreamAddressesobject[] | nulloptional: The locations of mail servers to which messages will be delivered after filtering.prioritynumberrequired: The priority of the downstream address. Only addresses with the highest priority (the lowest numerical value) are selected.weightnumberrequired: Downstream addresses are selected in proportion to their weights. For example, if there are two downstream addresses, A with weight 40, and B with weight 10, then A is selected 80% of the time and B is selected 20% of the time.portnumberrequired: TCP port on which the downstream mail server is listening.targetstringrequired: The canonical hostname of the host providing the service, ending in a dot.
aliasesstring[] | nulloptional: A list of aliases for the domain. Mail is accepted for these domains and routed to thedownstreamAddressesdefined for the domain.NOTE
Aliases are limited to 255 characters.
Response
dataobject | nullnullable: If the request was processed successfully, this does not necessarily mean all the domains in the request were successfully provisioned.successesobject[]guaranteed: Domains that were successfully provisioned or updated.codenumberguaranteedcommentstringoptionaldomainDomainsDataguaranteed: The provisioned domain data.domainstringguaranteed: The domain name.settingsobjectoptional: The abuse policy settings for the domain. These settings determine how spam messages are handled.abusePolicy"block" | "flag" | "quarantine"optional: The abuse policy.abusePolicyOverridebooleanoptional: Iftrue, this abuse policy overrides the recipient abuse policy.spamHeaderNamestringoptional: The header name to use if the abuse policy is set toflag.spamHeaderValuestringoptional: The header value to use if the abuse policy is set toflag.
adminsstring[] | nullnullable: A list of email addresses that are the domain admins for the domain.downstreamAddressesobject[] | nullnullable: The locations of mail servers to which messages will be delivered after filtering.prioritynumberguaranteed: The priority of the downstream address. Only addresses with the highest priority (the lowest numerical value) are selected.weightnumberguaranteed: Downstream addresses are selected in proportion to their weights. For example, if there are two downstream addresses, A with weight 40, and B with weight 10, then A is selected 80% of the time and B is selected 20% of the time.portnumberguaranteed: TCP port on which the downstream mail server is listening.targetstringguaranteed: The canonical hostname of the host providing the service, ending in a dot.
aliasesstring[] | nullnullable: A list of aliases for the domain. Mail is accepted for these domains and routed to thedownstreamAddressesdefined for the domain.subscriptionHandlestringguaranteed: The subscriptionhandlethat identifies the subscription that this domain should be provisioned against.
errorsobject[]guaranteed: Domains that were not successfully provisioned.codenumberguaranteedcommentstringoptionaldomainDomainsDataguaranteed: The failed to provision domain data.domainstringguaranteed: The domain name.settingsobjectoptional: The abuse policy settings for the domain. These settings determine how spam messages are handled.abusePolicy"block" | "flag" | "quarantine"optional: The abuse policy.abusePolicyOverridebooleanoptional: Iftrue, this abuse policy overrides the recipient abuse policy.spamHeaderNamestringoptional: The header name to use if the abuse policy is set toflag.spamHeaderValuestringoptional: The header value to use if the abuse policy is set toflag.
adminsstring[] | nullnullable: A list of email addresses that are the domain admins for the domain.downstreamAddressesobject[] | nullnullable: The locations of mail servers to which messages will be delivered after filtering.prioritynumberguaranteed: The priority of the downstream address. Only addresses with the highest priority (the lowest numerical value) are selected.weightnumberguaranteed: Downstream addresses are selected in proportion to their weights. For example, if there are two downstream addresses, A with weight 40, and B with weight 10, then A is selected 80% of the time and B is selected 20% of the time.portnumberguaranteed: TCP port on which the downstream mail server is listening.targetstringguaranteed: The canonical hostname of the host providing the service, ending in a dot.
aliasesstring[] | nullnullable: A list of aliases for the domain. Mail is accepted for these domains and routed to thedownstreamAddressesdefined for the domain.subscriptionHandlestringguaranteed: The subscriptionhandlethat identifies the subscription that this domain should be provisioned against.
errorstring | nullnullable
List method
Fetch a list of all domains associated with this API key.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { data, error } = await domains.list()import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { data, error } = await mailchannels.domains.list()Params
optionsDomainsListOptionsoptional: List domains options.domainsstring[]optional: A list of domains to fetch. If this parameter is present, only domains whose name matches an item in this list are returned.limitnumberoptional: The maximum number of domains included in the response. Possible values are 1 to 5000.offsetnumberoptional: Offset into the list of domains to return.
TIP
If no options are provided, the default limit is
10and the offset is0.
Response
dataobject | nullnullabledomainsDomainsData[]guaranteed: A list of domain data.domainstringguaranteed: The domain name.settingsobjectoptional: The abuse policy settings for the domain. These settings determine how spam messages are handled.abusePolicy"block" | "flag" | "quarantine"optional: The abuse policy.abusePolicyOverridebooleanoptional: Iftrue, this abuse policy overrides the recipient abuse policy.spamHeaderNamestringoptional: The header name to use if the abuse policy is set toflag.spamHeaderValuestringoptional: The header value to use if the abuse policy is set toflag.
adminsstring[] | nullnullable: A list of email addresses that are the domain admins for the domain.downstreamAddressesobject[] | nullnullable: The locations of mail servers to which messages will be delivered after filtering.prioritynumberguaranteed: The priority of the downstream address. Only addresses with the highest priority (the lowest numerical value) are selected.weightnumberguaranteed: Downstream addresses are selected in proportion to their weights. For example, if there are two downstream addresses, A with weight 40, and B with weight 10, then A is selected 80% of the time and B is selected 20% of the time.portnumberguaranteed: TCP port on which the downstream mail server is listening.targetstringguaranteed: The canonical hostname of the host providing the service, ending in a dot.
aliasesstring[] | nullnullable: A list of aliases for the domain. Mail is accepted for these domains and routed to thedownstreamAddressesdefined for the domain.subscriptionHandlestringguaranteed: The subscriptionhandlethat identifies the subscription that this domain should be provisioned against.
totalnumberguaranteed: The total number of domains that are accessible with the given API key that match the list of domains in the 'domains' parameter. If there is no 'domains' parameter, this field is the total number of domains that are accessible with with this API key. A domain is accessible with a given API key if it is associated with that API key, or if it is not associated with any API key.
errorstring | nullnullable
Delete method
De-provision a domain to cease protecting it with MailChannels Inbound.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { success, error } = await domains.delete('example.com')import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { success, error } = await mailchannels.domains.delete('example.com')Params
domainstringrequired: The domain name to be removed.
Response
successbooleanguaranteed: Whether the operation was successful.errorstring | nullnullable
Add List Entry method
Add an entry to a domain blocklist or safelist.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { data, error } = await domains.addListEntry('example.com', {
listName: 'safelist',
item: 'name@domain.com'
})import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { data, error } = await mailchannels.domains.addListEntry('example.com', {
listName: 'safelist',
item: 'name@domain.com'
})Params
domainstringrequired: The domain name.optionsListEntryOptionsrequired: Add list entry options.listName"blocklist" | "safelist" | "blacklist" | "whitelist"required: The list to add the item to.itemstringrequired: The item to add to the list. This can be a domain, email address, or IP address.
Response
dataListEntry | nullnullableaction"blocklist" | "safelist"guaranteeditemstringguaranteedtype"domain" | "email_address" | "ip_address"guaranteed
errorstring | nullnullable
List Entries method
Get domain list entries.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { data, error } = await domains.listEntries('example.com', 'safelist')import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { data, error } = await mailchannels.domains.listEntries('example.com', 'safelist')Params
domainstringrequired: The domain name whose list will be fetched.listName"blocklist" | "safelist" | "blacklist" | "whitelist"required: The name of the list to fetch.
Response
dataListEntry[] | nullnullableaction"blocklist" | "safelist"guaranteeditemstringguaranteedtype"domain" | "email_address" | "ip_address"guaranteed
errorstring | nullnullable
Delete List Entry method
Delete item from domain list.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { success, error } = await domains.deleteListEntry('example.com', {
listName: 'safelist',
item: 'name@domain.com'
})import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { success, error } = await mailchannels.domains.deleteListEntry('example.com', {
listName: 'safelist',
item: 'name@domain.com'
})Params
domainstringrequired: The domain name whose list will be modified.optionsListEntryOptionsrequired: Add list entry options.listName"blocklist" | "safelist" | "blacklist" | "whitelist"required: The name of the list to remove an entry from.itemstringrequired: The list entry which should be removed. This can be a domain, email address, or IP address.
Response
successbooleanguaranteed: Whether the operation was successful.errorstring | nullnullable
Create Login Link method
Generate a link that allows a user to log in as a domain administrator.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { data, error } = await domains.createLoginLink("example.com")import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { data, error } = await mailchannels.domains.createLoginLink("example.com")Params
domainstringrequired: The domain name.
Response
dataobject | nullnullablelinkstringguaranteed: If a user browses to this URL, they will be automatically logged in as a domain admin.
errorstring | nullnullable
Set Downstream Address method
Sets the list of downstream addresses for the domain.
WARNING
This action deletes any existing downstream address for the domain before creating new ones.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { success, error } = await domains.setDownstreamAddress('example.com', [
{
port: 25,
priority: 10,
target: 'example.com.',
weight: 10
}
])import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { success, error } = await mailchannels.domains.setDownstreamAddress('example.com', [
{
port: 25,
priority: 10,
target: 'example.com.',
weight: 10
}
])Params
domainstringrequired: The domain name to set downstream addresses for.recordsDomainsDownstreamAddress[]required: The list of downstream addresses to set for the domain.portnumberrequired: TCP port on which the downstream mail server is listening.prioritynumberrequired: The priority of the downstream address. Only addresses with the highest priority (the lowest numerical value) are selected.targetstringrequired: The canonical hostname of the host providing the service, ending in a dot.weightnumberrequired: Downstream addresses are selected in proportion to their weights. For example, if there are two downstream addresses, A with weight 40, and B with weight 10, then A is selected 80% of the time and B is selected 20% of the time.
IMPORTANT
If the records parameter is an empty array, all downstream address records will be deleted.
Response
successbooleanguaranteed: Whether the operation was successful.errorstring | nullnullable
List Downstream Addresses method
Retrieve stored downstream addresses for the domain.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { data, error } = await domains.listDownstreamAddresses('example.com')import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { data, error } = await mailchannels.domains.listDownstreamAddresses('example.com')Params
domainstringrequired: The domain name to get downstream addresses records for.optionsDomainsListDownstreamAddressesOptionsoptional: List domains options.limitnumberoptional: The number of records to return.offsetnumberoptional: The offset into the records to return.
TIP
If no options are provided, the default limit is
10and the offset is0.
Response
dataDomainsDownstreamAddress[] | nullnullableportnumberguaranteed: TCP port on which the downstream mail server is listening.prioritynumberguaranteed: The priority of the downstream address. Only addresses with the highest priority (the lowest numerical value) are selected.targetstringguaranteed: The canonical hostname of the host providing the service, ending in a dot.weightnumberguaranteed: Downstream addresses are selected in proportion to their weights. For example, if there are two downstream addresses, A with weight 40, and B with weight 10, then A is selected 80% of the time and B is selected 20% of the time.
errorstring | nullnullable
Update API Key method
Update the API key that is associated with a domain.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { success, error } = await domains.updateApiKey('example.com', 'your-api-key')import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { success, error } = await mailchannels.domains.updateApiKey('example.com', 'your-api-key')Params
domainstringrequired: The domain name.keystringrequired: The new API key to associate with this domain.
Response
successbooleanguaranteed: Whether the operation was successful.errorstring | nullnullable
Bulk Create Login Links method
Generate a batch of links that allow a user to log in as a domain administrator to their different domains.
Usage
import { MailChannelsClient, Domains } from 'mailchannels-sdk'
const mailchannels = new MailChannelsClient('your-api-key')
const domains = new Domains(mailchannels)
const { data, error } = await domains.bulkCreateLoginLinks([
'example.com',
'example2.com'
])import { MailChannels } from 'mailchannels-sdk'
const mailchannels = new MailChannels('your-api-key')
const { data, error } = await mailchannels.domains.bulkCreateLoginLinks([
'example.com',
'example2.com'
])Params
domainsstring[]required: A list of domain names to generate login links for. Maximum of1000domains per request.
Response
dataDomainsBulkCreateLoginLinks | nullnullablesuccessesDomainsBulkCreateLoginLinkResult[]guaranteeddomainstringguaranteed: The domain the request was for.code200guaranteedcommentstringoptionalloginLinkstringguaranteed: If a user browses to this URL, they will be automatically logged in as a domain admin.
errorsDomainsBulkCreateLoginLinkResult[]guaranteeddomainstringguaranteed: The domain the request was for.code400 | 401 | 403 | 404 | 500guaranteedcommentstringoptional
errorstring | nullnullable
Type declarations
class Domains {
constructor (protected mailchannels: MailChannelsClient);
async provision (options: DomainsProvisionOptions & DomainsData): Promise<DomainsProvisionResponse>;
async bulkProvision (options: DomainsBulkProvisionOptions, domains: Omit<DomainsData, "subscriptionHandle">[]): Promise<DomainsBulkProvisionResponse>;
async list (options?: DomainsListOptions): Promise<DomainsListResponse>;
async delete (domain: string): Promise<SuccessResponse>;
async addListEntry (domain: string, options: ListEntryOptions): Promise<ListEntryResponse>;
async listEntries (domain: string, listName: ListNames): Promise<ListEntriesResponse>;
async deleteListEntry (domain: string, options: ListEntryOptions): Promise<SuccessResponse>;
async createLoginLink (domain: string): Promise<DomainsCreateLoginLinkResponse>;
async setDownstreamAddress (domain: string, records?: DomainsDownstreamAddress[]): Promise<SuccessResponse>;
async listDownstreamAddresses (domain: string, options?: DomainsListDownstreamAddressesOptions): Promise<DomainsListDownstreamAddressesResponse>;
async updateApiKey (domain: string, key: string): Promise<SuccessResponse>;
async bulkCreateLoginLinks (domains: string[]): Promise<DomainsBulkCreateLoginLinksResponse>;
}All type declarations
Responses
interface DataResponse<T> {
data: T | null;
error: string | null;
}interface SuccessResponse {
success: boolean;
error: string | null;
}Provision type declarations
interface DomainsData {
domain: string;
settings?: Partial<{
abusePolicy: "block" | "flag" | "quarantine";
abusePolicyOverride: boolean;
spamHeaderName: string;
spamHeaderValue: string;
}>;
admins?: string[] | null;
downstreamAddresses?: {
priority: number;
weight: number;
port: number;
target: string;
}[] | null;
aliases?: string[] | null;
subscriptionHandle: string;
}interface DomainsProvisionOptions {
associateKey?: boolean;
overwrite?: boolean;
}type DomainsProvisionResponse = DataResponse<DomainsData>;Bulk Provision type declarations
type DomainsBulkProvisionOptions = DomainsProvisionOptions & Pick<DomainsData, "subscriptionHandle">;type DomainsBulkProvisionResponse = DataResponse<{
successes: {
domain: DomainsData;
code: number;
comment?: string;
}[];
errors: {
domain: DomainsData;
code: number;
comment?: string;
}[];
}>;List type declarations
interface DomainsListOptions {
domains?: string[];
limit?: number;
offset?: number;
}type DomainsListResponse = DataResponse<{
domains: DomainsData[];
total: number;
}>;List Entry type declarations
type ListNames = "blocklist" | "safelist" | "blacklist" | "whitelist";interface ListEntryOptions {
listName: ListNames;
item: string;
}interface ListEntry {
action: Extract<ListNames, "blocklist" | "safelist">;
item: string;
type: "domain" | "email_address" | "ip_address";
}type ListEntryResponse = DataResponse<ListEntry>;type ListEntriesResponse = DataResponse<ListEntry[]>;Downstream Addresses type declarations
interface DomainsDownstreamAddress {
port: number;
priority: number;
target: string;
weight: number;
}interface DomainsListDownstreamAddressesOptions {
limit?: number;
offset?: number;
}type DomainsListDownstreamAddressesResponse = DataResponse<DomainsDownstreamAddress[]>;Create Login Link type declarations
type DomainsCreateLoginLinkResponse = DataResponse<DomainsCreateLoginLink>;Bulk Create Login Links type declarations
interface DomainsBulkCreateLoginLinkResult {
domain: string;
code: 200 | 400 | 401 | 403 | 404 | 500;
comment?: string;
loginLink: string;
}interface DomainsBulkCreateLoginLinks {
successes: DomainsBulkCreateLoginLinkResult[];
errors: Omit<DomainsBulkCreateLoginLinkResult, "loginLink">[];
}type DomainsBulkCreateLoginLinksResponse = DataResponse<DomainsBulkCreateLoginLinks>;Source
Source • Playground • Docs