title: datadog API python auth
body: <p>Is there a basic example of how to authenticate to datadog using the python lib <code>datadog_api_client.v2</code>? I was looking at their documentation <a href="https://datadoghq.dev/datadog-api-client-python/v2/#apikeyauth" rel="noreferrer">https://datadoghq.dev/datadog-api-client-python/v2/#apikeyauth</a> and am not seeing any examples I was expecting something along the lines of:</p>
  <pre><code>import datadog_api_client.v2
  import os
  from datadog_api_client.v2 import list_tag_configurations
  
  configuration = datadog_api_client.v2.Configuration(
      host = &quot;https://api.datadoghq.com&quot;
  )
  
  configuration.api_key['apiKeyAuth'] = os.getenv('123')
  
  with datadog_api_client.v2.ApiClient(configuration) as api_client:
      api_instance = list_tag_configurations(api_client)
      print(api_instance) 
  </code></pre>