Retrieve a list of sender addresses
curl --request GET \
--url https://panel.sendcloud.sc/api/v2/user/addresses/sender \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v2/user/addresses/sender"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://panel.sendcloud.sc/api/v2/user/addresses/sender', 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://panel.sendcloud.sc/api/v2/user/addresses/sender",
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: Basic <encoded-value>"
],
]);
$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://panel.sendcloud.sc/api/v2/user/addresses/sender"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://panel.sendcloud.sc/api/v2/user/addresses/sender")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v2/user/addresses/sender")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"sender_addresses": [
{
"id": 2,
"company_name": "French Company",
"contact_name": "Marie Doe",
"email": "info@sendcloud.fr",
"telephone": "",
"street": "Rue Villiers de l'Isle Adam",
"house_number": "33",
"postal_box": "",
"postal_code": "35000",
"city": "Rennes",
"country": "FR",
"country_state": null,
"vat_number": "NL123456789B01",
"eori_number": "NL123456789",
"label": "Sample label FR",
"brand_id": 1,
"signature_full_name": "",
"signature_initials": ""
},
{
"id": 1,
"company_name": "Sendcloud",
"contact_name": "John Doe",
"email": "johndoe@sendcloud.com",
"telephone": "+31626262626",
"street": "Bogert",
"house_number": "10",
"postal_box": "",
"postal_code": "5611 EM",
"city": "Eindhoven",
"country": "NL",
"country_state": null,
"vat_number": "NL123456789B01",
"eori_number": "NL123456789",
"label": "Sample label NL",
"brand_id": 2,
"signature_full_name": "John Doe",
"signature_initials": "JD"
}
]
}Sender addresses API
Retrieve a list of sender addresses
Returns a list of all the sender addresses which have been saved to your account.
GET
/
user
/
addresses
/
sender
Retrieve a list of sender addresses
curl --request GET \
--url https://panel.sendcloud.sc/api/v2/user/addresses/sender \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v2/user/addresses/sender"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://panel.sendcloud.sc/api/v2/user/addresses/sender', 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://panel.sendcloud.sc/api/v2/user/addresses/sender",
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: Basic <encoded-value>"
],
]);
$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://panel.sendcloud.sc/api/v2/user/addresses/sender"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://panel.sendcloud.sc/api/v2/user/addresses/sender")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v2/user/addresses/sender")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"sender_addresses": [
{
"id": 2,
"company_name": "French Company",
"contact_name": "Marie Doe",
"email": "info@sendcloud.fr",
"telephone": "",
"street": "Rue Villiers de l'Isle Adam",
"house_number": "33",
"postal_box": "",
"postal_code": "35000",
"city": "Rennes",
"country": "FR",
"country_state": null,
"vat_number": "NL123456789B01",
"eori_number": "NL123456789",
"label": "Sample label FR",
"brand_id": 1,
"signature_full_name": "",
"signature_initials": ""
},
{
"id": 1,
"company_name": "Sendcloud",
"contact_name": "John Doe",
"email": "johndoe@sendcloud.com",
"telephone": "+31626262626",
"street": "Bogert",
"house_number": "10",
"postal_box": "",
"postal_code": "5611 EM",
"city": "Eindhoven",
"country": "NL",
"country_state": null,
"vat_number": "NL123456789B01",
"eori_number": "NL123456789",
"label": "Sample label NL",
"brand_id": 2,
"signature_full_name": "John Doe",
"signature_initials": "JD"
}
]
}API v2 is entering maintenance mode. New users should start with API v3 to access our latest features and improved performance. Already using v2? Don’t worry, your current integration remains fully functional. Read more about maintenance mode, or check out the migration guide for API v3.
id of each address, which you can include as a parameter when creating parcels or looking up shipping methods via the API.Authorizations
HTTPBasicAuthOAuth2ClientCreds
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Response
200 - application/json
List of sender addresses.
A list of the users configured sender addresses.
Show child attributes
Show child attributes
⌘I