---
updatedAt: 2025-04-29T20:18:11.000Z
agentTools:
  projectIndex: https://docs.universalapi.io/llms.txt
---

# Login

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "uapi",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.prod.universalapi.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/sso/login": {
      "get": {
        "summary": "Login",
        "description": "",
        "operationId": "profile-model",
        "parameters": [
          {
            "name": "redirectUri",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-uapi-service-id",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "google-saml",
                "azure-saml",
                "google-oidc",
                "azure-oidc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"status\": \"OK\",\n    \"statusCode\": 200,\n    \"data\": {\n        \"authorizeUrl\": \"https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=openid%20email%20profile&prompt=consent&state=consumerId%3D65bc598d6ffc3c44197747d2%26serviceId%3Dgoogle-oidc%26applicationId%3D655242641d7783d6998d4c9f%26redirectUri%3Dhttp%3A%2F%2Flocalhost%3A9000%2Fcallback&response_type=code&client_id=982292791092-vp5akichqefh46esgcnfv337om6keeu7.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fapi.dev.universalapi.io%2Fapi%2Fsso%2Fcallback\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "OK"
                    },
                    "statusCode": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "authorizeUrl": {
                          "type": "string",
                          "example": "https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=openid%20email%20profile&prompt=consent&state=consumerId%3D65bc598d6ffc3c44197747d2%26serviceId%3Dgoogle-oidc%26applicationId%3D655242641d7783d6998d4c9f%26redirectUri%3Dhttp%3A%2F%2Flocalhost%3A9000%2Fcallback&response_type=code&client_id=982292791092-vp5akichqefh46esgcnfv337om6keeu7.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fapi.dev.universalapi.io%2Fapi%2Fsso%2Fcallback"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```