---
title: "Create BYOC infrastructure enrollment token"
method: POST
path: "/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/enrollmentToken"
tags: ["Organization"]
---

# Create BYOC infrastructure enrollment token

`POST /v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/enrollmentToken`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/byocInfrastructure/{byocInfrastructureId}/enrollmentToken`
- Auth: HTTP basic

**This endpoint is in beta.** API contract is stable, and no breaking changes are expected in the future. <br /><br /> Restricted access only. Mints a token the connector enrolls the infrastructure with. Every call mints a new token; earlier tokens stay valid until they expire. Answers 409 until ClickHouse has admitted the roles the infrastructure registered, which follows creation within minutes.

## Path parameters

- `organizationId` string, uuid, required
- `byocInfrastructureId` string, uuid, required

## Request body

- ByocInfrastructureEnrollmentTokenPostRequest
  - `ttlSeconds` integer: Lifetime of the token in seconds: whole minutes between 3600 and 86400. Omitted: four hours

## Response `200`

Successful response

- object
  - `status` number: HTTP status code.
  - `requestId` string, uuid: Unique id assigned to every request. UUIDv4
  - `result` ByocInfrastructureEnrollmentToken
    - `token` string, required: One-time token the connector enrolls with. It cannot be read again after this response
    - `expiresAt` string, date-time, required: When the token expires. ISO-8601

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-11-20** `6c2218858de8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/byocInfrastructure/:byocInfrastructureId/enrollmentToken/post.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
