---
title: "handle c l i init"
method: POST
path: "/api/v1/auth/cli/init"
tags: ["api/v1/auth"]
---

# handle c l i init

`POST /api/v1/auth/cli/init`

#### Controller: 

`github.com/raghavyuva/nixopus-api/internal/features/auth/controller.(*AuthController).HandleCLIInit`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func2`

---

## Headers

- `Accept` string

## Response `200`

OK

- CLIInitResponse — CLIInitResponse schema
  - `deploy_domain` string, nullable
  - `domain` string, nullable
  - `family_id` string
  - `message` string
  - `project_id` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

## Changes

- **2026-02-27** `93bf2b2f361d` — 10 breaking, 2 info
  - the response property `errors/items/` became nullable for the status `400` (media type: application/json)
  - the response property `errors/items/` became nullable for the status `400` (media type: application/xml)
  - the response property `errors/items/` became nullable for the status `500` (media type: application/json)
  - the response property `errors/items/` became nullable for the status `500` (media type: application/xml)
  - …8 more
- **2026-02-12** `b8c4e3fcf23f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/nixopus/apis/openapi/changes/api/v1/auth/cli/init/post.md)

---

[API](https://skmtc.dev/nixopus/apis/openapi.md) · [All operations](https://skmtc.dev/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nixopus/openapi/revisions/86356bbcc727/schema)
