---
title: "SAML2 Identity Provider URL"
method: GET
path: "/auth/saml2/login"
tags: ["authentication"]
---

# SAML2 Identity Provider URL

`GET /auth/saml2/login`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/auth/saml2/login`
- Auth: none declared
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/auth/saml2/login/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the SSO URL given an email address for authenticating in an Identity Provider.

## Query parameters

- `email` string, required
- `client` string
- `state` string

## Response `200`

Successful operation.

- Saml2LoginResponse
  - `sso_url` string

## Other responses

- `400`: Possible error messages: * invalid email address * SSO is not configured for this email address
- `500`: We're sorry, but something went terribly wrong. We have been notified about the error. Please try again later.

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
