---
title: "Create a Temporal Cloud OpenMetrics account"
method: POST
path: "/api/v2/integration-interfaces/temporal-cloud-openmetrics/accounts"
tags: ["Temporal Cloud OpenMetrics Integration"]
---

# Create a Temporal Cloud OpenMetrics account

`POST /api/v2/integration-interfaces/temporal-cloud-openmetrics/accounts`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integration-interfaces/temporal-cloud-openmetrics/accounts`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/integration-interfaces/temporal-cloud-openmetrics/accounts/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a Temporal Cloud OpenMetrics integration account.

## Request body

- TemporalCloudOpenMetricsIntegrationAccountCreateRequest: Request payload to create a Temporal Cloud OpenMetrics integration account.
  - `data` TemporalCloudOpenMetricsIntegrationAccountCreateData, required: Data envelope for creating a Temporal Cloud OpenMetrics integration account.
    - `attributes` TemporalCloudOpenMetricsIntegrationAccountCreateAttributes, required: Writable attributes used to create a Temporal Cloud OpenMetrics integration account.
      - `authentication` TemporalCloudOpenMetricsIntegrationAccountAuthenticationRequest, required: Bearer token authentication. Use the API key of a Temporal Cloud service account with the Metrics Read-Only account-level role.
        - `auth_type` 'bearer_token', required: The authentication method type.
        - `token` string, required: Secret token used to authenticate with Temporal Cloud.
      - `name` string, required: Human-readable name of the Temporal Cloud OpenMetrics integration account.
      - `settings` TemporalCloudOpenMetricsIntegrationAccountSettingsRequest, required: Settings for creating the Temporal Cloud OpenMetrics integration account.
        - `include_opt_in_labels` boolean: When enabled, Datadog collects Temporal Cloud's [opt-in labels](https://docs.temporal.io/cloud/metrics/openmetrics/metrics-reference#opt-in-labels) (activity type, worker deployment name, and worker build ID) for more granularity on your existing metrics. Enabling them may increase metric collection latency. Defaults to `false`.
        - `namespaces_to_include` string: Comma-separated list of Temporal Cloud namespaces to collect metrics for. An entry can use `*` as a wildcard. For example, `prod-*` matches every namespace starting with `prod-`. Entries may contain only lowercase letters, digits, hyphens, periods, and `*`. Any other value is rejected with a `422` response. Omit this field or leave it empty to collect metrics for all namespaces.
    - `type` 'integration-account', required: The type of the integration account resource. Always `integration-account`.

## Response `201`

Created

- TemporalCloudOpenMetricsIntegrationAccountResponse: Response payload for a single Temporal Cloud OpenMetrics integration account.
  - `data` TemporalCloudOpenMetricsIntegrationAccountResponseData, required: Data envelope of a Temporal Cloud OpenMetrics integration account, including server-assigned identity.
    - `attributes` TemporalCloudOpenMetricsIntegrationAccountResponseAttributes, required: Attributes of a Temporal Cloud OpenMetrics integration account returned in responses.
      - `authentication` TemporalCloudOpenMetricsIntegrationAccountAuthenticationResponse: The bearer token authentication method configured on the account.
        - `auth_type` 'bearer_token', required: The authentication method type.
      - `dataflows` TemporalCloudOpenMetricsIntegrationDataflowsResponse: Data Datadog collects from Temporal Cloud OpenMetrics, keyed by dataflow ID.
        - `temporal-cloud-openmetrics-metrics` TemporalCloudOpenMetricsMetricsIntegrationDataflowResponse: Temporal Cloud operational metrics for your namespaces, workflows, and task queues, such as workflow and activity rates, task polling, and service request latency, collected from Temporal Cloud's OpenMetrics endpoint. This is the integration's only collection: it is always on and cannot be turned off, which is why it appears only in responses.
          - `enabled` boolean: Whether Datadog collects this data. Always `true`, because this collection cannot be turned off.
          - `status` IntegrationAccountDataflowStatus: Read-only collection status of a dataflow.
            - `health` 'DATAFLOW_HEALTH_OK' | 'DATAFLOW_HEALTH_BROKEN' | 'DATAFLOW_HEALTH_UNKNOWN': Collection health of a single dataflow.
            - `message` string: Human-readable detail, populated when the dataflow is not healthy.
            - `updated_at` string, date-time: Time the status was last computed.
      - `name` string, required: Human-readable name of the Temporal Cloud OpenMetrics integration account.
      - `settings` TemporalCloudOpenMetricsIntegrationAccountSettingsResponse, required: Settings configured on the Temporal Cloud OpenMetrics integration account.
        - `include_opt_in_labels` boolean: When enabled, Datadog collects Temporal Cloud's [opt-in labels](https://docs.temporal.io/cloud/metrics/openmetrics/metrics-reference#opt-in-labels) (activity type, worker deployment name, and worker build ID) for more granularity on your existing metrics. Enabling them may increase metric collection latency.
        - `namespaces_to_include` string: Comma-separated list of Temporal Cloud namespaces to collect metrics for. An entry can use `*` as a wildcard. For example, `prod-*` matches every namespace starting with `prod-`. Empty or absent when metrics are collected for all namespaces.
    - `id` string, required: Server-generated unique identifier of the Temporal Cloud OpenMetrics integration account.
    - `type` 'integration-account', required: The type of the integration account resource. Always `integration-account`.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `422`: The server cannot process the request because it contains invalid data.
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
