---
title: "Get User Api Keys"
method: GET
path: "/api/user/api_key"
tags: ["User"]
---

# Get User Api Keys

`GET /api/user/api_key`

Get the api keys which belong to the auth'ed user. The actual api key values are not returned, only the ids, names, and creation dates.

## Response `200`

JSON body representing the api_key for the user

- ApiKeyRespBody[]
  - `created_at` string, date-time, required
  - `dataset_ids` string[], nullable
  - `id` string, uuid, required
  - `name` string, required
  - `organization_id` string, uuid, required
  - `organization_ids` string[], nullable
  - `role` integer, required
  - `updated_at` string, date-time, required

## Other responses

- `400` — Service error relating to creating api_key for the user

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
