Login creditor
curl --request POST \
--url https://api.creditor.younegotiate.com/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "creditor@example.com",
"password": "Password123!",
"recaptcha": "recaptcha-token",
"device_name": "Creditor Portal",
"remember": true
}
'import requests
url = "https://api.creditor.younegotiate.com/auth/login"
payload = {
"email": "creditor@example.com",
"password": "Password123!",
"recaptcha": "recaptcha-token",
"device_name": "Creditor Portal",
"remember": 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({
email: 'creditor@example.com',
password: 'Password123!',
recaptcha: 'recaptcha-token',
device_name: 'Creditor Portal',
remember: true
})
};
fetch('https://api.creditor.younegotiate.com/auth/login', 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.creditor.younegotiate.com/auth/login",
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' => 'creditor@example.com',
'password' => 'Password123!',
'recaptcha' => 'recaptcha-token',
'device_name' => 'Creditor Portal',
'remember' => 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.creditor.younegotiate.com/auth/login"
payload := strings.NewReader("{\n \"email\": \"creditor@example.com\",\n \"password\": \"Password123!\",\n \"recaptcha\": \"recaptcha-token\",\n \"device_name\": \"Creditor Portal\",\n \"remember\": 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.creditor.younegotiate.com/auth/login")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"creditor@example.com\",\n \"password\": \"Password123!\",\n \"recaptcha\": \"recaptcha-token\",\n \"device_name\": \"Creditor Portal\",\n \"remember\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.creditor.younegotiate.com/auth/login")
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\": \"creditor@example.com\",\n \"password\": \"Password123!\",\n \"recaptcha\": \"recaptcha-token\",\n \"device_name\": \"Creditor Portal\",\n \"remember\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"data": {
"id": 123,
"name": "<string>",
"email": "jsmith@example.com"
},
"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": {}
}Login creditor
Authenticate an existing creditor and return a bearer token. Send remember: false to use the shorter refresh-token duration; omitted or true uses the remembered duration.
POST
/
auth
/
login
Login creditor
curl --request POST \
--url https://api.creditor.younegotiate.com/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "creditor@example.com",
"password": "Password123!",
"recaptcha": "recaptcha-token",
"device_name": "Creditor Portal",
"remember": true
}
'import requests
url = "https://api.creditor.younegotiate.com/auth/login"
payload = {
"email": "creditor@example.com",
"password": "Password123!",
"recaptcha": "recaptcha-token",
"device_name": "Creditor Portal",
"remember": 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({
email: 'creditor@example.com',
password: 'Password123!',
recaptcha: 'recaptcha-token',
device_name: 'Creditor Portal',
remember: true
})
};
fetch('https://api.creditor.younegotiate.com/auth/login', 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.creditor.younegotiate.com/auth/login",
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' => 'creditor@example.com',
'password' => 'Password123!',
'recaptcha' => 'recaptcha-token',
'device_name' => 'Creditor Portal',
'remember' => 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.creditor.younegotiate.com/auth/login"
payload := strings.NewReader("{\n \"email\": \"creditor@example.com\",\n \"password\": \"Password123!\",\n \"recaptcha\": \"recaptcha-token\",\n \"device_name\": \"Creditor Portal\",\n \"remember\": 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.creditor.younegotiate.com/auth/login")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"creditor@example.com\",\n \"password\": \"Password123!\",\n \"recaptcha\": \"recaptcha-token\",\n \"device_name\": \"Creditor Portal\",\n \"remember\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.creditor.younegotiate.com/auth/login")
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\": \"creditor@example.com\",\n \"password\": \"Password123!\",\n \"recaptcha\": \"recaptcha-token\",\n \"device_name\": \"Creditor Portal\",\n \"remember\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"data": {
"id": 123,
"name": "<string>",
"email": "jsmith@example.com"
},
"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": {}
}Body
application/json
Maximum string length:
255Maximum string length:
255When false, issue the refresh token with the standard non-remembered TTL. Omitted or true uses the remembered refresh-token TTL.
Last modified on July 20, 2026
Was this page helpful?
⌘I

