---
title: "List a project's analytics ingest keys, newest first."
method: GET
path: "/projects/{project_id}/analytics/ingest-keys"
tags: ["Analytics Ingest Keys"]
---

# List a project's analytics ingest keys, newest first.

`GET /projects/{project_id}/analytics/ingest-keys`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/analytics/ingest-keys`
- Auth: HTTP bearer

Includes revoked keys: revocation is soft, and an operator investigating
"which key sent this?" needs to see the rows that no longer work. Every
`public_key` is returned unmasked — see [`create_analytics_ingest_key`].

## Path parameters

- `project_id` integer, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

One page of ingest keys, active and revoked, newest first

- AnalyticsIngestKeyList: One page of a project's analytics ingest keys, newest first.
  - `items` AnalyticsIngestKey[], required: The items on this page.
    - `allowed_origins` string[], nullable: Exact origins (`scheme://host[:port]`) permitted to use this key from a browser. `None` or `[]` means any origin. This is a browser-enforced convenience control, not authentication — a non-browser client ignores `Origin` entirely.
    - `created_at` string, date-time, required
    - `created_by_user_id` integer, nullable
    - `environment_id` integer, nullable: `None` means the key is scoped to the whole project. An environment-scoped key additionally attributes ingested data to that environment's current deployment, when it has one.
    - `event_count` integer, required
    - `id` integer, required
    - `is_active` boolean, required
    - `last_used_at` string, date-time, nullable
    - `name` string, required: Operator-facing label.
    - `project_id` integer, required
    - `public_key` string, required: The ingest key itself, `pa_` + 64 hex characters. **Not a secret.** It is designed to ship in client-side JavaScript and is returned unmasked so operators can copy it. See the module docs.
    - `rate_limit_per_minute` integer, nullable: `None` or `<= 0` means unlimited.
    - `revoked_at` string, date-time, nullable
    - `updated_at` string, date-time, required
  - `page` integer, required: The page served, starting at 1.
  - `page_size` integer, required: The page size served (at most 100).
  - `total` integer, required: Items across all pages.

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-26** `e1864d950604`: 1 breaking, 6 info
  - the response's body type changed from `array` to `object` for status `200`
  - added the new optional `query` request parameter `page`
  - added the new optional `query` request parameter `page_size`
  - added the required property `items` to the response with the `200` status
  - …3 more
- **2026-09-07** `c2a1f69745e7`: 1 info
  - endpoint added
- **2026-09-07** `7a3103561bd0`: 1 breaking
  - api path removed without deprecation
- **2026-09-07** `7fcff272f099`: 1 info
  - endpoint added
- **2026-09-07** `c1fa498b6377`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/analytics/ingest-keys/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
