---
title: "Generate Client Config Endpoint"
method: POST
path: "/user/generate-client-config"
tags: ["user"]
---

# Generate Client Config Endpoint

`POST /user/generate-client-config`

## Request body

- GenerateClientConfigRequest
  - `config_type` 'tenzir' | 'docker' | 'tenzir-node', required
  - `tenant_id` string, required
  - `node_name` string, nullable
  - `node_id` string, nullable

## Response `200`

Successful Response

- GenerateClientConfigResponse
  - `filename` string, required
  - `contents` string, required
  - `node_id` string, required

## Other responses

- `403` — `{"detail": "Invalid API Key"}` `{"detail": "Not permitted to access this tenant"}`
- `404` — `{"detail": "Tenant not found"}`
- `422` — Validation Error

---

[API](https://skmtc.dev/tenzir/apis/tenzir-platform-api.md) · [All operations](https://skmtc.dev/tenzir/apis/tenzir-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tenzir/tenzir-platform-api/revisions/1c6c33bb8ba3/schema)
