---
title: "Second phase: a Firebase ID token plus the original parameters → code, choose_org, or a preview of the scopes"
method: POST
path: "/api/oauth/authorize/complete"
tags: ["oauth"]
---

# Second phase: a Firebase ID token plus the original parameters → code, choose_org, or a preview of the scopes

`POST /api/oauth/authorize/complete`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/oauth/authorize/complete`
- Auth: none declared

## Request body

- object
  - `id_token` string, required
  - `org_id` string
  - `response_type` string, required
  - `client_id` string, required
  - `redirect_uri` string, required
  - `code_challenge` string
  - `code_challenge_method` string
  - `scope` string
  - `state` string
  - `resource` string
  - `iss` string
  - `preview` boolean

## Response `200`

`{status:"ok", redirect, scope}`, `{status:"choose_org", orgs}` or `{status:"preview", scope, requestedScope}`.

- object

## Other responses

- `401`: Bad ID token or no identifier.

---

[API](https://skmtc.dev/wizbi/apis/wizbi-core-api.md) · [All operations](https://skmtc.dev/wizbi/apis/wizbi-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wizbi/apis/wizbi-core-api/revisions/5a47416c82ec?raw)
