---
title: "Gsc Oauth Callback"
method: GET
path: "/admin/gsc/callback"
tags: ["admin"]
---

# Gsc Oauth Callback

`GET /admin/gsc/callback`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/admin/gsc/callback`
- Auth: none declared

Exchange OAuth authorization code for tokens.

If state contains a cli_port, also fetches the user profile,
creates/updates the user, issues a personal API key, and redirects
to the local CLI server with the key and user info.

## Query parameters

- `code` string, required
- `state` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
