---
title: "Sso Callback Redirect"
method: GET
path: "/auth/sso/callback/{organization_slug}/{provider_slug}"
tags: ["Access"]
---

# Sso Callback Redirect

`GET /auth/sso/callback/{organization_slug}/{provider_slug}`

Custom SSO callback endpoint that redirects to SuperTokens.

This endpoint:
1. Accepts clean URL path: /auth/sso/callback/{organization_slug}/{provider_slug}
2. Validates the organization and provider exist
3. Builds SuperTokens thirdPartyId: sso:{organization_slug}:{provider_slug}
4. Redirects to SuperTokens callback: /auth/callback/{thirdPartyId}

SuperTokens then handles:
1. Exchange code for tokens (using our dynamic provider config)
2. Get user info
3. Call our sign_in_up override (creates user_identity, adds user_identities to session)
4. Redirect to frontend with session cookie

## Path parameters

- `organization_slug` string, required
- `provider_slug` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-08** `5e6f53ce5d08` — 1 info
  - endpoint added
- **2026-05-02** `6e37373d45fe` — 1 breaking
  - api path removed without deprecation
- **2026-02-13** `72fe88316d15` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/auth/sso/callback/:organization_slug/:provider_slug/get.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/revisions/48ced00d9a1c/schema)
