---
title: "Validate API key"
method: GET
path: "/api/v2/validate"
tags: ["Key Management"]
---

# Validate API key

`GET /api/v2/validate`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/validate`
- Auth: API key in header `DD-API-KEY`

Check if the API key is valid. Returns the organization UUID, API key ID, and associated scopes.

## Response `200`

OK

- ValidateV2Response: Response for the API key validation endpoint.
  - `data` ValidateV2Data, required: Data object containing the API key validation result.
    - `attributes` ValidateV2Attributes, required: Attributes of the API key validation response.
      - `api_key_id` string, required: The UUID of the API key.
      - `api_key_scopes` string[], required: List of scope names associated with the API key.
      - `valid` boolean, required: Whether the API key is valid.
    - `id` string, required: The UUID of the organization associated with the API key.
    - `type` 'validate_v2', required: Resource type for the API key validation response.

## Other responses

- `403`: Forbidden
- `429`: Too many requests

---

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