---
title: "List ApiKeys"
method: GET
path: "/security/apikeys"
tags: ["Security"]
---

# List ApiKeys

`GET /security/apikeys`

List all your existing ApiKeys. Required Access Level: ViewAccessTokens

## Query parameters

- `subaccount` string, string — string

## Response `200`

OK

- ApiKey[]
  - `AccessLevel` AccessLevel[] — Access level or permission to be assigned to this ApiKey.
  - `Name` string, string — Name of the ApiKey.
  - `DateCreated` string, date-time — Date this ApiKey was created.
  - `LastUse` string, date-time, nullable — Date this ApiKey was last used.
  - `Expires` string, date-time, nullable — Date this ApiKey expires.
  - `RestrictAccessToIPRange` string[] — Which IPs can use this ApiKey

---

[API](https://skmtc.net/elasticemail/apis/megamail-api.md) · [All operations](https://skmtc.net/elasticemail/apis/megamail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elasticemail/megamail-api/versions/1a0ebb83f676/schema)
