---
title: "Exchange credentials for an access + refresh token"
method: POST
path: "/api/auth/token"
tags: ["Auth"]
---

# Exchange credentials for an access + refresh token

`POST /api/auth/token`

## Request

- Base URL: `https://movementors.com`
- URL: `https://movementors.com/api/auth/token`
- Auth: none declared

Mobile-friendly sign-in. Returns a short-lived JWT access token and a long-lived rotated refresh token.

## Request body

- object
  - `email` string, email, required
  - `password` string, required
  - `device` string

## Response `200`

Token pair

- object
  - `accessToken` string, required
  - `refreshToken` string, required
  - `refreshTokenExpiresAt` string, required
  - `user` User, required
    - `id` string, required
    - `email` string, email, required
    - `name` string, nullable, required
    - `image` string, nullable, required
    - `type` 'CLIENT' | 'TEACHER' | 'STUDIO' | 'ADMIN', required
    - `languagePreference` string
    - `currencyPreference` string
    - `onboardingComplete` boolean, required
    - `teacherProfile` object, nullable
      - `id` string, required
      - `slug` string, required
      - `displayName` string, required
      - `profileImageUrl` string, nullable, required
      - `subscriptionTier` 'FREE' | 'PRO' | 'PREMIUM', required
      - `onboardingStatus` string, required
      - `city` string, nullable, required
      - `country` string, nullable, required
    - `studioProfile` object, nullable
      - `id` string, required
      - `slug` string, required
      - `businessName` string, required
      - `logoUrl` string, nullable, required
      - `subscriptionTier` 'FREE' | 'PRO' | 'PREMIUM', required
      - `onboardingStatus` string, required
      - `city` string, nullable, required
      - `country` string, nullable, required

## Other responses

- `400`: Validation error
- `401`: Invalid credentials
- `429`: Too many requests

---

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