List brands
1 min
GET
https://api.detected.app/api/v2/public/brands
Responses
200
- object
- dataBrandResource[]Description
- idstringrequiredDescription
- namestringrequiredDescription
- slugstringrequiredDescription
- is_defaultbooleanrequiredDescription
- configurationobjectrequiredDescription
- logoobjectDescription
- urlstringDescription
- sizestring<default | small | large>DescriptionAlloweddefaultsmalllarge
- inputsobjectDescription
- textobjectDescription
- cornersstring<square | curved | round>DescriptionAllowedsquarecurvedround
- border-colorstringDescription
- background-colorstringDescription
- border-color-focusstringDescription
- checkboxesobjectDescription
- icon-colorstringDescription
- background-color-focusstringDescription
- buttonsobjectDescription
- primary_buttonobjectDescription
- glowbooleanDescription
- colorstringDescription
- cornersstring<square | curved | round>DescriptionAllowedsquarecurvedround
- border-colorstringDescription
- background-colorstringDescription
- secondry_buttonobjectDescription
- glowbooleanDescription
- cornersstring<square | curved | round>DescriptionAllowedsquarecurvedround
- border-colorstringDescription
- background-colorstringDescription
- fontsobjectrequiredDescription
- created_atstringrequiredDescription
- updated_atstringrequiredDescription
Response Headers
- X-RateLimit-Limit
- X-RateLimit-Remaining
- x-ratelimit-reset
- retry-after
401
- object
- messagestringDescription
429
- object
- messagestringDescription
curl
curl --request GET \
--url https://api.detected.app/api/v2/public/brands \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.detected.app/api/v2/public/brands", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.detected.app/api/v2/public/brands")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.detected.app/api/v2/public/brands"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// OK
{
"data": [
{
"id": "",
"name": "",
"slug": "",
"is_default": false,
"configuration": {
"logo": {
"url": "",
"size": ""
},
"inputs": {
"text": {
"corners": "",
"border-color": "",
"background-color": "",
"border-color-focus": ""
},
"checkboxes": {
"icon-color": "",
"background-color-focus": ""
}
},
"buttons": {
"primary_button": {
"glow": false,
"color": "",
"corners": "",
"border-color": "",
"background-color": ""
},
"secondry_button": {
"glow": false,
"corners": "",
"border-color": "",
"background-color": ""
}
}
},
"fonts": {},
"created_at": "",
"updated_at": ""
}
]
}401
// Unauthorized. The access token is missing, invalid or has expired.
{
"message": ""
}429
// Too Many Requests. You have exceeded the rate limit. Wait for the number of seconds given in the Retry-After header before trying again.
{
"message": ""
}