---
title: "Callback"
method: GET
path: "/v1/portal/sso/callback"
tags: ["SSO"]
---

# Callback

`GET /v1/portal/sso/callback`

## Request

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

Handle the OAuth2 callback from the identity provider.

Exchanges the authorization code for tokens, resolves the user,
and returns a GRAFOMEM JWT.  For browser flows, redirects to the
portal with the token in query parameters.

## Query parameters

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

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/grafomem/apis/grafomem-cloud.md) · [All operations](https://skmtc.dev/grafomem/apis/grafomem-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/grafomem/apis/grafomem-cloud/revisions/a472af705375?raw)
