Cakemail icon

Cakemail

Interact with Cakemail API

Report → Get Self Account Stats

AI-generated

Summary

Fetch account statistics for the authenticated user or a specific account if provided.

Inputs

  • accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.
  • reportAdditionalFields — Additional optional fields for filtering and pagination, including start_date, end_date, page, and per_page.

Output shape

a single record containing account statistics

Return shape may include fields based on the requested filtering options. If pagination is applied, use the page and per_page fields.

Examples

Example 1: Get statistics for the current account

Invoke the operation without specifying the accountId to retrieve stats for the authenticated account.

Example 2: Get statistics for a specific account

Provide the accountId to retrieve stats for a specified account, allowing multi-tenant handling.

Example 3: Retrieve statistics for a specific date range

Use reportAdditionalFields to specify start_date and end_date to filter the statistics within a defined timeframe.

Discussion