---
title: "Get allow/deny list assignments for an API key"
method: GET
path: "/v1/accounts/{id}/api-keys/{keyId}/lists"
tags: ["Accounts"]
---

# Get allow/deny list assignments for an API key

`GET /v1/accounts/{id}/api-keys/{keyId}/lists`

## Request

- Base URL: `https://api.honkio.ca`
- URL: `https://api.honkio.ca/v1/accounts/{id}/api-keys/{keyId}/lists`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Requires `api_keys:r`.

## Path parameters

- `id` string, required
- `keyId` string, required

## Response `200`

The key's allow and deny lists, null when none is assigned.

- object: The key's allow and deny lists, null when none is assigned.
  - `allow_list` object, nullable, required
    - `id` string, required
    - `name` string, required
    - `description` string, nullable, required
  - `deny_list` object, nullable, required
    - `id` string, required
    - `name` string, required
    - `description` string, nullable, required

## Other responses

- `401`: Missing, invalid, revoked or expired API key.
- `402`: The account has no balance, or a LIVE key was used before the first top-up.
- `403`: FORBIDDEN: the id is not the calling key's account, or the key lacks the permission this operation requires.
- `404`: NOT_FOUND: no such resource on this account.
- `429`: Rate limit reached: 100 requests per second per account, or a route-specific limit (Retry-After set where one applies).
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/honkio/apis/honkio-api.md) · [All operations](https://skmtc.dev/honkio/apis/honkio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/honkio/apis/honkio-api/revisions/ce4ed3fe9691?raw)
