logo
AnalyticsPer-mailbox analytics

Per-mailbox analytics

Returns detailed analytics for a single mailbox, including:

  • Mailbox info (email, displayName, status)
  • Aggregated campaign email stats (sent, opened, clicked, bounced, replied)
  • Computed rates (open, click, bounce, reply)

Without from/to, returns all-time data. Supply one or both to filter by date range.

curl -X GET "https://api.sendkit.ai/v1/analytics/mailboxes/example_string?from=2024-05-01&to=2024-05-31" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "mailbox": {
      "id": "example_string",
      "email": "user@example.com",
      "displayName": "John Doe",
      "status": "example_string"
    },
    "stats": {
      "sent": 42,
      "opened": 42,
      "clicked": 42,
      "bounced": 42,
      "replied": 42,
      "positiveReplied": 42
    },
    "rates": {
      "open": "example_string",
      "click": "example_string",
      "bounce": "example_string",
      "reply": "example_string",
      "positiveReply": "example_string"
    }
  }
}
GET
/v1/analytics/mailboxes/{mailboxId}
GET
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
query
fromstring

Start date (ISO 8601 or date string). Omit for no lower bound.

Format: date
query
tostring

End date (ISO 8601 or date string). Omit for no upper bound.

Format: date
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

Path Parameters

Query Parameters

fromstring

Start date (ISO 8601 or date string). Omit for no lower bound.

tostring

End date (ISO 8601 or date string). Omit for no upper bound.

Responses

successboolean
dataobject