All URIs are relative to https://api.datadoghq.com
| Method | HTTP request | Description |
|---|---|---|
| validate | GET /api/v1/validate | Validate API key |
AuthenticationValidationResponse validate()
Check if the API key (not the APP key) is valid. If invalid, a 403 is returned.
import { v1 } from "@datadog/datadog-api-client";
import * as fs from "fs";
const configuration = v1.createConfiguration();
const apiInstance = new v1.AuthenticationApi(configuration);
apiInstance
.validate()
.then((data: any) => {
console.log(
"API called successfully. Returned data: " + JSON.stringify(data)
);
})
.catch((error: any) => console.error(error));This endpoint does not need any parameter.
AuthenticationValidationResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 403 | Authentication error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]