cURL
curl --request GET \
--url https://api.growi.io/api/public/v1/organizations/brands \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.growi.io/api/public/v1/organizations/brands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.growi.io/api/public/v1/organizations/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://api.growi.io/api/public/v1/organizations/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://api.growi.io/api/public/v1/organizations/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://api.growi.io/api/public/v1/organizations/brands")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.growi.io/api/public/v1/organizations/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{
"success": true,
"brands": [
{
"id": 0,
"name": "Name"
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"success": false,
"message": "Organization not found"
}Organization API
Get Brands
Retrieves a list of all available brands for your organization
GET
/
organizations
/
brands
cURL
curl --request GET \
--url https://api.growi.io/api/public/v1/organizations/brands \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.growi.io/api/public/v1/organizations/brands"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.growi.io/api/public/v1/organizations/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://api.growi.io/api/public/v1/organizations/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://api.growi.io/api/public/v1/organizations/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://api.growi.io/api/public/v1/organizations/brands")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.growi.io/api/public/v1/organizations/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{
"success": true,
"brands": [
{
"id": 0,
"name": "Name"
}
]
}{
"error": "<string>",
"message": "<string>"
}{
"success": false,
"message": "Organization not found"
}Retrieves a list of all available brands for your organization. This endpoint returns basic brand information including brand IDs and names that can be used for filtering and organization purposes.
Common error scenarios:
Request Parameters
This endpoint does not require any specific parameters, but standard authentication is required.| Parameter | Type | Description | Required |
|---|---|---|---|
| None | - | This endpoint does not accept additional parameters | - |
Request Example
curl -X GET "https://api.growi.io/api/public/v1/organizations/brands" \
-H "Authorization: Bearer YOUR_PUBLIC_API_KEY" \
-H "Content-Type: application/json"
Response Example
{
"success": true,
"brands": [
{
"id": 0,
"name": "Name"
},
{
"id": 1,
"name": "Name 2"
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
success | Boolean | Indicates whether the request was successful |
brands | Array | Array of brand objects |
brands[].id | Integer | Unique identifier for the brand |
brands[].name | String | Display name of the brand |
Use Cases
- Brand Filtering: Use brand IDs to filter data in other API endpoints
- Brand Management: Retrieve available brands for management interfaces
- Organization Setup: Get brand information for initial application setup
- Reporting: Include brand names in reports and analytics dashboards
Error Responses
{
"error": "Not Authenticated"
}
- 401 Unauthorized: Invalid or missing Bearer token
- 403 Forbidden: API key doesn’t have permission to access brands
- 500 Internal Server Error: Server-side error occurred