List discoverable brands
curl --request GET \
--url https://app.openlight.tech/api/creator/v1/brands \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.openlight.tech/api/creator/v1/brands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.openlight.tech/api/creator/v1/brands', 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://app.openlight.tech/api/creator/v1/brands",
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://app.openlight.tech/api/creator/v1/brands"
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://app.openlight.tech/api/creator/v1/brands")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.openlight.tech/api/creator/v1/brands")
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{
"brands": [
{
"id": "<string>",
"name": "<string>",
"status": "active",
"description": "<string>",
"logo_url": "<string>",
"website": "<string>",
"product_count": 123,
"amazon_regions": [
"<string>"
],
"amazon_marketplaces": [
"<string>"
],
"partnership_status": "approved"
}
],
"next_cursor": "<string>"
}Brands
List brands
List brands discoverable by the creator
GET
/
api
/
creator
/
v1
/
brands
List discoverable brands
curl --request GET \
--url https://app.openlight.tech/api/creator/v1/brands \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.openlight.tech/api/creator/v1/brands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.openlight.tech/api/creator/v1/brands', 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://app.openlight.tech/api/creator/v1/brands",
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://app.openlight.tech/api/creator/v1/brands"
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://app.openlight.tech/api/creator/v1/brands")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.openlight.tech/api/creator/v1/brands")
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{
"brands": [
{
"id": "<string>",
"name": "<string>",
"status": "active",
"description": "<string>",
"logo_url": "<string>",
"website": "<string>",
"product_count": 123,
"amazon_regions": [
"<string>"
],
"amazon_marketplaces": [
"<string>"
],
"partnership_status": "approved"
}
],
"next_cursor": "<string>"
}Use this endpoint to list brands discoverable by the current creator token owner. List endpoints use cursor pagination:
limit defaults to 25 and cannot exceed 100; pass the previous response’s next_cursor as cursor to read the next page. When there are no more results, next_cursor is null.
Response fields:
id: Brand ID.name: Brand name.description: Brand description; may be omitted.logo_url: Brand logo image URL; may be omitted.website: Brand website URL; may be omitted.status: The brand’s own status. It does not describe the creator’s partnership state.product_count: Number of currently visible products; may be omitted.amazon_regions: Amazon country/region codes where the brand currently has active products, such asUS,UK, orDE; may be omitted.amazon_marketplaces: Amazon marketplace domains, such asamazon.com,amazon.co.uk, oramazon.de; may be omitted. Prefer this field when an integration needs the concrete Amazon site.partnership_status: The current token owner’s partnership status with the brand. It can beapproved,pending,rejected,suspended, ornull.nullmeans no partnership record exists.
status and partnership_status are intentionally separate: status belongs to the brand itself, while partnership_status describes the current creator relationship.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
每页返回数量,默认 25,最大 100。Number of items per page; defaults to 25 and maxes out at 100.
Required range:
x <= 100上一页响应返回的下一页游标。Cursor returned as next_cursor by the previous page.