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

# Cli Auth Complete

`POST /v1/cli/auth/complete`

## 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/complete`
- Auth: none declared

Complete CLI auth after OAuth.

Called by frontend after successful OAuth. Creates an API key
and updates the session so CLI can retrieve it.

Handles new users by auto-creating a personal org.

Requires: Authenticated user (Supabase JWT)

Body:
    session_id: Session ID from CLI

## 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)
