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

# Cli Auth Complete

`POST /v1/cli/auth/complete`

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