---
title: "POST /turnkey/appleLoginRedirect"
method: POST
path: "/turnkey/appleLoginRedirect"
---

# POST /turnkey/appleLoginRedirect

`POST /turnkey/appleLoginRedirect`

Handles Apple login redirect from Apple's authorization server
Exchanges authorization code for ID token and processes user login/signup

## Request body

- AppleLoginRedirectRequest
  - `state` string, required
  - `code` string, required

## Response `200`

Ok

- AppleLoginResponse
  - `success` boolean, required
  - `encodedPayload` string
  - `error` string

## Changes

- **2025-10-24** `3f284f5d550a` — 1 info
  - endpoint added
- **2025-10-23** `ebc8eb9855e7` — 1 breaking
  - api path removed without deprecation
- **2025-10-20** `3f284f5d550a` — 1 info
  - endpoint added
- **2024-05-14** `90fd32395633` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/dydxprotocol/apis/indexer-api/changes/turnkey/appleLoginRedirect/post.md)

---

[API](https://skmtc.dev/dydxprotocol/apis/indexer-api.md) · [All operations](https://skmtc.dev/dydxprotocol/apis/indexer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dydxprotocol/indexer-api/revisions/5005547cef75/schema)
