> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shinzo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub OAuth - Get Authorization URL

> Get the GitHub OAuth authorization URL to initiate sign-in.

## Authentication

No authentication required.

## Query Parameters

<ParamField query="returnTo" type="string">
  URL to redirect after successful authentication.
</ParamField>

## Example Request

```bash theme={null}
curl -X GET "https://api.app.shinzo.ai/auth/oauth/github?returnTo=https://app.shinzo.ai/dashboard"
```

## Response

```json theme={null}
{
  "url": "https://github.com/login/oauth/authorize?client_id=...&redirect_uri=...&scope=..."
}
```

Redirect the user to the returned URL to initiate GitHub OAuth.

## Status Codes

| Code  | Description                |
| ----- | -------------------------- |
| `200` | Authorization URL returned |
