Anthropic Usage And Costs Integration

Create an Anthropic Usage and Costs account

Changed on

Create an Anthropic Usage and Costs integration account.

post/api/v2/integration-interfaces/anthropic-usage-and-costs/accounts

Request

  • Base URL
    https://api.datadoghq.com
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code/oauth2/v1/authorize
      Token URL/oauth2/v1/token

Request body

Example request

{
  "data": {
    "attributes": {
      "authentication": {
        "auth_type": "bearer_token",
        "token": "your-token"
      },
      "dataflows": {
        "anthropic-cloud-cost-metrics": {
          "enabled": true
        }
      },
      "name": "anthropic-acme"
    },
    "type": "integration-account"
  }
}

Response

Created

Example response

{
  "data": {
    "attributes": {
      "authentication": {
        "auth_type": "bearer_token"
      },
      "dataflows": {
        "anthropic-cloud-cost-metrics": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "anthropic-usage-metrics": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        },
        "claude-daily-usage-dora-metrics": {
          "enabled": true,
          "status": {
            "health": "DATAFLOW_HEALTH_OK",
            "updated_at": "2026-06-25T08:30:50Z"
          }
        }
      },
      "name": "anthropic-acme"
    },
    "id": "9b4c7e2a-1d6f-4a3b-8e5c-0f2d7a9b6c18",
    "type": "integration-account"
  }
}

Changes