---
title: "List Organization Service Account Api Keys"
method: GET
path: "/organization/service-accounts/{service_account_id}/api-keys"
tags: ["service_accounts"]
---

# List Organization Service Account Api Keys

`GET /organization/service-accounts/{service_account_id}/api-keys`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/organization/service-accounts/{service_account_id}/api-keys`
- Auth: API key in cookie `fastapiusersauth`

## Path parameters

- `service_account_id` string, uuid, required

## Query parameters

- `limit` integer
- `cursor` string, nullable
- `reverse` boolean

## Response `200`

Successful Response

- CursorPaginatedResponseServiceAccountApiKeyRead
  - `items` ServiceAccountApiKeyRead[], required
    - `id` string, uuid, required
    - `name` string, required
    - `key_id` string, required
    - `preview` string, required
    - `created_by` string, uuid, nullable
    - `created_by_user` UserReadMinimal
      - `id` string, uuid, required
      - `email` string, email, required
      - `role` 'basic' | 'admin', required
      - `first_name` string, nullable
      - `last_name` string, nullable
    - `revoked_by` string, uuid, nullable
    - `revoked_by_user` UserReadMinimal
      - `id` string, uuid, required
      - `email` string, email, required
      - `role` 'basic' | 'admin', required
      - `first_name` string, nullable
      - `last_name` string, nullable
    - `last_used_at` string, date-time, nullable
    - `revoked_at` string, date-time, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `next_cursor` string, nullable: Cursor for next page
  - `prev_cursor` string, nullable: Cursor for previous page
  - `has_more` boolean: Whether more items exist
  - `has_previous` boolean: Whether previous items exist
  - `total_estimate` integer, nullable: Estimated total count from table statistics

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
