---
title: "Start a Google or Apple sign-in from the mobile app"
method: GET
path: "/api/v1/auth/authorize"
---

# Start a Google or Apple sign-in from the mobile app

`GET /api/v1/auth/authorize`

## Request

- Base URL: `https://memchats.com`
- URL: `https://memchats.com/api/v1/auth/authorize`
- Auth: none required

Does not require authentication. Opened in the system browser; redirects (302) to Keycloak with kc_idp_hint for the provider and the app redirect URI. The code that comes back is exchanged at /api/v1/auth/token with grant_type authorization_code.

## Query parameters

- `provider` 'google' | 'apple', required
- `state` string, required
- `code_challenge` string, required
- `code_challenge_method` 'S256', required
- `offline` 'true'

## Other responses

- `302`: Redirect to the identity provider
- `400`: Invalid request
- `404`: Provider not available on this server

---

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