System
API info
GET
/
API info
curl --request GET \
--url https://api.tybritelabs.com/logistics/import requests
url = "https://api.tybritelabs.com/logistics/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.tybritelabs.com/logistics/', 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.tybritelabs.com/logistics/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.tybritelabs.com/logistics/"
req, _ := http.NewRequest("GET", url, nil)
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.tybritelabs.com/logistics/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tybritelabs.com/logistics/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"name": "TLDP API",
"version": "v1",
"documentation": "https://docs.tybritelabs.com/tldp",
"endpoints": [
{
"prefix": "/v1/rates",
"description": "Rate calculation"
},
{
"prefix": "/v1/shipments",
"description": "Shipment management"
},
{
"prefix": "/v1/tracking",
"description": "Public + detailed tracking"
},
{
"prefix": "/v1/pod",
"description": "Proof of delivery"
},
{
"prefix": "/v1/webhooks",
"description": "Webhook endpoint management"
},
{
"prefix": "/v1/orders",
"description": "Customer orders + fulfilment"
},
{
"prefix": "/v1/returns",
"description": "Returns + exchanges (reverse logistics)"
}
]
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Retry after the window resets."
}
}{
"error": {
"code": "server_error",
"message": "An unexpected error occurred. Try again or contact support."
}
}Response
Service metadata and available endpoints.
The response is of type object.
⌘I
API info
curl --request GET \
--url https://api.tybritelabs.com/logistics/import requests
url = "https://api.tybritelabs.com/logistics/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.tybritelabs.com/logistics/', 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.tybritelabs.com/logistics/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.tybritelabs.com/logistics/"
req, _ := http.NewRequest("GET", url, nil)
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.tybritelabs.com/logistics/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tybritelabs.com/logistics/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"name": "TLDP API",
"version": "v1",
"documentation": "https://docs.tybritelabs.com/tldp",
"endpoints": [
{
"prefix": "/v1/rates",
"description": "Rate calculation"
},
{
"prefix": "/v1/shipments",
"description": "Shipment management"
},
{
"prefix": "/v1/tracking",
"description": "Public + detailed tracking"
},
{
"prefix": "/v1/pod",
"description": "Proof of delivery"
},
{
"prefix": "/v1/webhooks",
"description": "Webhook endpoint management"
},
{
"prefix": "/v1/orders",
"description": "Customer orders + fulfilment"
},
{
"prefix": "/v1/returns",
"description": "Returns + exchanges (reverse logistics)"
}
]
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Retry after the window resets."
}
}{
"error": {
"code": "server_error",
"message": "An unexpected error occurred. Try again or contact support."
}
}
