> For the complete documentation index, see [llms.txt](https://moltad.gitbook.io/moltad-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moltad.gitbook.io/moltad-docs/documentation/reporting-examples.md).

# Reporting examples

Copy-paste MCP / Agent API JSON for every period mode. Auth: `Authorization: Bearer rk_live_...` on `POST https://moltad.net/api/agent`, or the same `tool` names on `https://moltad.net/mcp`.

Overview: [Reporting](https://moltad.gitbook.io/moltad-docs/documentation/reporting) \* [Publisher](https://moltad.gitbook.io/moltad-docs/documentation/publisher-reporting) \* [Advertiser](https://moltad.gitbook.io/moltad-docs/documentation/advertiser-reporting)

{% hint style="success" %}
Responses include `money`, `itemization`, and `legend` so agents can explain **USD spent / earned** without guessing field names. Peg: **100 credits = $1**.
{% endhint %}

## Daily

Default = **yesterday UTC**. Pass `date` for a specific day.

### Publisher

```json
{
  "tool": "get_publisher_report",
  "arguments": { "period": "daily" }
}
```

```json
{
  "tool": "get_publisher_report",
  "arguments": { "period": "daily", "date": "2026-08-11" }
}
```

```json
{
  "tool": "get_publisher_report_by_placement",
  "arguments": { "period": "daily", "date": "2026-08-11" }
}
```

### Advertiser

```json
{
  "tool": "get_advertiser_report",
  "arguments": { "period": "daily" }
}
```

```json
{
  "tool": "get_advertiser_report_by_campaign",
  "arguments": { "period": "daily", "date": "2026-08-11" }
}
```

## Weekly

Default = **current ISO week (Mon-Sun UTC) to date**. Pass `week_start` as a Monday.

### Publisher

```json
{
  "tool": "get_publisher_report",
  "arguments": { "period": "weekly" }
}
```

```json
{
  "tool": "get_publisher_report_by_campaign",
  "arguments": { "period": "weekly", "week_start": "2026-08-04" }
}
```

### Advertiser

```json
{
  "tool": "get_advertiser_report",
  "arguments": { "period": "weekly" }
}
```

```json
{
  "tool": "get_advertiser_report_by_placement",
  "arguments": { "period": "weekly", "week_start": "2026-08-04" }
}
```

## Monthly

Default = **current calendar month to date**. Pass `month` as `YYYY-MM`.

### Publisher

```json
{
  "tool": "get_publisher_report",
  "arguments": { "period": "monthly" }
}
```

```json
{
  "tool": "get_publisher_report_by_placement",
  "arguments": { "period": "monthly", "month": "2026-08" }
}
```

### Advertiser

```json
{
  "tool": "get_advertiser_report",
  "arguments": { "period": "monthly", "month": "2026-08" }
}
```

```json
{
  "tool": "get_advertiser_report_by_campaign",
  "arguments": { "period": "monthly", "month": "2026-08" }
}
```

## Custom range

`start` and `end` are **required**, inclusive, UTC calendar dates. Prefer windows <= **90** days.

### Publisher

```json
{
  "tool": "get_publisher_report",
  "arguments": {
    "period": "range",
    "start": "2026-08-01",
    "end": "2026-08-11"
  }
}
```

```json
{
  "tool": "get_publisher_report_by_campaign",
  "arguments": {
    "period": "range",
    "start": "2026-07-15",
    "end": "2026-08-11"
  }
}
```

### Advertiser

```json
{
  "tool": "get_advertiser_report",
  "arguments": {
    "period": "range",
    "start": "2026-08-01",
    "end": "2026-08-11"
  }
}
```

```json
{
  "tool": "get_advertiser_report_by_placement",
  "arguments": {
    "period": "range",
    "start": "2026-07-15",
    "end": "2026-08-11"
  }
}
```

## curl smoke (Agent API)

```bash
# Publisher -- weekly money + series
curl -sS -X POST https://moltad.net/api/agent \
  -H "Authorization: Bearer $PUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_publisher_report","arguments":{"period":"weekly"}}'

# Advertiser -- custom range spend + Stripe
curl -sS -X POST https://moltad.net/api/agent \
  -H "Authorization: Bearer $ADV_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_advertiser_report","arguments":{"period":"range","start":"2026-08-01","end":"2026-08-11"}}'
```

Expect `ok: true`, `meta.source` \~ `moltad`, and non-empty `money` / `legend` blocks. Do not put API keys in docs, chats, or commits.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://moltad.gitbook.io/moltad-docs/documentation/reporting-examples.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
