---
title: "List project API keys"
method: GET
path: "/organization/projects/{project_id}/api_keys"
tags: ["Projects"]
---

# List project API keys

`GET /organization/projects/{project_id}/api_keys`

Returns a list of API keys in the project.

## Path parameters

- `project_id` string, required

## Query parameters

- `limit` integer
- `after` string
- `owner_project_access` 'active' | 'inactive' | 'any'

## Response `200`

Project API keys listed successfully.

- ProjectApiKeyListResponse
  - `object` 'list', required
  - `data` ProjectApiKey[], required
    - `object` 'organization.project.api_key', required — The object type, which is always `organization.project.api_key`
    - `redacted_value` string, required — The redacted value of the API key
    - `name` string, required — The name of the API key
    - `created_at` integer, required — The Unix timestamp (in seconds) of when the API key was created
    - `last_used_at` integer, nullable, required — The Unix timestamp (in seconds) of when the API key was last used.
    - `id` string, required — The identifier, which can be referenced in API endpoints
    - `owner_project_access` 'active' | 'inactive', required — Whether the API key's owner currently has effective access to the project.
    - `owner` object, required
      - `type` 'user' | 'service_account' — `user` or `service_account`
      - `user` ProjectApiKeyOwnerUser — The user that owns a project API key.
        - `id` string, required — The identifier, which can be referenced in API endpoints
        - `email` string, required — The email address of the user.
        - `name` string, required — The name of the user.
        - `created_at` integer, required — The Unix timestamp (in seconds) of when the user was created.
        - `role` string, required — The user's project role.
      - `service_account` ProjectApiKeyOwnerServiceAccount — The service account that owns a project API key.
        - `id` string, required — The identifier, which can be referenced in API endpoints
        - `name` string, required — The name of the service account.
        - `created_at` integer, required — The Unix timestamp (in seconds) of when the service account was created.
        - `role` string, required — The service account's project role.
  - `first_id` string, nullable
  - `last_id` string, nullable
  - `has_more` boolean, required

---

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