Brand2Social API Documentation

Comprehensive guide to Brand2Social API endpoints

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

FieldTypeRequiredDescription
customer_idstringYesID of the customer
brand_detailsobjectYesDetails of the brand
FieldTypeRequiredDescription
brand_namestringYesName of the brand
timezonestringYesTimezone of the brand
brand_limitationobjectYesLimitations for brand
FieldTypeRequiredDescription
social_account_limitnumberYesMust be > 0
users_limitnumberYesMust be > 0
ai_content_tokensnumberYesMust be > 0
ai_image_tokennumberYesMust be > 0
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"
  }
}