List EcoMailbox
curl --request GET \
--url https://api.consumer.younegotiate.com/e-letters \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.consumer.younegotiate.com/e-letters"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.consumer.younegotiate.com/e-letters', 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/e-letters",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.consumer.younegotiate.com/e-letters"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.consumer.younegotiate.com/e-letters")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.consumer.younegotiate.com/e-letters")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"sender_label": "Demand Notice",
"read_by_consumer": true,
"unread": true,
"enabled": true,
"actions": {
"can_open": true,
"can_download": true,
"can_delete": true,
"can_view_offer": true
},
"e_letter": {
"id": 123,
"type": {
"label": "Normal"
}
},
"sender": {
"company_id": 123,
"company_name": "<string>",
"subclient_id": 123
},
"sent_at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"account": {
"id": 123,
"account_name": "<string>",
"account_number": "<string>",
"member_account_number": "<string>",
"status": {
"value": "payment_accepted",
"label": "Payment Plan"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"state": {
"eco_mailbox": {
"unread_count": 12,
"display_count": "12",
"has_unread": true
}
}
},
"pagination": {
"current_page": 123,
"from": 123,
"last_page": 123,
"per_page": 123,
"to": 123,
"total": 123
}
}{
"message": "<string>"
}{
"code": "profile_incomplete",
"message": "Please complete your communication profile before viewing accounts.",
"required_steps": [
"profile_communication"
]
}{
"message": "<string>",
"errors": {}
}List EcoMailbox
List MyEcoMailBox rows for the authenticated consumer profile across owned accounts. Search matches sender company name, unread=true maps to the Only Show Unread toggle, and the response includes meta.state.eco_mailbox so the frontend can render the sidebar unread badge.
GET
/
e-letters
List EcoMailbox
curl --request GET \
--url https://api.consumer.younegotiate.com/e-letters \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.consumer.younegotiate.com/e-letters"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.consumer.younegotiate.com/e-letters', 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/e-letters",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.consumer.younegotiate.com/e-letters"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.consumer.younegotiate.com/e-letters")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.consumer.younegotiate.com/e-letters")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"sender_label": "Demand Notice",
"read_by_consumer": true,
"unread": true,
"enabled": true,
"actions": {
"can_open": true,
"can_download": true,
"can_delete": true,
"can_view_offer": true
},
"e_letter": {
"id": 123,
"type": {
"label": "Normal"
}
},
"sender": {
"company_id": 123,
"company_name": "<string>",
"subclient_id": 123
},
"sent_at": "2023-11-07T05:31:56Z",
"delivered_at": "2023-11-07T05:31:56Z",
"account": {
"id": 123,
"account_name": "<string>",
"account_number": "<string>",
"member_account_number": "<string>",
"status": {
"value": "payment_accepted",
"label": "Payment Plan"
}
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"meta": {
"state": {
"eco_mailbox": {
"unread_count": 12,
"display_count": "12",
"has_unread": true
}
}
},
"pagination": {
"current_page": 123,
"from": 123,
"last_page": 123,
"per_page": 123,
"to": 123,
"total": 123
}
}{
"message": "<string>"
}{
"code": "profile_incomplete",
"message": "Please complete your communication profile before viewing accounts.",
"required_steps": [
"profile_communication"
]
}{
"message": "<string>",
"errors": {}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Search sender company name.
Maximum string length:
255When true, only unread EcoMailbox rows are returned.
Example:
true
Sort column.
Available options:
created_at, company_name Available options:
asc, desc Required range:
x >= 1Required range:
1 <= x <= 100Last modified on July 19, 2026
Was this page helpful?
⌘I

