---
title: "List API Keys"
method: GET
path: "/apikey"
tags: ["API Keys"]
---

# List API Keys

`GET /apikey`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/apikey`
- Auth: one of:
  - API key in header `AccessKey`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/apikey/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `page` integer
- `perPage` integer

## Response `200`

The list of all API keys on the account

- PaginationListModelOfApiKeyModel
  - `Items` ApiKeyModel[], nullable
    - `Id` integer
    - `Key` string, nullable
    - `Roles` string[], nullable
  - `CurrentPage` integer
  - `TotalItems` integer
  - `HasMoreItems` boolean

## Other responses

- `401`: The request authorization failed
- `500`: Internal Server Error

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
