Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.63 KB

File metadata and controls

58 lines (38 loc) · 1.63 KB

datadog-api-client.v1.AuthenticationApi

All URIs are relative to https://api.datadoghq.com

Method HTTP request Description
validate GET /api/v1/validate Validate API key

validate

AuthenticationValidationResponse validate()

Check if the API key (not the APP key) is valid. If invalid, a 403 is returned.

Example

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));

Parameters

This endpoint does not need any parameter.

Return type

AuthenticationValidationResponse

Authorization

AuthZ, apiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
403 Authentication error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]