---
title: "Get API key for the authenticated user"
method: GET
path: "/api/v3/user/api-key"
tags: ["Users"]
---

# Get API key for the authenticated user

`GET /api/v3/user/api-key`

## Request

- Base URL: `https://codemagic.io`
- URL: `https://codemagic.io/api/v3/user/api-key`
- Auth: API key in header `x-auth-token`
- TypeScript: <https://skmtc.dev/codemagic/apis/codemagic-api/docs/api/v3/user/api-key/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Request fulfilled, document follows

- ApiKeySchemaNoPagination
  - `data` ApiKeySchema, required
    - `api_key` string, required

## Other responses

- `401`: Authentication is missing or invalid
- `429`: The rate limit has been exceeded

---

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