> ## Documentation Index
> Fetch the complete documentation index at: https://docs.series.hr/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Credit History

> Retrieve credit usage history over time

Retrieve historical credit usage data for a workspace across multiple months.

## Request

```bash theme={null}
curl -X GET "https://api.series.hr/activity-credits/history/workspace_12345?months=3" \
  -H "apikey: YOUR_API_KEY"
```

## Parameters

<ParamField path="workspaceId" type="string" required>
  The workspace ID
</ParamField>

<ParamField query="months" type="integer">
  Number of months to retrieve (default: 12)
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "workspaceId": "workspace_12345",
      "history": [
        {
          "month": "2024-01",
          "totalCredits": 10000,
          "usedCredits": 3500,
          "remainingCredits": 6500
        },
        {
          "month": "2023-12",
          "totalCredits": 10000,
          "usedCredits": 8200,
          "remainingCredits": 1800
        }
      ]
    }
  }
  ```
</ResponseField>


## OpenAPI

````yaml GET /activity-credits/history/{workspaceId}
openapi: 3.0.0
info:
  title: Series API
  version: 1.0.0
  description: >-
    Series API — a free REST API by Sailboat Games, LLC that lets Roblox
    communities programmatically manage workspaces, staff, sessions, time-off
    and activity data.
  contact:
    name: Sailboat Games, LLC.
    email: admin@sailboatgames.com
servers:
  - url: https://api.series.hr
    description: Production API
security:
  - ApiKeyAuth: []
paths:
  /activity-credits/history/{workspaceId}:
    get:
      tags:
        - Activity Credits
      summary: Get Credit History
      description: Retrieve credit usage history over time
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
        - name: months
          in: query
          schema:
            type: integer
      responses:
        '200':
          description: Credit history
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Pass your API key in the `apikey` header. Alternatively, the `x-api-key`
        header is also accepted.

````