@datafire/postmarkapp_account
v6.0.0
Published
DataFire integration for Postmark Account-level API
Downloads
10
Readme
@datafire/postmarkapp_account
Client library for Postmark Account-level API
Installation and Usage
npm install --save @datafire/postmarkapp_account
let postmarkapp_account = require('@datafire/postmarkapp_account').create();
.then(data => {
console.log(data);
});
Description
Postmark makes sending and receiving email incredibly easy. The Account-level API allows users to configure all Servers, Domains, and Sender Signatures associated with an Account.
Actions
listDomains
List Domains
postmarkapp_account.listDomains({
"X-Postmark-Account-Token": "",
"count": 0,
"offset": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - count required
integer
: Number of records to return per request. Max 500. - offset required
integer
: Number of records to skip
- X-Postmark-Account-Token required
Output
- output DomainListingResults
createDomain
Create a Domain
postmarkapp_account.createDomain({
"X-Postmark-Account-Token": ""
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - body DomainCreationModel
- X-Postmark-Account-Token required
Output
- output DomainExtendedInformation
deleteDomain
Delete a Domain
postmarkapp_account.deleteDomain({
"X-Postmark-Account-Token": "",
"domainid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - domainid required
integer
: The ID for the Domain that should be deleted by the request.
- X-Postmark-Account-Token required
Output
- output StandardPostmarkResponse
getDomain
Get a Domain
postmarkapp_account.getDomain({
"X-Postmark-Account-Token": "",
"domainid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - domainid required
integer
: The ID for the Domain that should be retrieved.
- X-Postmark-Account-Token required
Output
- output DomainExtendedInformation
editDomain
Update a Domain
postmarkapp_account.editDomain({
"X-Postmark-Account-Token": "",
"domainid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - domainid required
integer
: The ID for the Domain that should be modified by the request. - body DomainEditingModel
- X-Postmark-Account-Token required
Output
- output DomainExtendedInformation
rotateDKIMKeyForDomain
Creates a new DKIM key to replace your current key. Until the DNS entries are confirmed,
the new values will be in the DKIMPendingHost
and DKIMPendingTextValue
fields.
After the new DKIM value is verified in DNS, the pending values will migrate to
DKIMTextValue
and DKIMPendingTextValue
and Postmark will begin to sign emails
with the new DKIM key.
postmarkapp_account.rotateDKIMKeyForDomain({
"X-Postmark-Account-Token": "",
"domainid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - domainid required
integer
: The ID for the Sender Signature for which a new DKIM Key should be generated.
- X-Postmark-Account-Token required
Output
- output DKIMRotationResponse
requestDkimVerificationForDomain
Request DNS Verification for DKIM
postmarkapp_account.requestDkimVerificationForDomain({
"X-Postmark-Account-Token": "",
"domainid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - domainid required
integer
: The ID for the Domain for which DKIM DNS records should be verified.
- X-Postmark-Account-Token required
Output
- output DomainExtendedInformation
requestReturnPathVerificationForDomain
Request DNS Verification for Return-Path
postmarkapp_account.requestReturnPathVerificationForDomain({
"X-Postmark-Account-Token": "",
"domainid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - domainid required
integer
: The ID for the Domain for which Return-Path DNS records should be verified.
- X-Postmark-Account-Token required
Output
- output DomainExtendedInformation
requestSPFVerificationForDomain
Request DNS Verification for SPF
postmarkapp_account.requestSPFVerificationForDomain({
"X-Postmark-Account-Token": "",
"domainid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - domainid required
integer
: The ID for the Domain for which SPF DNS records should be verified.
- X-Postmark-Account-Token required
Output
- output DomainSPFResult
listSenderSignatures
List Sender Signatures
postmarkapp_account.listSenderSignatures({
"X-Postmark-Account-Token": "",
"count": 0,
"offset": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - count required
integer
: Number of records to return per request. Max 500. - offset required
integer
: Number of records to skip
- X-Postmark-Account-Token required
Output
- output SenderListingResults
createSenderSignature
Create a Sender Signature
postmarkapp_account.createSenderSignature({
"X-Postmark-Account-Token": ""
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - body SenderSignatureCreationModel
- X-Postmark-Account-Token required
Output
deleteSenderSignature
Delete a Sender Signature
postmarkapp_account.deleteSenderSignature({
"X-Postmark-Account-Token": "",
"signatureid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - signatureid required
integer
: The ID for the Sender Signature that should be deleted by the request.
- X-Postmark-Account-Token required
Output
- output StandardPostmarkResponse
getSenderSignature
Get a Sender Signature
postmarkapp_account.getSenderSignature({
"X-Postmark-Account-Token": "",
"signatureid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - signatureid required
integer
: The ID for the Sender Signature that should be retrieved.
- X-Postmark-Account-Token required
Output
editSenderSignature
Update a Sender Signature
postmarkapp_account.editSenderSignature({
"X-Postmark-Account-Token": "",
"signatureid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - signatureid required
integer
: The ID for the Sender Signature that should be modified by the request. - body SenderSignatureEditingModel
- X-Postmark-Account-Token required
Output
requestNewDKIMKeyForSenderSignature
Requests a new DKIM key to be created. Until the DNS entries are confirmed,
the new values will be in the DKIMPendingHost
and DKIMPendingTextValue
fields.
After the new DKIM value is verified in DNS, the pending values will migrate to
DKIMTextValue
and DKIMPendingTextValue
and Postmark will begin to sign emails
with the new DKIM key.
postmarkapp_account.requestNewDKIMKeyForSenderSignature({
"X-Postmark-Account-Token": "",
"signatureid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - signatureid required
integer
: The ID for the Sender Signature for which a new DKIM Key should be generated.
- X-Postmark-Account-Token required
Output
- output StandardPostmarkResponse
resendSenderSignatureConfirmationEmail
Resend Signature Confirmation Email
postmarkapp_account.resendSenderSignatureConfirmationEmail({
"X-Postmark-Account-Token": "",
"signatureid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - signatureid required
integer
: The ID for the Sender Signature that should have its confirmation email resent.
- X-Postmark-Account-Token required
Output
- output StandardPostmarkResponse
requestSPFVerificationForSenderSignature
Request DNS Verification for SPF
postmarkapp_account.requestSPFVerificationForSenderSignature({
"X-Postmark-Account-Token": "",
"signatureid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - signatureid required
integer
: The ID for the Sender Signature for which SPF DNS records should be verified.
- X-Postmark-Account-Token required
Output
listServers
List servers
postmarkapp_account.listServers({
"X-Postmark-Account-Token": "",
"count": 0,
"offset": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - count required
integer
: Number of servers to return per request. - offset required
integer
: Number of servers to skip. - name
string
: Filter by a specific server name
- X-Postmark-Account-Token required
Output
- output ServerListingResponse
createServer
Create a Server
postmarkapp_account.createServer({
"X-Postmark-Account-Token": ""
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - body CreateServerPayload
- X-Postmark-Account-Token required
Output
- output ExtendedServerInfo
deleteServer
Delete a Server
postmarkapp_account.deleteServer({
"X-Postmark-Account-Token": "",
"serverid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - serverid required
integer
: The ID of the Server that should be deleted.
- X-Postmark-Account-Token required
Output
Output schema unknown
getServerInformation
Get a Server
postmarkapp_account.getServerInformation({
"X-Postmark-Account-Token": "",
"serverid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - serverid required
integer
: The ID of the Server to get.
- X-Postmark-Account-Token required
Output
- output ExtendedServerInfo
editServerInformation
Edit a Server
postmarkapp_account.editServerInformation({
"X-Postmark-Account-Token": "",
"serverid": 0
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - serverid required
integer
: The ID of the Server to update. - body EditServerPayload
- X-Postmark-Account-Token required
Output
- output ExtendedServerInfo
pushTemplates
Push templates from one server to another
postmarkapp_account.pushTemplates({
"X-Postmark-Account-Token": "",
"body": null
}, context)
Input
- input
object
- X-Postmark-Account-Token required
string
: The token associated with the Account on which this request will operate. - body required TemplatesPushModel
- X-Postmark-Account-Token required
Output
- output TemplatesPushResponse
Definitions
CreateServerPayload
- CreateServerPayload
object
- BounceHookUrl
string
- ClickHookUrl
string
- Color
string
- DeliveryHookUrl
string
- InboundDomain
string
- InboundHookUrl
string
- InboundSpamThreshold
integer
- Name
string
- OpenHookUrl
string
- PostFirstOpenOnly
boolean
- RawEmailEnabled
boolean
- SmtpApiActivated
boolean
- TrackLinks
string
(values: None, HtmlAndTextTracking, HtmlOnlyTracking, TextOnlyTracking) - TrackOpens
boolean
- BounceHookUrl
DKIMRotationResponse
- DKIMRotationResponse
object
- DKIMHost
string
- DKIMPendingHost
string
- DKIMPendingTextValue
string
- DKIMRevokedHost
string
- DKIMRevokedTextValue
string
- DKIMTestValue
string
- DKIMUpdateStatus
string
- DKIMVerified
boolean
- ID
integer
- Name
string
- SafeToRemoveRevokedKeyFromDNS
boolean
- WeakDKIM
boolean
- DKIMHost
DomainCreationModel
- DomainCreationModel
object
- Name
string
- ReturnPathDomain
string
- Name
DomainEditingModel
- DomainEditingModel
object
- ReturnPathDomain
string
- ReturnPathDomain
DomainExtendedInformation
- DomainExtendedInformation
object
- DKIMHost
string
- DKIMPendingHost
string
- DKIMPendingTextValue
string
- DKIMRevokedHost
string
- DKIMRevokedTextValue
string
- DKIMTestValue
string
- DKIMUpdateStatus
string
- DKIMVerified
boolean
- ID
integer
- Name
string
- ReturnPathDomain
string
- ReturnPathDomainCNAMEValue
string
- ReturnPathDomainVerified
boolean
- SPFHost
string
- SPFTextValue
string
- SPFVerified
boolean
- SafeToRemoveRevokedKeyFromDNS
boolean
- WeakDKIM
boolean
- DKIMHost
DomainInformation
- DomainInformation
object
- DKIMVerified
boolean
- ID
integer
- Name
string
- ReturnPathDomainVerified
boolean
- SPFVerified
boolean
- WeakDKIM
boolean
- DKIMVerified
DomainListingResults
- DomainListingResults
object
- Domains
array
- items DomainInformation
- TotalCount
integer
- Domains
DomainSPFResult
- DomainSPFResult
object
- SPFHost
string
- SPFTextValue
string
- SPFVerified
boolean
- SPFHost
EditServerPayload
- EditServerPayload
object
- BounceHookUrl
string
- ClickHookUrl
string
- Color
string
- DeliveryHookUrl
string
- InboundDomain
string
- InboundHookUrl
string
- InboundSpamThreshold
integer
- Name
string
- OpenHookUrl
string
- PostFirstOpenOnly
boolean
- RawEmailEnabled
boolean
- SmtpApiActivated
boolean
- TrackLinks
string
(values: None, HtmlAndTextTracking, HtmlOnlyTracking, TextOnlyTracking) - TrackOpens
boolean
- BounceHookUrl
ExtendedServerInfo
- ExtendedServerInfo
object
- ApiTokens
array
- items
string
- items
- BounceHookUrl
string
- ClickHookUrl
string
- Color
string
- DeliveryHookUrl
string
- ID
integer
- InboundAddress
string
- InboundDomain
string
- InboundHash
string
- InboundHookUrl
string
- InboundSpamThreshold
integer
- Name
string
- OpenHookUrl
string
- PostFirstOpenOnly
boolean
- RawEmailEnabled
boolean
- ServerLink
string
- SmtpApiActivated
boolean
- TrackLinks
string
(values: None, HtmlAndTextTracking, HtmlOnlyTracking, TextOnlyTracking) - TrackOpens
boolean
- ApiTokens
SenderListingResults
- SenderListingResults
object
- SenderSignatures
array
- TotalCount
integer
- SenderSignatures
SenderSignatureCreationModel
- SenderSignatureCreationModel
object
- FromEmail
string
- Name
string
- ReplyToEmail
string
- ReturnPathDomain
string
- FromEmail
SenderSignatureEditingModel
- SenderSignatureEditingModel
object
- Name
string
- ReplyToEmail
string
- ReturnPathDomain
string
- Name
SenderSignatureExtendedInformation
- SenderSignatureExtendedInformation
object
- Confirmed
boolean
- DKIMHost
string
- DKIMPendingHost
string
- DKIMPendingTextValue
string
- DKIMRevokedHost
string
- DKIMRevokedTextValue
string
- DKIMTestValue
string
- DKIMUpdateStatus
string
- DKIMVerified
boolean
- Domain
string
- EmailAddress
string
- ID
integer
- Name
string
- ReplyToEmailAddress
string
- ReturnPathDomain
string
- ReturnPathDomainCNAMEValue
string
- ReturnPathDomainVerified
boolean
- SPFHost
string
- SPFTextValue
string
- SPFVerified
boolean
- SafeToRemoveRevokedKeyFromDNS
boolean
- WeakDKIM
boolean
- Confirmed
SenderSignatureInformation
- SenderSignatureInformation
object
- Confirmed
boolean
- Domain
string
- EmailAddress
string
- ID
integer
- Name
string
- ReplyToEmailAddress
string
- Confirmed
ServerListingResponse
- ServerListingResponse
object
: The results of listing servers.- Servers
array
- items ExtendedServerInfo
- TotalCount
integer
- Servers
StandardPostmarkResponse
- StandardPostmarkResponse
object
: A Postmark API error.- ErrorCode
integer
- Message
string
- ErrorCode
TemplatesPushModel
- TemplatesPushModel
object
- DestinationServerId
integer
- PerformChanges
boolean
- SourceServerId
integer
- DestinationServerId
TemplatesPushResponse
- TemplatesPushResponse
object
- Templates
array
- items
object
- Action
string
- Alias
string
- Name
string
- TemplateId
integer
- Action
- items
- TotalCount
integer
- Templates