Authenticates an user by email
curl --request POST \
--url https://ledgersyncappv2.com/api/v2/public/authenticate-by-email \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"fromApi": true,
"ipAddress": "<string>",
"userAgent": "<string>"
}
'import requests
url = "https://ledgersyncappv2.com/api/v2/public/authenticate-by-email"
payload = {
"email": "<string>",
"password": "<string>",
"fromApi": True,
"ipAddress": "<string>",
"userAgent": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
password: '<string>',
fromApi: true,
ipAddress: '<string>',
userAgent: '<string>'
})
};
fetch('https://ledgersyncappv2.com/api/v2/public/authenticate-by-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ledgersyncappv2.com/api/v2/public/authenticate-by-email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'password' => '<string>',
'fromApi' => true,
'ipAddress' => '<string>',
'userAgent' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ledgersyncappv2.com/api/v2/public/authenticate-by-email"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"fromApi\": true,\n \"ipAddress\": \"<string>\",\n \"userAgent\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ledgersyncappv2.com/api/v2/public/authenticate-by-email")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"fromApi\": true,\n \"ipAddress\": \"<string>\",\n \"userAgent\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ledgersyncappv2.com/api/v2/public/authenticate-by-email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"fromApi\": true,\n \"ipAddress\": \"<string>\",\n \"userAgent\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"authToken": "<string>",
"status": "100 CONTINUE",
"message": "<string>",
"username": "<string>",
"validated": true
}{
"authToken": "<string>",
"status": "100 CONTINUE",
"message": "<string>",
"username": "<string>",
"validated": true
}authentication-api
Authenticates an user by email
POST
/
api
/
v2
/
public
/
authenticate-by-email
Authenticates an user by email
curl --request POST \
--url https://ledgersyncappv2.com/api/v2/public/authenticate-by-email \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"password": "<string>",
"fromApi": true,
"ipAddress": "<string>",
"userAgent": "<string>"
}
'import requests
url = "https://ledgersyncappv2.com/api/v2/public/authenticate-by-email"
payload = {
"email": "<string>",
"password": "<string>",
"fromApi": True,
"ipAddress": "<string>",
"userAgent": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
email: '<string>',
password: '<string>',
fromApi: true,
ipAddress: '<string>',
userAgent: '<string>'
})
};
fetch('https://ledgersyncappv2.com/api/v2/public/authenticate-by-email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://ledgersyncappv2.com/api/v2/public/authenticate-by-email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => '<string>',
'password' => '<string>',
'fromApi' => true,
'ipAddress' => '<string>',
'userAgent' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://ledgersyncappv2.com/api/v2/public/authenticate-by-email"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"fromApi\": true,\n \"ipAddress\": \"<string>\",\n \"userAgent\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://ledgersyncappv2.com/api/v2/public/authenticate-by-email")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"fromApi\": true,\n \"ipAddress\": \"<string>\",\n \"userAgent\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ledgersyncappv2.com/api/v2/public/authenticate-by-email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"password\": \"<string>\",\n \"fromApi\": true,\n \"ipAddress\": \"<string>\",\n \"userAgent\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"authToken": "<string>",
"status": "100 CONTINUE",
"message": "<string>",
"username": "<string>",
"validated": true
}{
"authToken": "<string>",
"status": "100 CONTINUE",
"message": "<string>",
"username": "<string>",
"validated": true
}Body
application/json
Response
Authentication successful
Available options:
100 CONTINUE, 101 SWITCHING_PROTOCOLS, 102 PROCESSING, 103 EARLY_HINTS, 103 CHECKPOINT, 200 OK, 201 CREATED, 202 ACCEPTED, 203 NON_AUTHORITATIVE_INFORMATION, 204 NO_CONTENT, 205 RESET_CONTENT, 206 PARTIAL_CONTENT, 207 MULTI_STATUS, 208 ALREADY_REPORTED, 226 IM_USED, 300 MULTIPLE_CHOICES, 301 MOVED_PERMANENTLY, 302 FOUND, 302 MOVED_TEMPORARILY, 303 SEE_OTHER, 304 NOT_MODIFIED, 305 USE_PROXY, 307 TEMPORARY_REDIRECT, 308 PERMANENT_REDIRECT, 400 BAD_REQUEST, 401 UNAUTHORIZED, 402 PAYMENT_REQUIRED, 403 FORBIDDEN, 404 NOT_FOUND, 405 METHOD_NOT_ALLOWED, 406 NOT_ACCEPTABLE, 407 PROXY_AUTHENTICATION_REQUIRED, 408 REQUEST_TIMEOUT, 409 CONFLICT, 410 GONE, 411 LENGTH_REQUIRED, 412 PRECONDITION_FAILED, 413 PAYLOAD_TOO_LARGE, 413 REQUEST_ENTITY_TOO_LARGE, 414 URI_TOO_LONG, 414 REQUEST_URI_TOO_LONG, 415 UNSUPPORTED_MEDIA_TYPE, 416 REQUESTED_RANGE_NOT_SATISFIABLE, 417 EXPECTATION_FAILED, 418 I_AM_A_TEAPOT, 419 INSUFFICIENT_SPACE_ON_RESOURCE, 420 METHOD_FAILURE, 421 DESTINATION_LOCKED, 422 UNPROCESSABLE_ENTITY, 423 LOCKED, 424 FAILED_DEPENDENCY, 425 TOO_EARLY, 426 UPGRADE_REQUIRED, 428 PRECONDITION_REQUIRED, 429 TOO_MANY_REQUESTS, 431 REQUEST_HEADER_FIELDS_TOO_LARGE, 451 UNAVAILABLE_FOR_LEGAL_REASONS, 500 INTERNAL_SERVER_ERROR, 501 NOT_IMPLEMENTED, 502 BAD_GATEWAY, 503 SERVICE_UNAVAILABLE, 504 GATEWAY_TIMEOUT, 505 HTTP_VERSION_NOT_SUPPORTED, 506 VARIANT_ALSO_NEGOTIATES, 507 INSUFFICIENT_STORAGE, 508 LOOP_DETECTED, 509 BANDWIDTH_LIMIT_EXCEEDED, 510 NOT_EXTENDED, 511 NETWORK_AUTHENTICATION_REQUIRED 