---
title: "List Agent API Keys"
method: GET
path: "/v2/gen-ai/agents/{agent_uuid}/api_keys"
tags: ["DigitalOcean-public.v2-new_GradientAI Platform"]
---

# List Agent API Keys

`GET /v2/gen-ai/agents/{agent_uuid}/api_keys`

To list all agent API keys, send a GET request to `/v2/gen-ai/agents/{agent_uuid}/api_keys`.

## Path parameters

- `agent_uuid` string, required

## Query parameters

- `page` integer
- `per_page` integer

## Response `200`

A successful response.

- ApiListAgentAPIKeysOutput
  - `api_key_infos` ApiAgentAPIKeyInfo[] — 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.

---

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