---
title: "Returns a list of API keys in the project."
method: GET
path: "/organization/projects/{project_id}/api_keys"
tags: ["Projects"]
---

# Returns a list of API keys in the project.

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

## Path parameters

- `project_id` string, required

## Query parameters

- `limit` integer
- `after` string

## 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` 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-3.md) · [All operations](https://skmtc.net/openai/apis/openai-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openai/openai-api-3/versions/74cbcf73838f/schema)
