---
title: "Get API keys"
method: GET
path: "/api/v1/authenticated/api_keys"
tags: ["OAuth2-specific"]
---

# Get API keys

`GET /api/v1/authenticated/api_keys`

Returns the API keys for the authenticated user. Requires an OAuth2 access token (Bearer header). Warning: This returns sensitive information.

## Response `200`

successful

- object
  - `token` string

## Other responses

- `401` — unauthorized — Returned when the OAuth access token is missing or invalid.

## Changes

- **2026-06-07** (v1) `10d87f00ef0b` — 4 info
  - the endpoint scheme security `Bearer` was added to the API
  - the endpoint scheme security `Bearer AND ApiKeyAuth` was removed from the API
  - api tag `OAuth2-specific` added
  - api tag `Authenticated` removed
- **2026-01-27** (v1) `b6d6849481da` — 4 info
  - the endpoint scheme security `Bearer AND ApiKeyAuth` was added to the API
  - the endpoint scheme security `Bearer` was removed from the API
  - api tag `Authenticated` added
  - api tag `OAuth2-specific` removed

[Change history](https://skmtc.dev/hackclub/apis/hackatime-api/changes/api/v1/authenticated/api_keys/get.md)

---

[API](https://skmtc.dev/hackclub/apis/hackatime-api.md) · [All operations](https://skmtc.dev/hackclub/apis/hackatime-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hackclub/hackatime-api/revisions/172c35ec816f/schema)
