---
title: "List public keys"
method: GET
path: "/public-keys"
tags: ["Public Keys"]
---

# List public keys

`GET /public-keys`

List public keys within one project.

## Query parameters

- `projectId` string, uuid — Project to list keys for. Auto-filled from CLI and SDK context when omitted.
- `limit` integer — Maximum number of keys to return per page.
- `cursor` string, uuid — Cursor from a previous response's nextCursor to fetch the next page.

## Response `200`

OK

- object
  - `publicKeys` object[], required
    - `id` string, uuid, required
    - `name` string, required
    - `expiresAt` string, date-time, nullable, required
    - `lastUsedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required
    - `projectId` string, uuid, required
    - `dataSourceConnectionId` string, uuid, nullable, required — Linked data source connection ID when this key is scoped to one data source.
    - `deactivatedAt` string, date-time, nullable, required — Timestamp when this public key was deactivated.
  - `nextCursor` string, uuid, nullable, required — Pass as 'cursor' to fetch the next page. Null when there are no more results.

---

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