---
title: Create a CoreWeave integration account
description: Create a CoreWeave integration account.
breadcrumbs: Docs > API > Create a CoreWeave integration account
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Create a CoreWeave integration account

## v2 (latest)

{% alert level="warning" %}
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help.md).
{% /alert %}

| Datadog site      | API endpoint                                                                              |
| ----------------- | ----------------------------------------------------------------------------------------- |
| app.datadoghq.com | POST https://api.datadoghq.com/api/v2/integration-interfaces/coreweave-cloud/accounts     |
| us3.datadoghq.com | POST https://api.us3.datadoghq.com/api/v2/integration-interfaces/coreweave-cloud/accounts |
| us5.datadoghq.com | POST https://api.us5.datadoghq.com/api/v2/integration-interfaces/coreweave-cloud/accounts |
| app.datadoghq.eu  | POST https://api.datadoghq.eu/api/v2/integration-interfaces/coreweave-cloud/accounts      |
| ap1.datadoghq.com | POST https://api.ap1.datadoghq.com/api/v2/integration-interfaces/coreweave-cloud/accounts |
| ap2.datadoghq.com | POST https://api.ap2.datadoghq.com/api/v2/integration-interfaces/coreweave-cloud/accounts |
| uk1.datadoghq.com | POST https://api.uk1.datadoghq.com/api/v2/integration-interfaces/coreweave-cloud/accounts |
| app.ddog-gov.com  | POST https://api.ddog-gov.com/api/v2/integration-interfaces/coreweave-cloud/accounts      |
| us2.ddog-gov.com  | POST https://api.us2.ddog-gov.com/api/v2/integration-interfaces/coreweave-cloud/accounts  |

### Overview

Create a CoreWeave integration account.

This endpoint requires the `manage_integrations` permission.

### Request

#### Body Data (required)

{% tabs %}
{% tab label="Model" %}
| Parent field                    | Field                           | Type     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------- | ------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                                 | data [*required*]               | object   | Data envelope for creating a CoreWeave integration account.                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| data                            | attributes [*required*]         | object   | Writable attributes used to create a CoreWeave integration account.                                                                                                                                                                                                                                                                                                                                                                                                                            |
| attributes                      | authentication [*required*]     | <oneOf>  | Authentication for creating the CoreWeave integration account. Exactly one method is set.                                                                                                                                                                                                                                                                                                                                                                                                      |
| authentication                  | <auth_type=coreweave_api_token> | object   | API token authentication, the only method CoreWeave integration accounts support. Create the token in the CoreWeave Cloud console under Access Tokens; it starts with `CW-SECRET-`. The user who owns the token must have the Observability Viewer role, because tokens inherit their user's permissions.                                                                                                                                                                                      |
| <auth_type=coreweave_api_token> | api_token [*required*]          | string   | Secret CoreWeave API access token used to authenticate with CoreWeave. Values that do not start with `CW-SECRET-` are rejected with a `422` response.                                                                                                                                                                                                                                                                                                                                          |
| <auth_type=coreweave_api_token> | auth_type [*required*]          | enum     | The authentication method type. Allowed enum values: `coreweave_api_token`. Default: `coreweave_api_token`.                                                                                                                                                                                                                                                                                                                                                                                    |
| attributes                      | dataflows                       | object   | Data Datadog collects from CoreWeave, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set `enabled` to start or stop it. Defaults listed on each dataflow apply when the account is created; on update, omitted dataflow ids keep their current values. Collection runs with the API access token in `authentication`, whose user must have the Observability Viewer role; a dataflow enabled without that role is stored but collects no data.                    |
| dataflows                       | coreweave-cloud-logs            | object   | Service logs for CoreWeave-managed components in each CoreWeave region: the CKS control plane (such as `kube-apiserver` and `etcd`), CoreWeave add-on services in the `cw-*` and `kube-system` namespaces, SUNK, and node system logs such as `kubelet` and `containerd`. Logs from your own workloads and Kubernetes audit logs are not collected. Logs are sent with `source:coreweave`, with CoreWeave log labels such as `namespace`, `app`, and `systemd_unit` added as tags.             |
| coreweave-cloud-logs            | enabled                         | boolean  | Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection.                                                                                                                                                                                                                                                                                                                                                                                                    |
| dataflows                       | coreweave-cloud-metrics         | object   | Metrics from your CoreWeave organization: CoreWeave service metrics collected through its PromQL-compatible Prometheus endpoint, plus the `coreweave.*` namespaces from CoreWeave products such as Kubernetes, Database, Distributed File Storage, Inference, and Object Storage. Compute metrics (`coreweave.bare_metal`, `coreweave.gpu`, `coreweave.nccl`, and `coreweave.node`) are in Preview. Container metrics are not collected; install the Datadog Agent on your clusters for those. |
| coreweave-cloud-metrics         | enabled                         | boolean  | Whether Datadog collects this data. Defaults to `true`; set to `false` to stop collection.                                                                                                                                                                                                                                                                                                                                                                                                     |
| attributes                      | name [*required*]               | string   | Human-readable name of the CoreWeave integration account.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| attributes                      | settings [*required*]           | object   | Settings for creating the CoreWeave integration account.                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| settings                        | account_tags                    | [string] | Tags added to all metrics and logs collected from this CoreWeave account. Defaults to no tags.                                                                                                                                                                                                                                                                                                                                                                                                 |
| settings                        | cluster_filters                 | [string] | Tag-filter rules limiting metric collection to matching clusters, for cost savings. Include rules (`key:value`) are combined with OR, exclusion rules (`!key:value`) are then applied with AND, and `?` and `*` are wildcards; for example `cluster:prod-*` collects only matching clusters and `!cluster:dev` excludes a cluster. Defaults to no filters: every cluster is collected. Only cluster-scoped metrics are filtered; billing and object storage metrics are always collected.      |
| data                            | type [*required*]               | enum     | The type of the integration account resource. Always `integration-account`. Allowed enum values: `integration-account`. Default: `integration-account`.                                                                                                                                                                                                                                                                                                                                        |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "authentication": {
        "api_token": "CW-SECRET-xxxxxxxxxxxxxxxxxxxx",
        "auth_type": "coreweave_api_token"
      },
      "dataflows": {
        "coreweave-cloud-logs": {
          "enabled": true
        },
        "coreweave-cloud-metrics": {
          "enabled": true
        }
      },
      "name": "coreweave-prod",
      "settings": {
        "account_tags": [
          "env:prod",
          "team:gpu"
        ],
        "cluster_filters": [
          "cluster:prod-*",
          "!cluster:dev"
        ]
      }
    },
    "type": "integration-account"
  }
}
```
{% /tab %}
{% /tabs %}

### Response

{% tabs %}
{% tab label="201" %}
Created

{% tabs %}
{% tab label="Model" %}
Response payload for a single CoreWeave integration account.

| Parent field                    | Field                           | Type     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------- | ------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                                 | data [*required*]               | object   | Data envelope of a CoreWeave integration account, including server-assigned identity.                                                                                                                                                                                                                                                                                                                                                                                                          |
| data                            | attributes [*required*]         | object   | Attributes of a CoreWeave integration account returned in responses.                                                                                                                                                                                                                                                                                                                                                                                                                           |
| attributes                      | authentication                  | <oneOf>  | Authentication configured on the CoreWeave integration account.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| authentication                  | <auth_type=coreweave_api_token> | object   | The API token authentication method configured on the account.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| <auth_type=coreweave_api_token> | auth_type [*required*]          | enum     | The authentication method type. Allowed enum values: `coreweave_api_token`. Default: `coreweave_api_token`.                                                                                                                                                                                                                                                                                                                                                                                    |
| attributes                      | dataflows                       | object   | Data Datadog collects from CoreWeave, keyed by dataflow id.                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| dataflows                       | coreweave-cloud-logs            | object   | Service logs for CoreWeave-managed components in each CoreWeave region: the CKS control plane (such as `kube-apiserver` and `etcd`), CoreWeave add-on services in the `cw-*` and `kube-system` namespaces, SUNK, and node system logs such as `kubelet` and `containerd`. Logs from your own workloads and Kubernetes audit logs are not collected. Logs are sent with `source:coreweave`, with CoreWeave log labels such as `namespace`, `app`, and `systemd_unit` added as tags.             |
| coreweave-cloud-logs            | enabled                         | boolean  | Whether Datadog collects this data. Absent when the dataflow has never been configured, in which case the documented default applies.                                                                                                                                                                                                                                                                                                                                                          |
| dataflows                       | coreweave-cloud-metrics         | object   | Metrics from your CoreWeave organization: CoreWeave service metrics collected through its PromQL-compatible Prometheus endpoint, plus the `coreweave.*` namespaces from CoreWeave products such as Kubernetes, Database, Distributed File Storage, Inference, and Object Storage. Compute metrics (`coreweave.bare_metal`, `coreweave.gpu`, `coreweave.nccl`, and `coreweave.node`) are in Preview. Container metrics are not collected; install the Datadog Agent on your clusters for those. |
| coreweave-cloud-metrics         | enabled                         | boolean  | Whether Datadog collects this data. Absent when the dataflow has never been configured, in which case the documented default applies.                                                                                                                                                                                                                                                                                                                                                          |
| attributes                      | name [*required*]               | string   | Human-readable name of the CoreWeave integration account.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| attributes                      | settings [*required*]           | object   | Settings configured on the CoreWeave integration account.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| settings                        | account_tags                    | [string] | Tags added to all data collected from this CoreWeave account.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| settings                        | cluster_filters                 | [string] | Tag-filter rules limiting metric collection to matching clusters. Absent when no filters are configured.                                                                                                                                                                                                                                                                                                                                                                                       |
| data                            | id [*required*]                 | string   | Server-generated unique identifier of the CoreWeave integration account. Read-only.                                                                                                                                                                                                                                                                                                                                                                                                            |
| data                            | type [*required*]               | enum     | The type of the integration account resource. Always `integration-account`. Allowed enum values: `integration-account`. Default: `integration-account`.                                                                                                                                                                                                                                                                                                                                        |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": {
    "attributes": {
      "authentication": {
        "auth_type": "coreweave_api_token"
      },
      "dataflows": {
        "coreweave-cloud-logs": {
          "enabled": true
        },
        "coreweave-cloud-metrics": {
          "enabled": true
        }
      },
      "name": "coreweave-prod",
      "settings": {
        "account_tags": [
          "env:prod",
          "team:gpu"
        ],
        "cluster_filters": [
          "cluster:prod-*",
          "!cluster:dev"
        ]
      }
    },
    "id": "f7a8b9c0-d1e2-4f3a-9b4c-5d6e7f8091a2",
    "type": "integration-account"
  }
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="400" %}
Bad Request

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="403" %}
Forbidden

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="404" %}
Not Found

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="422" %}
The server cannot process the request because it contains invalid data.

{% tabs %}
{% tab label="Model" %}
API error response.

| Parent field | Field               | Type     | Description                                                                     |
| ------------ | ------------------- | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | code                | string   | An application-specific error code.                                             |
| errors       | detail              | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                | object   | Non-standard meta-information about the error                                   |
| errors       | source              | object   | References to the source of the error.                                          |
| source       | header              | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter           | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer             | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status              | string   | Status code of the response.                                                    |
| errors       | title               | string   | Short human-readable summary of the error.                                      |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    {
      "code": "invalid_request",
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "Bad Request"
    }
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, us2.ddog-gov.com
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X POST "https://api.${DD_SITE}/api/v2/integration-interfaces/coreweave-cloud/accounts" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
  "data": {
    "attributes": {
      "authentication": {
        "api_token": "CW-SECRET-xxxxxxxxxxxxxxxxxxxx",
        "auth_type": "coreweave_api_token"
      },
      "dataflows": {
        "coreweave-cloud-logs": {
          "enabled": true
        },
        "coreweave-cloud-metrics": {
          "enabled": true
        }
      },
      "name": "coreweave-prod",
      "settings": {
        "account_tags": [
          "env:prod",
          "team:gpu"
        ],
        "cluster_filters": [
          "cluster:prod-*",
          "!cluster:dev"
        ]
      }
    },
    "type": "integration-account"
  }
}
EOF
```
{% /tab %}
{% /tabs %}
