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

# Cli Auth Init

`POST /v1/cli/auth/init`

## Request

- Base URL: `https://api.tryardent.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tryardent.com/v1/cli/auth/init`
- Auth: none declared

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.dev/tryardent/apis/tryardent-api.md) - [All operations](https://skmtc.dev/tryardent/apis/tryardent-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tryardent/apis/tryardent-api/revisions/a0512915b997?raw)
