# Create Brand Voice

POST https://services.leadconnectorhq.com/brand-boards/locations/{locationId}/brand-voices

Create a brand voice for a location

## Authentication

Send `Authorization: Bearer <token>` using:

- **Sub-Account token: OAuth access token or Private Integration Token.** Scopes: `brand-boards/voices.write`

## Parameters

### Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Version` | string | Yes | API Version |

### Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `locationId` | string | Yes | Location ID |

## OpenAPI Specification

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "HighLevel API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://services.leadconnectorhq.com"
    }
  ],
  "paths": {
    "/brand-boards/locations/{locationId}/brand-voices": {
      "post": {
        "summary": "Create Brand Voice",
        "operationId": "createBrandVoice",
        "description": "Create a brand voice for a location",
        "parameters": [
          {
            "name": "locationId",
            "required": true,
            "in": "path",
            "description": "Location ID",
            "schema": {
              "example": "oHJiAh0wDG3BzmzACVD6",
              "type": "string"
            }
          },
          {
            "name": "Version",
            "in": "header",
            "description": "API Version",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v3"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBrandVoicePublicV1BodyDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateBrandVoicePublicV1ResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestDTO"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedDTO"
                }
              }
            }
          },
          "403": {
            "description": "The token does not have access to this location",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidLocationDTO"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundDTO"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "Location-Access": [
              "brand-boards/voices.write"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account.",
        "type": "http"
      },
      "Agency-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.",
        "type": "http"
      },
      "Agency-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency.",
        "type": "http"
      }
    },
    "schemas": {
      "CreateBrandVoicePublicV1BodyDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name",
            "example": "My Brand Voice"
          },
          "type": {
            "type": "string",
            "description": "Creation type. \"manual\" creates with provided custom answers, \"url\" generates answers from a website, \"description\" generates answers from a text description",
            "enum": [
              "manual",
              "url",
              "description"
            ],
            "example": "manual"
          },
          "url": {
            "type": "string",
            "description": "Website URL to generate brand voice from. Required when type is \"url\"",
            "example": "https://example.com"
          },
          "description": {
            "type": "string",
            "description": "Company description to generate brand voice from. Required when type is \"description\", optional when type is \"url\"",
            "example": "We are a tech company focused on innovative solutions for small businesses"
          },
          "answers": {
            "description": "Brand voice answers. Required when type is \"manual\"",
            "example": {
              "brandName": "Acme Inc",
              "toneOfVoice": "Professional and friendly",
              "targetAudience": "Small business owners",
              "customerPainPoints": "Difficulty with time management"
            },
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "brandName": {
                    "type": "string",
                    "description": "Brand Name",
                    "example": "Acme Inc"
                  },
                  "toneOfVoice": {
                    "type": "string",
                    "description": "Tone of Voice",
                    "example": "Professional and friendly"
                  },
                  "targetAudience": {
                    "type": "string",
                    "description": "Target Audience",
                    "example": "Small business owners"
                  },
                  "customerPainPoints": {
                    "type": "string",
                    "description": "Customer Pain Points",
                    "example": "Difficulty with time management"
                  },
                  "businessType": {
                    "type": "string",
                    "description": "Business Type",
                    "example": "Software Development"
                  },
                  "companyWebsite": {
                    "type": "string",
                    "description": "Company Website",
                    "example": "https://example.com"
                  },
                  "companyEmail": {
                    "type": "string",
                    "description": "Company Email",
                    "example": "contact@example.com"
                  },
                  "companyAddress": {
                    "type": "string",
                    "description": "Company Address",
                    "example": "123 Main St, Anytown, CA"
                  },
                  "phone": {
                    "type": "object",
                    "description": "Phone Information",
                    "example": {
                      "phoneNumber": "5551234567",
                      "countryCode": "US"
                    }
                  },
                  "businessHours": {
                    "type": "string",
                    "description": "Business Hours",
                    "example": "Mon-Fri 9am-5pm"
                  },
                  "brandPromise": {
                    "type": "string",
                    "description": "Brand Promise",
                    "example": "We deliver on time, every time"
                  },
                  "brandValues": {
                    "type": "string",
                    "description": "Brand Values",
                    "example": "Integrity, Excellence, Innovation"
                  },
                  "brandPurpose": {
                    "type": "string",
                    "description": "Brand Purpose",
                    "example": "To empower small businesses with technology"
                  },
                  "competitiveAdvantage": {
                    "type": "string",
                    "description": "Competitive Advantage",
                    "example": "Proprietary AI technology"
                  },
                  "risksOfInaction": {
                    "type": "string",
                    "description": "Risks of Inaction",
                    "example": "Falling behind competitors"
                  },
                  "uniqueSellingProposition": {
                    "type": "string",
                    "description": "Unique Selling Proposition",
                    "example": "The only solution that integrates with all major platforms"
                  },
                  "callToAction": {
                    "type": "string",
                    "description": "Call to Action",
                    "example": "Schedule a demo today"
                  }
                },
                "required": [
                  "brandName",
                  "toneOfVoice",
                  "targetAudience",
                  "customerPainPoints"
                ],
                "title": "BrandVoiceAnswersDto"
              }
            ]
          }
        },
        "required": [
          "type"
        ],
        "title": "CreateBrandVoicePublicV1BodyDto"
      },
      "CreateBrandVoicePublicV1ResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Brand voice ID",
            "example": "507f1f77bcf86cd799439011"
          },
          "name": {
            "type": "string",
            "description": "Brand voice name",
            "example": "My Brand Voice"
          },
          "isDefault": {
            "type": "boolean",
            "description": "Whether this is the default brand voice",
            "example": false
          },
          "createdAt": {
            "type": "string",
            "description": "Creation timestamp",
            "example": "2024-01-05T12:00:00.000Z"
          },
          "updatedAt": {
            "type": "string",
            "description": "Last update timestamp",
            "example": "2024-01-05T12:00:00.000Z"
          },
          "locationId": {
            "type": "string",
            "description": "Location ID",
            "example": "oHJiAh0wDG3BzmzACVD6"
          },
          "deleted": {
            "type": "boolean",
            "description": "Whether the brand voice has been soft deleted",
            "example": false
          },
          "answers": {
            "description": "Brand voice answers",
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "brandName": {
                    "type": "string",
                    "description": "Brand Name",
                    "example": "Acme Inc"
                  },
                  "toneOfVoice": {
                    "type": "string",
                    "description": "Tone of Voice",
                    "example": "Professional and friendly"
                  },
                  "targetAudience": {
                    "type": "string",
                    "description": "Target Audience",
                    "example": "Small business owners"
                  },
                  "customerPainPoints": {
                    "type": "string",
                    "description": "Customer Pain Points",
                    "example": "Difficulty with time management"
                  },
                  "businessType": {
                    "type": "string",
                    "description": "Business Type",
                    "example": "Software Development"
                  },
                  "companyWebsite": {
                    "type": "string",
                    "description": "Company Website",
                    "example": "https://example.com"
                  },
                  "companyEmail": {
                    "type": "string",
                    "description": "Company Email",
                    "example": "contact@example.com"
                  },
                  "companyAddress": {
                    "type": "string",
                    "description": "Company Address",
                    "example": "123 Main St, Anytown, CA"
                  },
                  "phone": {
                    "type": "object",
                    "description": "Phone Information",
                    "example": {
                      "phoneNumber": "5551234567",
                      "countryCode": "US"
                    }
                  },
                  "businessHours": {
                    "type": "string",
                    "description": "Business Hours",
                    "example": "Mon-Fri 9am-5pm"
                  },
                  "brandPromise": {
                    "type": "string",
                    "description": "Brand Promise",
                    "example": "We deliver on time, every time"
                  },
                  "brandValues": {
                    "type": "string",
                    "description": "Brand Values",
                    "example": "Integrity, Excellence, Innovation"
                  },
                  "brandPurpose": {
                    "type": "string",
                    "description": "Brand Purpose",
                    "example": "To empower small businesses with technology"
                  },
                  "competitiveAdvantage": {
                    "type": "string",
                    "description": "Competitive Advantage",
                    "example": "Proprietary AI technology"
                  },
                  "risksOfInaction": {
                    "type": "string",
                    "description": "Risks of Inaction",
                    "example": "Falling behind competitors"
                  },
                  "uniqueSellingProposition": {
                    "type": "string",
                    "description": "Unique Selling Proposition",
                    "example": "The only solution that integrates with all major platforms"
                  },
                  "callToAction": {
                    "type": "string",
                    "description": "Call to Action",
                    "example": "Schedule a demo today"
                  }
                },
                "title": "BrandVoiceAnswersPublicV1Dto"
              }
            ]
          },
          "traceId": {
            "type": "string",
            "description": "Trace ID of request",
            "example": "019e4ef5-a65e-4198-8cf9-8e93dca9bda4"
          }
        },
        "required": [
          "id",
          "name",
          "isDefault",
          "createdAt",
          "updatedAt",
          "locationId",
          "deleted"
        ],
        "title": "CreateBrandVoicePublicV1ResponseDto"
      },
      "BadRequestDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "message": {
            "type": "string",
            "example": "Bad Request"
          }
        },
        "title": "BadRequestDTO"
      },
      "UnauthorizedDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 401
          },
          "message": {
            "type": "string",
            "example": "Invalid token: access token is invalid"
          },
          "error": {
            "type": "string",
            "example": "Unauthorized"
          }
        },
        "title": "UnauthorizedDTO"
      },
      "InvalidLocationDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code for invalid location access",
            "example": 403
          },
          "message": {
            "type": "string",
            "description": "Error message describing the location access failure",
            "example": "The token does not have access to this location"
          }
        },
        "title": "InvalidLocationDTO"
      },
      "NotFoundDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "description": "HTTP status code for not found",
            "example": 404
          },
          "message": {
            "type": "string",
            "description": "Error message describing the not found failure",
            "example": "Not Found"
          },
          "error": {
            "type": "string",
            "description": "Error type identifier",
            "example": "The requested resource was not found"
          }
        },
        "title": "NotFoundDTO"
      },
      "UnprocessableDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 422
          },
          "message": {
            "example": [
              "Unprocessable Entity"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "example": "Unprocessable Entity"
          }
        },
        "title": "UnprocessableDTO"
      }
    }
  }
}
```

## Code Examples

**cURL**

```bash
curl -L -X POST 'https://services.leadconnectorhq.com/brand-boards/locations/<locationId>/brand-voices' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Version: v3' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "name": "My Brand Voice",
  "type": "manual",
  "url": "https://example.com",
  "description": "We are a tech company focused on innovative solutions for small businesses",
  "answers": {
    "brandName": "Acme Inc",
    "toneOfVoice": "Professional and friendly",
    "targetAudience": "Small business owners",
    "customerPainPoints": "Difficulty with time management"
  }
}'
```

**Node.js**

```javascript
const options = {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <TOKEN>',
    Version: 'v3',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
      "name": "My Brand Voice",
      "type": "manual",
      "url": "https://example.com",
      "description": "We are a tech company focused on innovative solutions for small businesses",
      "answers": {
        "brandName": "Acme Inc",
        "toneOfVoice": "Professional and friendly",
        "targetAudience": "Small business owners",
        "customerPainPoints": "Difficulty with time management"
      }
  })
};

try {
  const response = await fetch('https://services.leadconnectorhq.com/brand-boards/locations/<locationId>/brand-voices', options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

**Python**

```python
import requests

url = "https://services.leadconnectorhq.com/brand-boards/locations/{locationId}/brand-voices"

headers = {
    "Authorization": "Bearer <TOKEN>",
    "Version": "v3"
}

payload = {
    "name": "My Brand Voice",
    "type": "manual",
    "url": "https://example.com",
    "description": "We are a tech company focused on innovative solutions for small businesses",
    "answers": {
        "brandName": "Acme Inc",
        "toneOfVoice": "Professional and friendly",
        "targetAudience": "Small business owners",
        "customerPainPoints": "Difficulty with time management"
    }
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

**PHP**

```php
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://services.leadconnectorhq.com/brand-boards/locations/<locationId>/brand-voices',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer <TOKEN>',
    'Version: v3',
    'Content-Type: application/json',
  ],
  CURLOPT_POSTFIELDS => '{
  "name": "My Brand Voice",
  "type": "manual",
  "url": "https://example.com",
  "description": "We are a tech company focused on innovative solutions for small businesses",
  "answers": {
    "brandName": "Acme Inc",
    "toneOfVoice": "Professional and friendly",
    "targetAudience": "Small business owners",
    "customerPainPoints": "Difficulty with time management"
  }
}',
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

**Java**

```java
HttpResponse<String> response = Unirest
  .post("https://services.leadconnectorhq.com/brand-boards/locations/<locationId>/brand-voices")
  .header("Authorization", "Bearer <TOKEN>")
  .header("Version", "v3")
  .header("Content-Type", "application/json")
  .body("{\"name\":\"My Brand Voice\",\"type\":\"manual\",\"url\":\"https://example.com\",\"description\":\"We are a tech company focused on innovative solutions for small businesses\",\"answers\":{\"brandName\":\"Acme Inc\",\"toneOfVoice\":\"Professional and friendly\",\"targetAudience\":\"Small business owners\",\"customerPainPoints\":\"Difficulty with time management\"}}")
  .asString();
```

**Go**

```go
package main

import (
  "fmt"
  "net/http"
  "io"
  "strings"
)

func main() {
  url := "https://services.leadconnectorhq.com/brand-boards/locations/<locationId>/brand-voices"
  payload := strings.NewReader(`{
  "name": "My Brand Voice",
  "type": "manual",
  "url": "https://example.com",
  "description": "We are a tech company focused on innovative solutions for small businesses",
  "answers": {
    "brandName": "Acme Inc",
    "toneOfVoice": "Professional and friendly",
    "targetAudience": "Small business owners",
    "customerPainPoints": "Difficulty with time management"
  }
}`)
  req, _ := http.NewRequest("POST", url, payload)
  req.Header.Add("Authorization", "Bearer <TOKEN>")
  req.Header.Add("Version", "v3")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}
```

**Ruby**

```ruby
require 'uri'
require 'net/http'

url = URI("https://services.leadconnectorhq.com/brand-boards/locations/<locationId>/brand-voices")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <TOKEN>"
request["Version"] = "v3"
request["Content-Type"] = "application/json"
request.body = '{
  "name": "My Brand Voice",
  "type": "manual",
  "url": "https://example.com",
  "description": "We are a tech company focused on innovative solutions for small businesses",
  "answers": {
    "brandName": "Acme Inc",
    "toneOfVoice": "Professional and friendly",
    "targetAudience": "Small business owners",
    "customerPainPoints": "Difficulty with time management"
  }
}'

response = http.request(request)
puts response.read_body
```

**PowerShell**

```powershell
$headers = @{
  "Authorization" = "Bearer <TOKEN>"
  "Version" = "v3"
}

$body = '{
  "name": "My Brand Voice",
  "type": "manual",
  "url": "https://example.com",
  "description": "We are a tech company focused on innovative solutions for small businesses",
  "answers": {
    "brandName": "Acme Inc",
    "toneOfVoice": "Professional and friendly",
    "targetAudience": "Small business owners",
    "customerPainPoints": "Difficulty with time management"
  }
}'

$response = Invoke-RestMethod -Uri 'https://services.leadconnectorhq.com/brand-boards/locations/<locationId>/brand-voices' -Method 'POST' -Headers $headers -Body $body -ContentType 'application/json'
$response | ConvertTo-Json
```
