Facebook Pixel tracker

Brand2Social API Documentation

Comprehensive guide to Brand2Social API endpoints

Get Redirect URL API

This API endpoint generates a redirect URL for accessing a specific customer's (brand's) dashboard or management interface within Brand2Social. To obtain a valid customer_id (also referred to as brand_id in some contexts), first call the "Get All Brands" API to retrieve the list of available brands and their associated customer IDs.

  • Method: POST
  • Endpoint: /api/api-services/v1/auth-service/auth-user (for authentication) → then protected endpoints
  • Returns: Redirect URL on success
  • Prerequisite: Authenticate first to get Bearer token; then fetch brands to get customer_id

Get Redirect URL for Customer Access

POST https://app.brand2social.com/api/api-services/v1/auth-service/auth-user

Note: This endpoint appears to be internal or custom based on the provided code. It requires authentication and organization admin permissions. The response provides a redirect URL for accessing a specific brand/customer.

FieldTypeRequiredDescription
customer_idstringYesThe ID of the customer/brand to access (obtained from "Get All Brands" API)

Steps to Use

  1. Authenticate using the Authenticate User API to obtain a Bearer token.
  2. Call the "Get All Brands" API (likely GET /api/api-services/v1/brand-service/get-all-brands or similar) to retrieve the list of brands and their customer_id or brand_id values.
  3. Use the desired customer_id in this endpoint to get the redirect URL for accessing/managing that brand.
curl --location 'https://app.brand2social.com/api/api-services/v1/auth-service/get-redirect-url' \
    --header 'Authorization: Bearer YOUR_BEARER_TOKEN' \
    --header 'Content-Type: application/json' \
    --data-raw '{
      "customer_id": "cust_123_example"
    }'

Response

{
  "status": "SUCCESS",
  "http_code": 200,
  "message": "Successfully retrieved redirect URL",
  "data": {
    "redirect_url": "https://app.brand2social.com/login?login_key=xxxxxx""
  }
}

Important: Always authenticate first. The exact endpoint path for this "Get Redirect URL" feature may differ — refer to the full Brand2Social API documentation at https://brand2social.com/api/ for the latest details, including the precise "Get All Brands" endpoint.