4.1 Authentication & Security

POST /user/login-with-password — Password Login

Validates password and returns whether two-factor authentication (2FA) is required along with a one-time login ticket.

Request Body (LoginForm):

ParameterTypeRequiredDescription
emailstringYesEmail address
login_passwordstringYesLogin password (MD5 hash)

Response (LoginResultVO):

FieldTypeDescription
need_two_factorbooleanWhether 2FA is required (always true)
login_ticketstringOne-time login ticket to be returned during 2FA
emailstringMasked email
two_factor_methodsstring[]Available 2FA methods: EMAIL / AUTHENTICATOR / PASSKEY

POST /user/login/2fa — Login 2FA Verification

Issues access_token and device_token upon successful verification.

Request Body (LoginVerifyForm):

ParameterTypeRequiredDescription
emailstringYesEmail address
login_ticketstringYesOne-time ticket returned by password login
methodstringYes2FA method: EMAIL / AUTHENTICATOR
validate_codestringNoEmail verification code (required when method=EMAIL)
authenticator_codestringNoAuthenticator TOTP code (required when method=AUTHENTICATOR)

Response (UserDetails):

FieldTypeDescription
access_tokenstringAccess token
device_tokenstringMeta Edge device_token; same validity period as access_token
expireint64Expiration timestamp
emailstringEmail address

POST /user/logout — User Logout

Request Body: { "id": "userID" }


Document Maintenance: This document is compiled from the MetaEdge official website, API documentation, and CLI README. Content marked `[TBD]` is pending further information or confirmation from the MetaEdge team.