curl --request GET \
--url https://api.loopreturns.com/api/v1/blocklists \
--header 'X-Authorization: <api-key>'import requests
url = "https://api.loopreturns.com/api/v1/blocklists"
headers = {"X-Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization': '<api-key>'}};
fetch('https://api.loopreturns.com/api/v1/blocklists', 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.loopreturns.com/api/v1/blocklists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Authorization: <api-key>"
],
]);
$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.loopreturns.com/api/v1/blocklists"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Authorization", "<api-key>")
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.loopreturns.com/api/v1/blocklists")
.header("X-Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.loopreturns.com/api/v1/blocklists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 1,
"type": "order",
"value": "example@example.com",
"secondary_value": "example.2@example.com",
"created_at": "2023-06-09 00:00:00"
}
],
"links": [
{
"url": "https://api.loopreturns.com/api/v1/blocklists?page=1",
"label": 1,
"active": true
}
],
"next_page_url": "https://api.loopreturns.com/api/v1/blocklists?page=2",
"current_page": 1,
"from": 1,
"first_page_url": "https://api.loopreturns.com/api/v1/blocklists?page=1",
"last_page": 2,
"last_page_url": "https://api.loopreturns.com/api/v1/blocklists?page=2",
"path": "https://api.loopreturns.com/api/v1/blocklists",
"per_page": 15,
"prev_page_url": "<string>",
"to": 15,
"total": 20
}{
"errors": "Unauthorized."
}List Blocklist Items
Retrieve a list of paginated blocklist entries.
Required API key scope
- Orders
curl --request GET \
--url https://api.loopreturns.com/api/v1/blocklists \
--header 'X-Authorization: <api-key>'import requests
url = "https://api.loopreturns.com/api/v1/blocklists"
headers = {"X-Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization': '<api-key>'}};
fetch('https://api.loopreturns.com/api/v1/blocklists', 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.loopreturns.com/api/v1/blocklists",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Authorization: <api-key>"
],
]);
$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.loopreturns.com/api/v1/blocklists"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Authorization", "<api-key>")
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.loopreturns.com/api/v1/blocklists")
.header("X-Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.loopreturns.com/api/v1/blocklists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 1,
"type": "order",
"value": "example@example.com",
"secondary_value": "example.2@example.com",
"created_at": "2023-06-09 00:00:00"
}
],
"links": [
{
"url": "https://api.loopreturns.com/api/v1/blocklists?page=1",
"label": 1,
"active": true
}
],
"next_page_url": "https://api.loopreturns.com/api/v1/blocklists?page=2",
"current_page": 1,
"from": 1,
"first_page_url": "https://api.loopreturns.com/api/v1/blocklists?page=1",
"last_page": 2,
"last_page_url": "https://api.loopreturns.com/api/v1/blocklists?page=2",
"path": "https://api.loopreturns.com/api/v1/blocklists",
"per_page": 15,
"prev_page_url": "<string>",
"to": 15,
"total": 20
}{
"errors": "Unauthorized."
}Authorizations
Response
Success
The data for each entry in the blocklist.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
The link to the next page of paginated results.
"https://api.loopreturns.com/api/v1/blocklists?page=2"
The identifier associated with the current page.
1
The number of the first blocklist entry on the page.
1
The link to the first page of paginated results.
"https://api.loopreturns.com/api/v1/blocklists?page=1"
The identifier associated with the last page.
2
The link to the last page of paginated results.
"https://api.loopreturns.com/api/v1/blocklists?page=2"
The endpoint's path.
"https://api.loopreturns.com/api/v1/blocklists"
The number of blocklist entries per page.
15
The link to the previous page of paginated results.
The number of the last blocklist entry on the page.
15
The total number of blocklist entries returned.
20