---
title: "Get earned GridCredits in $"
method: GET
path: "/v2/deployments/{userkey}/gridcredits/historical"
tags: ["deployment"]
---

# Get earned GridCredits in $

`GET /v2/deployments/{userkey}/gridcredits/historical`

## Request

- Base URL: `https://api.repositpower.com`
- URL: `https://api.repositpower.com/v2/deployments/{userkey}/gridcredits/historical`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/repositpower/apis/reposit-customer-api-openapi-3-0/docs/v2/deployments/:userkey/gridcredits/historical/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `userkey` string, required

## Query parameters

- `start` integer
- `end` integer
- `delta_t` integer

## Headers

- `Reposit-Auth` string

## Response `200`

Successful operation

- GridCreditsHistorical
  - `gridcredits` array[]
    - number[]

---

[API](https://skmtc.dev/repositpower/apis/reposit-customer-api-openapi-3-0.md) - [All operations](https://skmtc.dev/repositpower/apis/reposit-customer-api-openapi-3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/repositpower/apis/reposit-customer-api-openapi-3-0/revisions/8c625fc29409?raw)
