---
title: "GetSSOLoginURL"
method: POST
path: "/gitpod.v1.AccountService/GetSSOLoginURL"
tags: ["gitpod.v1.AccountService"]
---

# GetSSOLoginURL

`POST /gitpod.v1.AccountService/GetSSOLoginURL`

GetSSOLoginURL returns the URL to redirect the user to for SSO login.

## Request body

- GitpodV1GetSSOLoginURLRequest
  - `email` string, email, required — email is the email the user wants to login with
  - `returnTo` string, uri, nullable — return_to is the URL the user will be redirected to after login

## Response `200`

Success

- GitpodV1GetSSOLoginURLResponse
  - `loginUrl` string, required — login_url is the URL to redirect the user to for SSO login

## Other responses

- `default` — Error

## Changes

- **2025-02-14** `988164042da1` — 1 breaking, 1 info
  - the request property `email` became required
  - the response property `loginUrl` became required for the status `200`

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.AccountService/GetSSOLoginURL/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/27f7bd641de1/schema)
