MoveMentors Auth API
The Auth API from MoveMentors — 3 operation(s) for auth.
The Auth API from MoveMentors — 3 operation(s) for auth.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/movementors-com:movementors-com-auth-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MoveMentors Auth API
version: 1.0.0
description: 'HTTP API for MoveMentors, the directory and booking platform for independent movement teachers and small studios.
**Public API v1** (`/api/v1`, tag "Public API v1"): read-only, no authentication. Find mentors, studios and upcoming classes. Guide: https://movementors.com/developers
**Errors**: every error is `application/problem+json` (RFC 9457) with a stable `code` and a `hint`.
**Rate limits**: 100 requests per minute per IP ("burst") plus 5,000 per day on list endpoints ("daily"). Every response carries `RateLimit-Policy` and `RateLimit` (draft-ietf-httpapi-ratelimit-headers) plus `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`; a 429 adds `Retry-After`.
**Versioning**: the major version is in the path (/api/v1). Additive changes ship in place; breaking changes ship as a new version. A deprecated version answers with `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers at least 6 months before it is switched off.
**Authenticated endpoints** (mobile + web clients): Bearer token from POST /api/auth/token, or the HttpOnly NextAuth session cookie. Agents that need to act for a user should use the MCP server at /api/mcp with OAuth 2.1.'
contact:
name: MoveMentors engineering
url: https://movementors.com/developers
x-api-lifecycle:
versioning: url-path
current: v1
versions:
v1:
status: stable
deprecatedAt: null
sunsetAt: null
deprecationNoticeMonths: 6
deprecationSignals:
- Deprecation header (RFC 9745)
- Sunset header (RFC 8594)
- Link rel=deprecation
servers:
- url: https://movementors.com
description: Production
- url: http://localhost:3000
description: Local development
tags:
- name: Auth
paths:
/api/auth/token:
post:
tags:
- Auth
summary: Exchange credentials for an access + refresh token
description: Mobile-friendly sign-in. Returns a short-lived JWT access token and a long-lived rotated refresh token.
requestBody:
content:
application/json:
schema:
type: object
properties:
email:
type: string
format: email
password:
type: string
minLength: 1
maxLength: 128
device:
type: string
maxLength: 120
required:
- email
- password
responses:
'200':
description: Token pair
content:
application/json:
schema:
type: object
properties:
accessToken:
type: string
refreshToken:
type: string
refreshTokenExpiresAt:
type: string
user:
$ref: '#/components/schemas/User'
required:
- accessToken
- refreshToken
- refreshTokenExpiresAt
- user
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Invalid credentials
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Too many requests
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postApiAuthToken
x-operation-id-source: derived
delete:
tags:
- Auth
summary: Sign out one device
description: Revoke the refresh token supplied in the Authorization header. Idempotent.
security:
- BearerAuth: []
responses:
'200':
description: Revoked
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
enum:
- true
required:
- ok
operationId: deleteApiAuthToken
x-operation-id-source: derived
/api/auth/token/refresh:
post:
tags:
- Auth
summary: Rotate refresh token
description: Exchange a valid refresh token for a fresh (access, refresh) pair. The supplied refresh token is revoked.
requestBody:
content:
application/json:
schema:
type: object
properties:
refreshToken:
type: string
device:
type: string
maxLength: 120
required:
- refreshToken
responses:
'200':
description: New token pair
content:
application/json:
schema:
type: object
properties:
accessToken:
type: string
refreshToken:
type: string
refreshTokenExpiresAt:
type: string
required:
- accessToken
- refreshToken
- refreshTokenExpiresAt
'401':
description: Refresh token invalid or expired
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: postApiAuthTokenRefresh
x-operation-id-source: derived
/api/me:
get:
tags:
- Auth
summary: Current authenticated user
description: Returns the signed-in user plus role-specific profile data. Use after token exchange to hydrate mobile state.
security:
- BearerAuth: []
- CookieAuth: []
responses:
'200':
description: Current user
content:
application/json:
schema:
type: object
properties:
user:
$ref: '#/components/schemas/User'
authVia:
type: string
enum:
- bearer
- cookie
required:
- user
- authVia
'401':
description: Not authenticated
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getApiMe
x-operation-id-source: derived
components:
schemas:
User:
type: object
properties:
id:
type: string
email:
type: string
format: email
name:
type: string
nullable: true
image:
type: string
nullable: true
type:
type: string
enum:
- CLIENT
- TEACHER
- STUDIO
- ADMIN
languagePreference:
type: string
currencyPreference:
type: string
onboardingComplete:
type: boolean
teacherProfile:
type: object
nullable: true
properties:
id:
type: string
slug:
type: string
displayName:
type: string
profileImageUrl:
type: string
nullable: true
subscriptionTier:
type: string
enum:
- FREE
- PRO
- PREMIUM
onboardingStatus:
type: string
city:
type: string
nullable: true
country:
type: string
nullable: true
required:
- id
- slug
- displayName
- profileImageUrl
- subscriptionTier
- onboardingStatus
- city
- country
studioProfile:
type: object
nullable: true
properties:
id:
type: string
slug:
type: string
businessName:
type: string
logoUrl:
type: string
nullable: true
subscriptionTier:
type: string
enum:
- FREE
- PRO
- PREMIUM
onboardingStatus:
type: string
city:
type: string
nullable: true
country:
type: string
nullable: true
required:
- id
- slug
- businessName
- logoUrl
- subscriptionTier
- onboardingStatus
- city
- country
required:
- id
- email
- name
- image
- type
- onboardingComplete
Error:
type: object
properties:
error:
type: string
required:
- error
description: Standard error response
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: Short-lived access token (15 min) obtained from POST /api/auth/token. Refresh via POST /api/auth/token/refresh.
CookieAuth:
type: apiKey
in: cookie
name: authjs.session-token
description: NextAuth HttpOnly session cookie. Web-only; mobile clients should use BearerAuth instead.
externalDocs:
description: Public API guide
url: https://movementors.com/developers