Get All Brands from Customer API
This API endpoint retrieves the complete list of brands associated with a specific customer (account). Provide the customer_id to get all brands under that customer. Requires authentication.
- Method: POST
- Endpoint:
/api/api-services/v1/brand-service/get-all-brands-from-customer - Authentication: Required (Bearer token)
- Returns: Array of brand objects
Get All Brands from Customer
POST https://app.brand2social.com/api/api-services/v1/brand-service/get-all-brands-from-customer
Example Request Body (JSON)
How this request looks in popular API testing tools:
| Field | Type | Required | Description |
|---|---|---|---|
| customer_id | string | Yes | The customer ID (obtained from Create Customer API or your reseller dashboard) |
curl --location --request POST 'https://app.brand2social.com/api/api-services/v1/brand-service/get-all-brands-from-customer' \
--header 'Authorization: Bearer B2S_dummyToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_id": "cust_abc123xyz"
}'Success Response
Example of a successful JSON response (visual reference):
{
"status": "SUCCESS",
"http_code": 200,
"message": "Successfully fetch all brands from customer",
"data": {
"brands": [
{
"brand_name": "MyBrand",
"brand_id": 4722,
"customer_id": "78d32150ea",
"timezone": "Asia/Kolkata",
"brand_limitation": {
"social_account_limit": 1,
"users_limit": 1,
"ai_content_tokens": 0,
"ai_image_token": 0
}
},
{
"brand_name": "DemoBrand",
"brand_id": 4720,
"customer_id": "78d32150ea",
"timezone": "Asia/Kolkata",
"brand_limitation": {
"social_account_limit": 1,
"users_limit": 1,
"ai_content_tokens": 1,
"ai_image_token": 0
}
}
]
}
}Use Case: This endpoint is essential for resellers or agencies managing multiple clients. Call it after creating a customer or when building a dashboard to list/select available brands for further operations (e.g., redirect URL, delete brand, etc.).