---
title: "Validate API key"
method: GET
path: "/validate"
tags: ["Authentication"]
---

# Validate API key

`GET /validate`

## Request

- Base URL: `https://integrations.wellows.com/api/v1`
- URL: `https://integrations.wellows.com/api/v1/validate`
- Auth: API key in header `X-API-Key`

Validate an API key and return its details.

Use this endpoint to verify that an API key is valid.

## Headers

- `X-Project-ID` integer

## Response `200`

API key is valid

- ValidationResponse
  - `success` boolean
  - `message` string
  - `code` integer
  - `data` object
    - `valid` boolean: Always true if request succeeds
    - `key_level` 'USER' | 'PROJECT': API key scope level
    - `user_id` integer: ID of the key owner
    - `project_id` integer, nullable: Associated project ID (for PROJECT keys)
    - `expiry` string, date-time, nullable: Key expiration date (null if no expiry)
  - `errors` object
  - `meta_data` object

## Other responses

- `401`: Unauthorized - Invalid or missing API key

---

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