---
title: "List Model API Keys"
method: GET
path: "/v2/gen-ai/models/api_keys"
tags: ["DigitalOcean-public.v2-new_GradientAI Platform"]
---

# List Model API Keys

`GET /v2/gen-ai/models/api_keys`

To list all model API keys, send a GET request to `/v2/gen-ai/models/api_keys`.

## Query parameters

- `page` integer
- `per_page` integer

## Response `200`

A successful response.

- ApiListModelAPIKeysOutput
  - `api_key_infos` ApiModelAPIKeyInfo[] — Api key infos
    - `created_at` string, date-time — Creation date
    - `created_by` string, uint64 — Created by
    - `deleted_at` string, date-time — Deleted date
    - `name` string — Name
    - `secret_key` string
    - `uuid` string — Uuid
  - `links` ApiLinks — Links to other pages
    - `pages` ApiPages — Information about how to reach other pages
      - `first` string — First page
      - `last` string — Last page
      - `next` string — Next page
      - `previous` string — Previous page
  - `meta` ApiMeta — Meta information about the data set
    - `page` integer — The current page
    - `pages` integer — Total number of pages
    - `total` integer — Total amount of items over all pages

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

## Changes

- **2025-10-16** `cb3bf9b21459` — 2 info
  - api tag `DigitalOcean-public.v2-new_GradientAI Platform` added
  - api tag `GradientAI Platform` removed
- **2025-07-18** `f8e8c290636c` — 10 info
  - api operation id `list_model_api_keys` removed and replaced with `genai_list_model_api_keys`
  - the endpoint scheme security `bearer_auth` was added to the API
  - api tag `GradientAI Platform` added
  - api tag `GenAIAPI` removed
  - …6 more
- **2025-07-17** `5fc9af728e82` — 2 breaking, 3 warning, 8 info
  - for the `query` request parameter `page`, the type/format was changed from `integer`/`` to `integer`/`int64`
  - for the `query` request parameter `per_page`, the type/format was changed from `integer`/`` to `integer`/`int64`
  - the optional response header `ratelimit-limit` removed for the status `200`
  - the optional response header `ratelimit-remaining` removed for the status `200`
  - …9 more
- **2025-07-17** `f8e8c290636c` — 10 info
  - api operation id `list_model_api_keys` removed and replaced with `genai_list_model_api_keys`
  - the endpoint scheme security `bearer_auth` was added to the API
  - api tag `GradientAI Platform` added
  - api tag `GenAIAPI` removed
  - …6 more

[Change history](https://skmtc.dev/digitalocean/apis/digitalocean-api/changes/v2/gen-ai/models/api_keys/get.md)

---

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