View as Markdown
Seven icon

Seven ACTION

Get Analytics

Retrieve account statistics (SMS, RCS, voice, HLR, usage). See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Seven account once, then configure and run Get Analytics from your backend or agent.

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 result = await pd.actions.run({
  id: "seven-get-analytics",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    seven: { authProvisionId: "apn_xxxxxxx" },
    start: "Start Date",
    end: "End Date",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Get Analytics inputs
Property Type Description
start Start Date string
Start date of the statistics in the format YYYY-MM-DD. The date from 30 days ago is set by default
Optional
end End Date string
End date of the statistics. The current day by default
Optional
label Label string
Only shows data for a specific label. Accepts 'all' for all labels.
Optional
subaccounts Subaccounts string
Receive data only for the main account, for all your (sub)accounts or only for specific subaccounts
Optional Dynamic
groupBy Group By string
How to group the data.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
seven-get-analytics
Version
0.0.2
App
Seven
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes