---
title: "Cli Auth Init"
method: POST
path: "/v1/cli/auth/init"
tags: ["v1-cli"]
---

# Cli Auth Init

`POST /v1/cli/auth/init`

Initialize a CLI auth session.

Called by CLI before opening browser. Creates a pending session
that will be completed after OAuth.

Returns:
    session_id: Unique session identifier for polling
    auth_url: URL to open in browser (goes directly to OAuth)

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.net/tryardent/apis/fastapi.md) · [All operations](https://skmtc.net/tryardent/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryardent/fastapi/revisions/71b66f68e19c/schema)
