Class: DatadogAPIClient::V2::AnthropicUsageAndCostsIntegrationAccountBearerTokenAuthRequest

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/anthropic_usage_and_costs_integration_account_bearer_token_auth_request.rb

Overview

Bearer token authentication. Use an Anthropic Admin API key (Platform plan) or an Analytics API key with the read:analytics scope (Enterprise plan). An invalid key, or an Analytics key without the read:analytics scope, is rejected with a 422 response.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#auth_type ⇒ Object

The authentication method type.



25
26
27
# File 'lib/datadog_api_client/v2/models/anthropic_usage_and_costs_integration_account_bearer_token_auth_request.rb', line 25

def auth_type
  @auth_type
end

#token ⇒ Object

Anthropic Admin API key with permission to read usage and cost data, or an Analytics API key with the read:analytics scope. Generate an Admin API key in the Anthropic Console under Settings > Admin Keys.



28
29
30
# File 'lib/datadog_api_client/v2/models/anthropic_usage_and_costs_integration_account_bearer_token_auth_request.rb', line 28

def token
  @token
end