# get_website_credit_history (/docs/mcp/tools/get-website-credit-history)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/get_website_credit_history.mdx. */}

**Get website credit history** · Read-only

Returns the credit snapshots stored for one website: each entry has creditsLimit, creditsRemaining, creditsUsed, refreshOn and timestamps. Returns \{ history: [...] \}, the full list (no paging). Use it for a website that has its own credit allowance. For individual credit charges and refunds use get_credit_history. websiteId comes from list_websites.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites (24-character ID). |
| `page` | `number` | No | Accepted but currently ignored; the whole history is returned. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "get_website_credit_history",
  "title": "Get website credit history",
  "annotations": {
    "title": "Get website credit history",
    "readOnlyHint": true,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites (24-character ID)."
      },
      "page": {
        "type": "number",
        "description": "Accepted but currently ignored; the whole history is returned."
      }
    },
    "required": [
      "websiteId"
    ]
  }
}
```
