npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@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

Output

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

Output

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.

Output

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.

Output

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

Output

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.

Output

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.

Output

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.

Output

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.

Output

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

Output

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

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.

Output

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.

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

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.

Output

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.

Output

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.

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

Output

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

Output

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.

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.

Output

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

Output

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

Output

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

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

DomainCreationModel

  • DomainCreationModel object
    • Name string
    • ReturnPathDomain string

DomainEditingModel

  • DomainEditingModel object
    • ReturnPathDomain string

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

DomainInformation

  • DomainInformation object
    • DKIMVerified boolean
    • ID integer
    • Name string
    • ReturnPathDomainVerified boolean
    • SPFVerified boolean
    • WeakDKIM boolean

DomainListingResults

DomainSPFResult

  • DomainSPFResult object
    • SPFHost string
    • SPFTextValue string
    • SPFVerified boolean

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

ExtendedServerInfo

  • ExtendedServerInfo object
    • ApiTokens array
      • items string
    • 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

SenderListingResults

SenderSignatureCreationModel

  • SenderSignatureCreationModel object
    • FromEmail string
    • Name string
    • ReplyToEmail string
    • ReturnPathDomain string

SenderSignatureEditingModel

  • SenderSignatureEditingModel object
    • Name string
    • ReplyToEmail string
    • ReturnPathDomain string

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

SenderSignatureInformation

  • SenderSignatureInformation object
    • Confirmed boolean
    • Domain string
    • EmailAddress string
    • ID integer
    • Name string
    • ReplyToEmailAddress string

ServerListingResponse

  • ServerListingResponse object: The results of listing servers.

StandardPostmarkResponse

  • StandardPostmarkResponse object: A Postmark API error.
    • ErrorCode integer
    • Message string

TemplatesPushModel

  • TemplatesPushModel object
    • DestinationServerId integer
    • PerformChanges boolean
    • SourceServerId integer

TemplatesPushResponse

  • TemplatesPushResponse object
    • Templates array
      • items object
        • Action string
        • Alias string
        • Name string
        • TemplateId integer
    • TotalCount integer