---
title: "List the organization's AI Gateway API keys"
method: GET
path: "/v1/org/ai-gateway/api-keys"
tags: ["Inference Providers"]
---

# List the organization's AI Gateway API keys

`GET /v1/org/ai-gateway/api-keys`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/ai-gateway/api-keys`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Returns every AI Gateway API key members of the organization created that is not revoked, expired ones included (never the secret), with the member each belongs to, and whether member keys are allowed. Requires the View Gateway providers permission.

## Response `200`

Keys returned.

- object
  - `enabled` boolean, required
  - `apiKeys` object[], required
    - `id` string, required
    - `name` string, required
    - `prefix` string, required
    - `createdAt` string, date-time, required
    - `lastUsedAt` string, date-time, nullable, required
    - `expiresAt` string, date-time, nullable, required
    - `member` object, required
      - `id` string, required
      - `name` string, required
      - `email` string, required
      - `image` string, nullable, required

## Other responses

- `401`: Authentication required.
- `403`: The caller lacks the View Gateway providers permission.
- `404`: The organization was not found.

## Changes

- **2026-11-10** `73cf944df667`: 2 breaking, 1 info
  - response property `apiKeys/items/expiresAt` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `apiKeys/items/lastUsedAt` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - the `apiKeys/items/createdAt` response's property pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` was added for the status `200`
- **2026-11-10** `02023e0242a2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/ai-gateway/api-keys/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
