List Clients
curl --request GET \
--url https://api.bspk.com/api/extraction/v1/clients \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bspk.com/api/extraction/v1/clients"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bspk.com/api/extraction/v1/clients', 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.bspk.com/api/extraction/v1/clients",
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.bspk.com/api/extraction/v1/clients"
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.bspk.com/api/extraction/v1/clients")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bspk.com/api/extraction/v1/clients")
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[
{
"bspk_id": 12345,
"current_sales_associate_id": "SA_01",
"current_sales_associate_name": "FirstName-84 LastName-84",
"current_store_id": null,
"current_store_name": null,
"client_id": "EXTERNAL_ID_150",
"name": "FirstName-85 LastName-85",
"first_name": "FirstName-85",
"last_name": "LastName-85",
"email": "someone92@example.com",
"mobile_phone": "+14153400067",
"other_phone": "+14153400067",
"birthday": null,
"gender": null,
"nationality": null,
"passport_number": null,
"language": null,
"title": null,
"address": "",
"addresses": [
{
"address": null,
"address_2": null,
"address_3": null,
"address_4": null,
"city": null,
"state": null,
"zip": null,
"country_code": null,
"notes": null
}
],
"preferred_contact_channel": null,
"communication_preferences": {
"chat_opt_in": true,
"email_opt_in": true,
"phone_opt_in": true,
"whatsapp_opt_in": false,
"wechat_opt_in": false,
"line_opt_in": false,
"opt_out": false
},
"preferences": [],
"interests": [],
"preferred_journey": null,
"segment": null,
"referred_by_client_id": null,
"referred_at": null,
"consent": false,
"notify_of_new_collection": false,
"last_contacted_at": "2024-08-02T12:29:24.068Z",
"created_at": "2024-08-07T12:29:24.099Z",
"updated_at": "2024-08-07T12:29:24.099Z"
}
]Clients
List Clients
List clients
GET
/
api
/
extraction
/
v1
/
clients
List Clients
curl --request GET \
--url https://api.bspk.com/api/extraction/v1/clients \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.bspk.com/api/extraction/v1/clients"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.bspk.com/api/extraction/v1/clients', 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.bspk.com/api/extraction/v1/clients",
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.bspk.com/api/extraction/v1/clients"
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.bspk.com/api/extraction/v1/clients")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bspk.com/api/extraction/v1/clients")
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[
{
"bspk_id": 12345,
"current_sales_associate_id": "SA_01",
"current_sales_associate_name": "FirstName-84 LastName-84",
"current_store_id": null,
"current_store_name": null,
"client_id": "EXTERNAL_ID_150",
"name": "FirstName-85 LastName-85",
"first_name": "FirstName-85",
"last_name": "LastName-85",
"email": "someone92@example.com",
"mobile_phone": "+14153400067",
"other_phone": "+14153400067",
"birthday": null,
"gender": null,
"nationality": null,
"passport_number": null,
"language": null,
"title": null,
"address": "",
"addresses": [
{
"address": null,
"address_2": null,
"address_3": null,
"address_4": null,
"city": null,
"state": null,
"zip": null,
"country_code": null,
"notes": null
}
],
"preferred_contact_channel": null,
"communication_preferences": {
"chat_opt_in": true,
"email_opt_in": true,
"phone_opt_in": true,
"whatsapp_opt_in": false,
"wechat_opt_in": false,
"line_opt_in": false,
"opt_out": false
},
"preferences": [],
"interests": [],
"preferred_journey": null,
"segment": null,
"referred_by_client_id": null,
"referred_at": null,
"consent": false,
"notify_of_new_collection": false,
"last_contacted_at": "2024-08-02T12:29:24.068Z",
"created_at": "2024-08-07T12:29:24.099Z",
"updated_at": "2024-08-07T12:29:24.099Z"
}
]Authorizations
Query Parameters
Selects the column that from and to filter, and the column that orders the result. A request that does not send sort uses created_at, which is the creation time. updated_at is the time of the last change: use it to extract a delta of the clients that changed after your last extraction. The other extraction endpoints do not accept this parameter and answer HTTP 422 when a request sends it.
Available options:
created_at, updated_at Response
200 - application/json
Successful response, returns array of clients
