---
title: "Apple Login"
method: POST
path: "/api/auth/apple"
tags: ["auth"]
---

# Apple Login

`POST /api/auth/apple`

## Request

- Base URL: `https://api.sambodh-ias.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sambodh-ias.in/api/auth/apple`
- Auth: none declared

Sign in with Apple — sibling of google_login (App Store guideline 4.8).

The mobile app sends the raw identityToken from AppleAuthentication; we
verify it against Apple's JWKS (aud = our bundle id, iss = appleid.apple.com)
and create/link the user exactly like the Google flow.

## Request body

- AppleLoginRequest
  - `identity_token` string, required
  - `full_name` string, nullable
  - `phone` string, nullable
  - `first_touch` Touch: Per-touch acquisition attribution from the frontend. All fields optional — a direct-typed URL produces None for everything.
    - `source` string, nullable
    - `medium` string, nullable
    - `campaign` string, nullable
    - `term` string, nullable
    - `content` string, nullable
    - `referrer` string, nullable
    - `landing_path` string, nullable
  - `last_touch` Touch: Per-touch acquisition attribution from the frontend. All fields optional — a direct-typed URL produces None for everything.
    - `source` string, nullable
    - `medium` string, nullable
    - `campaign` string, nullable
    - `term` string, nullable
    - `content` string, nullable
    - `referrer` string, nullable
    - `landing_path` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2.md) · [All operations](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/revisions/258843d1f806?raw)
