---
title: "Validate an API key"
method: POST
path: "/api/auth/validate"
tags: ["Auth"]
---

# Validate an API key

`POST /api/auth/validate`

## Request

- Base URL: `https://api.dokmatiq.com`
- URL: `https://api.dokmatiq.com/api/auth/validate`
- Auth: API key in header `X-API-Key`

Validates an API key and returns the associated tenant details for portal integration.

## Request body

- ValidateApiKeyRequest
  - `apiKey` string: API key to validate

## Response `200`

OK

---

[API](https://skmtc.dev/dokmatiq/apis/docgen-api.md) · [All operations](https://skmtc.dev/dokmatiq/apis/docgen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dokmatiq/apis/docgen-api/revisions/3fa1a922764d?raw)
