TravelMindsAI Auth API
Signup, login, email verification, refresh.
Signup, login, email verification, refresh.
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/travelminds-ai:travelminds-ai-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: Travelminds Ai Auth API
version: 0.13.0
description: 'Operations tagged auth across 2 of this provider''s published API definitions: travelminds-ai-api-openapi.json, travelminds-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.travelminds.ai
description: Production
tags:
- name: Auth
description: Signup, login, email verification, refresh.
paths:
/v1/signup:
post:
tags:
- Auth
summary: Create an account in pending_verify status; queue verification email
description: Registers a new account, queues an email-verification message into tmai_email_outbox (the worker dispatches within ~1 minute), and returns the new account_id. billing_country is ISO-3166 alpha-2 — used by checkout when BILLING_PROVIDER_MODE='country' (currently 'paddle' by default, see /v1/checkout).
operationId: signup_v1_signup_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/SignupBody'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/SignupResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/verify-email:
post:
tags:
- Auth
summary: Consume an email-verification token from the verify link
description: Flips email_verified=true on the account and schedules a D+1 onboarding email. Idempotent — re-verifying produces zero rows because the token is nulled on first call.
operationId: verify_email_v1_verify_email_post
parameters:
- name: token
in: query
required: true
schema:
type: string
title: Token
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/VerifyEmailResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/login:
post:
tags:
- Auth
summary: Verify password and issue access + refresh tokens
description: 'Verifies the password (Argon2id), records the session in tmai_sessions, and returns a 1h access JWT plus a 30-day refresh token. Use the access token as Authorization: Bearer for session-authenticated routes.'
operationId: login_v1_login_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LoginBody'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/refresh:
post:
tags:
- Auth
summary: Rotate the refresh token; mint a fresh access + refresh pair
description: Validates the supplied refresh token, replaces the stored hash, and issues a new access JWT + new refresh token. The old refresh token stops working immediately (rotation pattern — limits damage on leak).
operationId: refresh_v1_refresh_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RefreshBody'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/forgot-password:
post:
tags:
- Auth
summary: Email a 2-hour password-reset token
description: 'Always returns {sent: true} even on unknown emails to prevent account enumeration. On a real match, queues a password-reset email with a single-use token valid for 2 hours.'
operationId: forgot_password_v1_forgot_password_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ForgotPasswordBody'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ForgotPasswordResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/reset-password:
post:
tags:
- Auth
summary: Consume reset token, set new password, revoke all sessions
description: 'Accepts a reset token + new password. On success: hashes the new password with Argon2id, clears the reset token, and revokes ALL active sessions for the account (forces re-login from every device — best practice after credential rotation).'
operationId: reset_password_v1_reset_password_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ResetPasswordBody'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ResetPasswordResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ResetPasswordResponse:
properties:
reset:
type: boolean
title: Reset
default: true
email:
type: string
title: Email
type: object
required:
- email
title: ResetPasswordResponse
ResetPasswordBody:
properties:
token:
type: string
title: Token
new_password:
type: string
maxLength: 128
minLength: 10
title: New Password
type: object
required:
- token
- new_password
title: ResetPasswordBody
TokenResponse:
properties:
access_token:
type: string
title: Access Token
refresh_token:
type: string
title: Refresh Token
token_type:
type: string
title: Token Type
default: Bearer
expires_in:
type: integer
title: Expires In
default: 3600
account:
additionalProperties: true
type: object
title: Account
type: object
required:
- access_token
- refresh_token
- account
title: TokenResponse
ForgotPasswordResponse:
properties:
sent:
type: boolean
title: Sent
default: true
type: object
title: ForgotPasswordResponse
SignupBody:
properties:
email:
type: string
format: email
title: Email
password:
type: string
maxLength: 128
minLength: 10
title: Password
name:
anyOf:
- type: string
- type: 'null'
title: Name
organisation_name:
anyOf:
- type: string
- type: 'null'
title: Organisation Name
billing_country:
type: string
maxLength: 2
minLength: 2
title: Billing Country
signup_plan_intent:
anyOf:
- type: string
maxLength: 24
- type: 'null'
title: Signup Plan Intent
signup_cycle_intent:
anyOf:
- type: string
maxLength: 12
- type: 'null'
title: Signup Cycle Intent
type: object
required:
- email
- password
- billing_country
title: SignupBody
VerifyEmailResponse:
properties:
verified:
type: boolean
title: Verified
account_id:
type: string
title: Account Id
email:
type: string
title: Email
type: object
required:
- verified
- account_id
- email
title: VerifyEmailResponse
ForgotPasswordBody:
properties:
email:
type: string
format: email
title: Email
type: object
required:
- email
title: ForgotPasswordBody
LoginBody:
properties:
email:
type: string
format: email
title: Email
password:
type: string
title: Password
type: object
required:
- email
- password
title: LoginBody
SignupResponse:
properties:
account_id:
type: string
title: Account Id
email:
type: string
title: Email
email_verification:
type: string
title: Email Verification
default: sent
type: object
required:
- account_id
- email
title: SignupResponse
RefreshBody:
properties:
refresh_token:
type: string
title: Refresh Token
type: object
required:
- refresh_token
title: RefreshBody
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: tmai_live_…
description: Your TravelMindsAI API key.
SessionAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: A session token from /v1/login.
x-refined-from:
- travelminds-ai-api-openapi.json
- travelminds-ai-openapi.json