Brand2Social API Documentation

Comprehensive guide to Brand2Social API endpoints

Create Customer API

This API endpoint allows you to create a new customer account along with one or more brands. You must provide user details and at least one brand. On success, you receive a redirect URL and the new customer ID.

  • Method: POST
  • Endpoint: /api/api-services/v1/brand-service/create-customer
  • Returns: Redirect URL and customer ID on success

Create Customer

POST https://app.brand2social.com/api/api-services/v1/brand-service/create-customer

FieldTypeRequiredDescription
user_detailsobjectYesUser info
FieldTypeRequiredDescription
email_addressstringYesEmail ID
passwordstringYesPassword (same as email for demo)
timezonestringYesUser's timezone
first_namestringYesUser's first name
brand_detailsarray of objectsYesAt least one brand
FieldTypeRequiredDescription
brand_namestringYesName of the brand
timezonestringYesBrand timezone
brand_limitationobjectYesLimit settings
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/create-customer' \
    --header 'Authorization: Bearer B2S_dummyToken' \
    --header 'Content-Type: application/json' \
    --data-raw '{
      "user_details": {
        "email_address": "demo@example.com",
        "password": "demo@example.com",
        "timezone": "Asia/Kolkata",
        "first_name": "Demo"
      },
      "brand_details": [
        {
          "brand_name": "DemoBrand",
          "timezone": "Asia/Kolkata",
          "brand_limitation": {
            "social_account_limit": 1,
            "users_limit": 1,
            "ai_content_tokens": 1,
            "ai_image_token": 1
          }
        }
      ]
    }'

Response

{
  "status": "SUCCESS",
  "http_code": 200,
  "message": "Successfully created new customer",
  "data": {
    "redirect_url": "https://app.brand2social.com/login?login_key=demo-login-key",
    "customer_id": "cust_123"
  }
}