loginByEmailVerification
Login By Email Verification - exchanges the 6-digit code emailed by sendLoginCodeEmail for a bearer token.
Try it
POST
https://api-v2.financesavi.com/rpcPubliccurl -sS -X POST https://api-v2.financesavi.com/rpc \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"loginByEmailVerification","params":{"email":"[email protected]","code":"123456","authenticationMethod":"EMAIL_CODE"},"id":1}'Replace [email protected] with your email address.
$ POST https://api-v2.financesavi.com/rpc (loginByEmailVerification) HTTP 200 { "jsonrpc": "2.0", "result": { "token": "<ACCESS_TOKEN>", "userId": "user_8f3a1c2d9b" }, "id": 1 }
Reference
Authentication: not required
Login By Email Verification - exchanges the 6-digit code emailed by sendLoginCodeEmail for a bearer token.
Authentication: Not required
Parameters:
- email (string, required): The address the code was sent to
- code (string, required): The 6-digit code from the email
- authenticationMethod (string, required): EMAIL_CODE
Behavior:
- Succeeds only if the code matches and has not expired
- Issues an opaque bearer token on success. Send it as 'Authorization: Bearer <token>' on methods that require authentication
Returns:
- { token: string, userId: string }
Example:
{
"method": "loginByEmailVerification",
"params": {
"email": "[email protected]",
"code": "123456",
"authenticationMethod": "EMAIL_CODE"
}
}