---
title: "Add Confluent account"
method: POST
path: "/api/v2/integrations/confluent-cloud/accounts"
tags: ["Confluent Cloud"]
---

# Add Confluent account

`POST /api/v2/integrations/confluent-cloud/accounts`

Create a Confluent account.

## Request body

- ConfluentAccountCreateRequest — Payload schema when adding a Confluent account.
  - `data` ConfluentAccountCreateRequestData, required — The data body for adding a Confluent account.
    - `attributes` ConfluentAccountCreateRequestAttributes, required — Attributes associated with the account creation request.
      - `api_key` string, required — The API key associated with your Confluent account.
      - `api_secret` string, required — The API secret associated with your Confluent account.
      - `resources` ConfluentAccountResourceAttributes[] — A list of Confluent resources associated with the Confluent account.
        - `enable_custom_metrics` boolean — Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
        - `id` string — The ID associated with a Confluent resource.
        - `resource_type` string, required — The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
        - `tags` string[] — A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
      - `tags` string[] — A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    - `type` 'confluent-cloud-accounts', required — The JSON:API type for this API. Should always be `confluent-cloud-accounts`.

## Response `201`

OK

- ConfluentAccountResponse — The expected response schema when getting a Confluent account.
  - `data` ConfluentAccountResponseData — An API key and API secret pair that represents a Confluent account.
    - `attributes` ConfluentAccountResponseAttributes, required — The attributes of a Confluent account.
      - `api_key` string, required — The API key associated with your Confluent account.
      - `resources` ConfluentResourceResponseAttributes[] — A list of Confluent resources associated with the Confluent account.
        - `enable_custom_metrics` boolean — Enable the `custom.consumer_lag_offset` metric, which contains extra metric tags.
        - `id` string — The ID associated with the Confluent resource.
        - `resource_type` string, required — The resource type of the Resource. Can be `kafka`, `connector`, `ksql`, or `schema_registry`.
        - `tags` string[] — A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
      - `tags` string[] — A list of strings representing tags. Can be a single key, or key-value pairs separated by a colon.
    - `id` string, required — A randomly generated ID associated with a Confluent account.
    - `type` 'confluent-cloud-accounts', required — The JSON:API type for this API. Should always be `confluent-cloud-accounts`.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
