Saltar al contenido principal

Login Explorer

Test the user authentication endpoint with real API calls. See code examples in cURL, Node.js, and Python.

POST/auth/login

Description

Authenticate users with email and password credentials

Parameters

User's registered email address
User's password

Responses

1001 Response

Login successful - Trusted device without 2FA. Returns access token and pinAuthToken.

1010 Response

Verification code sent successfully - Email verification required for new device.

4014 Response

Two-factor authentication is required - User has 2FA enabled, TOTP code needed.

4001 Response

User not found - The provided email is not registered in the system.

4006 Response

Missing required data - Email or password field is missing or invalid format.

4007 Response

The provided password is incorrect - Invalid credentials.

4025 Response

This device was previously revoked - Device blocked, check email to authorize again.

4026 Response

New location detected - Check your email to authorize access from this location.

4028 Response

This location has not been authorized yet - Pending authorization, check email first.

Test Request
https://www.swapbits.site/api
curl -X POST "https://www.swapbits.site/api/auth/login" \
  -H "Content-Type: application/json"