LettermintLettermint
  • Knowledge base
  • Community
  • Changelog
  • Support
  • Documentation
  • Sending API
  • Team API
Information
Generic
    Ping the APIget
Team
    Get team detailsgetUpdate team settingsputGet team usage statisticsgetGet team membersget
Domain
    List all domains for the teamgetCreate a new domainpostGet domain detailsgetDelete a domaindeleteVerify all DNS records for a domainpostVerify a specific DNS recordpostUpdate projects associated with a domainput
Project
    List all projects for the teamgetCreate a new projectpostGet project detailsgetUpdate project settingsputDelete a projectdeleteRotate project API tokenpostUpdate project membersputAdd a member to the projectpostRemove a member from the projectdeleteList routes for a projectgetCreate a new routepostGet route detailsgetUpdate route settingsputDelete a routedeleteVerify inbound domain for a routepost
Webhook
    List all webhooks for the teamgetCreate a new webhookpostGet webhook detailsgetUpdate webhook settingsputDelete a webhookdeleteTest a webhook by sending a sample payloadpostRegenerate webhook secretpostGet webhook deliveriesgetGet a specific webhook deliveryget
Message
    List messages for the teamgetGet message detailsgetGet message eventsgetGet message sourcegetGet message HTML contentgetGet message plain text contentget
Suppression
    List all suppressions for the teamgetAdd email(s) to suppression listpostRemove email from suppression listdelete
Stats
    Get message statisticsget
Schemas
Lettermint Team API
Lettermint Team API

Stats


Get message statistics

GET
https://api.lettermint.co/v1
/stats

Returns aggregate message statistics for the specified date range. Provide a project_id to get per-project stats with transactional/broadcast breakdown. Without project_id, returns team-wide totals from team_message_stats. Maximum date range is 90 days.

Get message statistics › query Parameters

from
​string · required

Start date (Y-m-d)

to
​string · required

End date (Y-m-d, max 90 days from from)

from
​string · date · required
to
​string · date · required
project_id
​string

Optional project UUID for project-scoped stats with transactional/broadcast breakdown

include_machine
​boolean

Include machine/privacy/security tracking observations in open and click totals

project_id
​string | null · uuid
include_machine
​boolean
Default: false

Get message statistics › Headers

Authorization
​string · required

Bearer token. Format: Bearer {team_token}

Get message statistics › Responses

StatsData

StatsData
from
​string · required
to
​string · required
​StatsTotalsData · required
​StatsDailyData[] · required
GET/stats
curl --request GET \ --url 'https://api.lettermint.co/v1/stats?from=%3Cstring%3E&from=%3Cstring%3E&to=%3Cstring%3E&to=%3Cstring%3E' \ --header 'Authorization: <string>'
Example Responses
{ "from": "from", "to": "to", "totals": { "sent": 0, "delivered": 0, "hard_bounced": 0, "spam_complaints": 0, "opened": 0, "clicked": 0, "inbound": { "received": 0 }, "transactional": { "sent": 0, "hard_bounced": 0, "spam_complaints": 0 }, "broadcast": { "sent": 0, "hard_bounced": 0, "spam_complaints": 0 }, "effective_opened": 0, "machine_opened": 0, "machine_clicked": 0 }, "daily": [ { "date": "date", "sent": 0, "delivered": 0, "hard_bounced": 0, "spam_complaints": 0, "opened": 0, "clicked": 0, "inbound": { "received": 0 }, "transactional": { "sent": 0, "hard_bounced": 0, "spam_complaints": 0 }, "broadcast": { "sent": 0, "hard_bounced": 0, "spam_complaints": 0 }, "effective_opened": 0, "machine_opened": 0, "machine_clicked": 0 } ] }
json
application/json

Suppression