Google Postmaster Tools TRIGGER
New Matched Traffic Stats
- Trigger
- Polling
- OAuth
- Webhook delivery
IMPLEMENTATION
Deploy this event source
Connect the user's Google Postmaster Tools account, configure the source, and choose the webhook where your backend receives events.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const deployed = await pd.triggers.deploy({
id: "google_postmaster_tools_api-new-matched-traffic-stats",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
google_postmaster_tools_api: { authProvisionId: "apn_xxxxxxx" },
timer: { "intervalSeconds": 900 },
domain: "Domain Name",
},
webhookUrl: "https://example.com/webhooks/google-postmaster-tools-api",
})
console.log(deployed.id)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/triggers/deploy \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "google_postmaster_tools_api-new-matched-traffic-stats",
"webhook_url": "https://example.com/webhooks/google-postmaster-tools-api",
"configured_props": {
"google_postmaster_tools_api": { "authProvisionId": "apn_xxxxxxx" },
"timer": { "intervalSeconds": 900 },
"domain": "Domain Name"
}
}'MCP servers expose Google Postmaster Tools actions as on-demand tools.
New Matched Traffic Stats is an event source, so your application deploys it
with the Connect SDK or API and then either receives each event at a
webhook URL or retrieves events on demand with the trigger events API.MCP exposes on-demand actions. Event sources are deployed through the Connect SDK or API because they continue listening after the initial request.
SCHEMA
Configuration
These inputs define which events the source watches. Dynamic options are loaded from the connected account.
| Property | Type | Description |
|---|---|---|
timer Timer | $.interface.timer | Required |
domain Domain Name | string | Select a domain or provide a custom domain name. Required Dynamic |
matchAllFilters Match All Filters | boolean | If true, events will only be emitted if they match all of the selected criteria. The default behavior is matching any of them. Optional |
ipReputation IP Reputation | string[] | Emit events only when there is at least one IP address in one of the specified categories Optional |
domainReputation Domain Reputation | string[] | Emit events only when the domain reputation matches one of the specified categories Optional |
userReportedSpamRatio User Reported Spam Ratio Greater Than or Equal To | string | Emit events only when the user reported spam ratio is greater than, or equal to, the specified value (can be a percentage, e.g. 10% or a ratio between 0 and 1, e.g. 0.1) Optional |
spfSuccessRatio SPF Success Ratio Less Than | string | Emit events only when the SPF success ratio is less than the specified value (can be a percentage, e.g. 10% or a ratio between 0 and 1, e.g. 0.1) Optional |
dkimSuccessRatio DKIM Success Ratio Less Than | string | Emit events only when the DKIM success ratio is less than the specified value (can be a percentage, e.g. 10% or a ratio between 0 and 1, e.g. 0.1) Optional |
dmarcSuccessRatio DMARC Success Ratio Less Than | string | Emit events only when the DMARC success ratio is less than the specified value (can be a percentage, e.g. 10% or a ratio between 0 and 1, e.g. 0.1) Optional |
outboundEncryptionRatio Outbound Encryption Ratio Less Than | string | Emit events only when the outbound encryption ratio is less than the specified value (can be a percentage, e.g. 10% or a ratio between 0 and 1, e.g. 0.1) Optional |
inboundEncryptionRatio Inbound Encryption Ratio Less Than | string | Emit events only when the inbound encryption ratio is less than the specified value (can be a percentage, e.g. 10% or a ratio between 0 and 1, e.g. 0.1) Optional |
errorRatio Error Ratio Greater Than or Equal To | string | Emit events only when the error ratio (in the specified Error Categories, or any if not specified) is greater than, or equal to, the specified value (can be a percentage, e.g. 10% or a ratio between 0 and 1, e.g. 0.1) Optional |
errorCategories Error Categories | string | Emit events only when one of the specified categories equals or exceeds the specified Error Ratio Optional |
LIFECYCLE
Event delivery
01
Connect
Your user authorizes Google Postmaster Tools through Pipedream managed auth.
02
Deploy
Your backend deploys this source with that user's own configuration.
03
Webhook delivery
Every event is sent to the HTTP endpoint you choose when you deploy the source — after each poll.
OR
On-demand retrieval
No webhook required. Your app or agent can fetch recent events from the trigger events API.
REFERENCE
Trigger details
- Registry key
- google_postmaster_tools_api-new-matched-traffic-stats
- Version
- 0.1.0
- App
- Google Postmaster Tools
- Authentication
- OAuth
- Delivery
- Polling source
- Output
- Events emitted by Google Postmaster Tools.
- Source
- View on GitHub ↗