---
title: "List api keys of a project"
method: GET
path: "/api/v1/projects/{projectId}/api-keys"
tags: ["API keys"]
---

# List api keys of a project

`GET /api/v1/projects/{projectId}/api-keys`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/projects/{projectId}/api-keys`
- Auth: HTTP bearer

## Path parameters

- `projectId` integer, required

## Query parameters

- `cursor` string
- `limit` integer

## Response `200`

OK

- PageOutputBody2
  - `items` KeyBody[], nullable, required
    - `chat_access` 'all' | 'own', required: all: the key reads every WhatsApp chat of the workspace; own: only chats it wrote to itself
    - `created_at` string, date-time, required
    - `id` integer, required
    - `ip_allowlist` string[], nullable, required
    - `last_used_at` string, date-time, nullable, required
    - `name` string, required
    - `prefix` string, required
    - `project_id` integer, required
    - `revoked_at` string, date-time, nullable, required
    - `scopes` string[], nullable, required
  - `next_cursor` string

## Other responses

- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
