---
title: "POST /api/v1/auth/cli/complete"
method: POST
path: "/api/v1/auth/cli/complete"
tags: ["auth"]
---

# POST /api/v1/auth/cli/complete

`POST /api/v1/auth/cli/complete`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/auth/cli/complete`
- Auth: HTTP bearer

## Request body

- CliLoginCompletePayload
  - `login_id` string, required
  - `organization_id` string: Public ID of the organization the CLI saves as its default.

## Response `200`

CLI login completed, or waiting for the user to choose an organization

- object
  - `status` 'complete' | 'organization_required' | 'organization_setup_required', required
  - `client_kind` 'cli' | 'desktop' | 'android' | 'ios', required
  - `app_return_url` string, uri: Fixed native iOS return link, present only after successful approval. Contains no credential or polling token.
  - `organization` CliLoginOrganization, required
    - `id` string, required
    - `slug` string, required
    - `name` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `422`: Unprocessable entity
- `502`: Bad gateway

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
