Create Brand API
This API endpoint allows you to create a new brand for a customer. You must provide the customer ID and brand details, including limitations. On success, you receive the new brand ID and customer ID.
- Method: POST
- Endpoint:
/api/api-services/v1/brand-service/create-brand
- Returns: Brand ID and customer ID on success
Create Brand
POST https://app.brand2social.com/api/api-services/v1/brand-service/create-brand
Field | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
customer_id | string | Yes | ID of the customer | ||||||||||||||||||||||||||||||||||||||||
brand_details | object | Yes | Details of the brand | ||||||||||||||||||||||||||||||||||||||||
|
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/create-brand' \
--header 'Authorization: Bearer B2S_dummyToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_id": "cust_abc123",
"brand_details": {
"brand_name": "MyBrand",
"timezone": "Asia/Kolkata",
"brand_limitation": {
"social_account_limit": 1,
"users_limit": 2,
"ai_content_tokens": 10,
"ai_image_token": 5
}
}
}'
Response
{
"status": "SUCCESS",
"http_code": 200,
"message": "Successfully created brand",
"data": {
"brand_id": 1001,
"customer_id": "cust_abc123"
}
}