Get Type Brands
curl --request GET \
--url https://api.legitmark.com/api/v2/types/{type_uuid}/brands \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legitmark.com/api/v2/types/{type_uuid}/brands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.legitmark.com/api/v2/types/{type_uuid}/brands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/v2/types/{type_uuid}/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))
}{
"success": true,
"message": "Brands fetched successfully",
"data": [
{
"uuid": "9dd17453-353a-4dc1-9bdc-c08cca38942a",
"name": "Alexander McQueen",
"media": "https://cdn.legitmark.com/brands/alexander_mcqueen.png",
"active": true,
"ordinal": null,
"relation_active": true,
"brand_active": true
},
{
"uuid": "6fce28f2-b59d-11ef-b98d-06fb0f2a63e5",
"name": "Brunello Cucinelli",
"media": "https://cdn.legitmark.com/brands/brunello_cucinelli.png",
"active": true,
"ordinal": null,
"relation_active": true,
"brand_active": true
}
],
"total": 45
}{
"success": false,
"error": {
"code": 123,
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>",
"details": "<string>"
}
}Taxonomy
Get Type Brands
Get all brands available for a specific type with optional counts and inactive items.
GET
https://api.legitmark.com
/
api
/
v2
/
types
/
{type_uuid}
/
brands
Get Type Brands
curl --request GET \
--url https://api.legitmark.com/api/v2/types/{type_uuid}/brands \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.legitmark.com/api/v2/types/{type_uuid}/brands', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.legitmark.com/api/v2/types/{type_uuid}/brands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/v2/types/{type_uuid}/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))
}{
"success": true,
"message": "Brands fetched successfully",
"data": [
{
"uuid": "9dd17453-353a-4dc1-9bdc-c08cca38942a",
"name": "Alexander McQueen",
"media": "https://cdn.legitmark.com/brands/alexander_mcqueen.png",
"active": true,
"ordinal": null,
"relation_active": true,
"brand_active": true
},
{
"uuid": "6fce28f2-b59d-11ef-b98d-06fb0f2a63e5",
"name": "Brunello Cucinelli",
"media": "https://cdn.legitmark.com/brands/brunello_cucinelli.png",
"active": true,
"ordinal": null,
"relation_active": true,
"brand_active": true
}
],
"total": 45
}{
"success": false,
"error": {
"code": 123,
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>",
"details": "<string>"
}
}Authorizations
Bearer token authentication. Use your API key in the format: Bearer leo_xxxxxxxx
Path Parameters
Type UUID
Query Parameters
Include side group counts for each brand
Include inactive brands in the response
Response
Brands retrieved successfully
The response is of type any.
⌘I