---
title: "Exchange mobile session token for Clerk ticket"
method: POST
path: "/api/mobile/exchange"
tags: ["Mobile auth"]
---

# Exchange mobile session token for Clerk ticket

`POST /api/mobile/exchange`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/mobile/exchange`
- Auth: none required

One-time redeem of a Prisma MobileSession hex token (body `{ token }` or Authorization Bearer) for a Clerk sign-in ticket. No Clerk session required. Consumes the mobile session.

## Request body

- object
  - `token` string: 64-byte mobile session token as 128 hex chars

## Response `200`

{ success: true, data: { ticket, expiresAt } }

## Other responses

- `400`: { success: false, code: VALIDATION_ERROR }
- `401`: { success: false, code: UNAUTHORIZED }
- `500`: { success: false, code: INTERNAL_ERROR }

## Changes

- **2026-08-16** `16bfbac187d7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/mobile/exchange/post.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
