Verify login OTP
curl --request POST \
--url https://api.consumer.younegotiate.com/auth/otp/verify \
--header 'Content-Type: application/json' \
--data '
{
"flow_token": "consumer-flow-token",
"otp": "123456",
"device_name": "Consumer Portal",
"remember_device": true
}
'import requests
url = "https://api.consumer.younegotiate.com/auth/otp/verify"
payload = {
"flow_token": "consumer-flow-token",
"otp": "123456",
"device_name": "Consumer Portal",
"remember_device": True
}
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({
flow_token: 'consumer-flow-token',
otp: '123456',
device_name: 'Consumer Portal',
remember_device: true
})
};
fetch('https://api.consumer.younegotiate.com/auth/otp/verify', 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://api.consumer.younegotiate.com/auth/otp/verify",
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([
'flow_token' => 'consumer-flow-token',
'otp' => '123456',
'device_name' => 'Consumer Portal',
'remember_device' => true
]),
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://api.consumer.younegotiate.com/auth/otp/verify"
payload := strings.NewReader("{\n \"flow_token\": \"consumer-flow-token\",\n \"otp\": \"123456\",\n \"device_name\": \"Consumer Portal\",\n \"remember_device\": true\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://api.consumer.younegotiate.com/auth/otp/verify")
.header("Content-Type", "application/json")
.body("{\n \"flow_token\": \"consumer-flow-token\",\n \"otp\": \"123456\",\n \"device_name\": \"Consumer Portal\",\n \"remember_device\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.consumer.younegotiate.com/auth/otp/verify")
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 \"flow_token\": \"consumer-flow-token\",\n \"otp\": \"123456\",\n \"device_name\": \"Consumer Portal\",\n \"remember_device\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "Logged in.",
"meta": {
"access_token": "<string>",
"refresh_token": "<string>",
"token_type": "Bearer",
"access_token_expires_at": "2023-11-07T05:31:56Z",
"refresh_token_expires_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Verify login OTP
Verify the OTP for the active consumer login flow, mark the selected contact channel verified, consume the flow, and return a bearer token for the consumer profile. When remember_device is true, the response also sets an HTTP-only trusted-device cookie that lets a future POST /auth/login skip OTP for the same matched profile and browser.
POST
/
auth
/
otp
/
verify
Verify login OTP
curl --request POST \
--url https://api.consumer.younegotiate.com/auth/otp/verify \
--header 'Content-Type: application/json' \
--data '
{
"flow_token": "consumer-flow-token",
"otp": "123456",
"device_name": "Consumer Portal",
"remember_device": true
}
'import requests
url = "https://api.consumer.younegotiate.com/auth/otp/verify"
payload = {
"flow_token": "consumer-flow-token",
"otp": "123456",
"device_name": "Consumer Portal",
"remember_device": True
}
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({
flow_token: 'consumer-flow-token',
otp: '123456',
device_name: 'Consumer Portal',
remember_device: true
})
};
fetch('https://api.consumer.younegotiate.com/auth/otp/verify', 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://api.consumer.younegotiate.com/auth/otp/verify",
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([
'flow_token' => 'consumer-flow-token',
'otp' => '123456',
'device_name' => 'Consumer Portal',
'remember_device' => true
]),
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://api.consumer.younegotiate.com/auth/otp/verify"
payload := strings.NewReader("{\n \"flow_token\": \"consumer-flow-token\",\n \"otp\": \"123456\",\n \"device_name\": \"Consumer Portal\",\n \"remember_device\": true\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://api.consumer.younegotiate.com/auth/otp/verify")
.header("Content-Type", "application/json")
.body("{\n \"flow_token\": \"consumer-flow-token\",\n \"otp\": \"123456\",\n \"device_name\": \"Consumer Portal\",\n \"remember_device\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.consumer.younegotiate.com/auth/otp/verify")
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 \"flow_token\": \"consumer-flow-token\",\n \"otp\": \"123456\",\n \"device_name\": \"Consumer Portal\",\n \"remember_device\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "Logged in.",
"meta": {
"access_token": "<string>",
"refresh_token": "<string>",
"token_type": "Bearer",
"access_token_expires_at": "2023-11-07T05:31:56Z",
"refresh_token_expires_at": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}Body
application/json
Last modified on July 19, 2026
Was this page helpful?
⌘I

