---
title: "Validate API and application keys"
method: GET
path: "/api/v2/validate_keys"
tags: ["Key Management"]
---

# Validate API and application keys

`GET /api/v2/validate_keys`

## Request

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

Check that the API key and application key used for the request are both valid.
Returns `{"status": "ok"}` on success, `401` or `403` otherwise. Useful as a
lightweight authentication probe before issuing other API calls that require
full credentials.

## Response `200`

OK

- ValidateAPIKeyResponse: Response object for the API and application key validation status check.
  - `status` 'ok', required: Status of the validation. Always `ok` when both the API key and the application key are valid.

## Other responses

- `401`: Unauthorized
- `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)
