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

# GET /api/user/api_key

`GET /api/user/api_key`

GET operation for /api/user/api_key

## Query parameters

- `user` string, required

## Headers

- `X-EDH-USER` string, required
- `X-EDH-PASSWORD` string, required

## Response `200`

API key retrieved successfully

- object
  - `success` boolean
  - `message` string

## Other responses

- `400` — Missing required parameter
- `401` — Authentication required
- `404` — User not found

## Changes

- **2026-08-15** (v1) `058396b8f0f1` — 3 info
  - the endpoint scheme security `socaAuth AND socaToken` was added to the API
  - the endpoint scheme security `edhAuth AND edhToken` was removed from the API
  - the `message` response's property pattern was changed from `f'^[a-f0-9]{32}$'` to `^[a-f0-9]{32}$` for the status `200`
- **2026-04-21** (v1) `6db97cead8df` — 2 info
  - the endpoint scheme security `edhAuth AND edhToken` was added to the API
  - the endpoint scheme security `socaAuth AND socaToken` was removed from the API
- **2026-04-16** (v1) `50051f4491c5` — 2 breaking, 2 warning
  - added the new required `header` request parameter `X-EDH-PASSWORD`
  - added the new required `header` request parameter `X-EDH-USER`
  - deleted the `header` request parameter `X-SOCA-PASSWORD`
  - deleted the `header` request parameter `X-SOCA-USER`
- **2025-11-17** (v1) `0f78e4dd8dcc` — 2 info
  - api tag `User` added
  - api tag `User API Keys` removed
- **2025-08-05** (v1) `55c07c16d2e1` — 2 breaking, 2 warning, 4 info
  - added the new required `header` request parameter `X-SOCA-PASSWORD`
  - added the new required `header` request parameter `X-SOCA-USER`
  - deleted the `header` request parameter `X-EDH-PASSWORD`
  - deleted the `header` request parameter `X-EDH-USER`
  - …4 more

[Change history](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/changes/api/user/api_key/get.md)

---

[API](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/revisions/058396b8f0f1/schema)
