SalesByte
Integration API

Create Lead

Creates a new lead in SalesByte. This is typically used for lead generation or initial engagement activities.

Endpoint

POST /integrations/create_brandawareness

Purpose

To generate a lead quote with customizable customer details and initial settings.

Request Body

{
  "uuid": "string",
  "quote_profile_id": 0,
  "customer_name": "string",
  "customer_phone": "string | null",
  "customer_email": "string | null",
  "customer_company": "string | null",
  "chat_enabled": true,
  "send_type": "string",
  "type": "string",
  "workflows_enabled": true,
  "allow_customer_document_upload": true,
  "trigger_created_messages_to_customer": true,
  "salesperson_email": "string | array | null",
  "custom_field_1_content": "string | null",
  "custom_field_2_content": "string | null",
  "tag_1": "string | null",
  "tag_2": "string | null",
  "message": "string | null"
}

Parameters

Required Parameters

ParameterTypeDescription
uuidstringUnique identifier for the integration configuration
quote_profile_idintegerThe ID of the quote profile to use
customer_namestringThe name of the customer
chat_enabledbooleanEnable chat for the quote
send_typestringMethod for sending the brand awareness message (e.g., "email", "sms")
typestringThe specific type of brand awareness
workflows_enabledbooleanEnable workflows for the quote
allow_customer_document_uploadbooleanAllow customer document uploads
trigger_created_messages_to_customerbooleanTrigger initial messages to the customer

Optional Parameters

ParameterTypeDescription
customer_phonestring | nullCustomer's phone number (will be sanitized)
customer_emailstring | nullCustomer's email address
customer_companystring | nullName of the customer's company
salesperson_emailstring | array | nullEmail(s) of the salesperson(s). If null, a random salesperson is assigned
custom_field_1_content - custom_field_10_contentstring | nullContent for custom fields 1-10
tag_1 - tag_10string | nullTags 1-10 for the quote
messagestring | nullA sales note message for the quote

Response

Success Response

Status Code: 200 OK

{
  "id": 123,
  "links": {
    "edit": "string",
    "customer_view": "string",
    "customer_verificate": "string",
    "customer_project_approval": "string"
  }
}

Response Fields

FieldDescription
idThe ID of the newly created quote
links.editURL to edit the quote in SalesByte
links.customer_viewURL for the customer to view the quote
links.customer_verificateURL for customer verification (if applicable)
links.customer_project_approvalURL for customer project approval (if applicable)

Error Responses

Status CodeDescription
404 Not FoundIntegration uuid or quote_profile_id not found, or salesperson with the specified email not found
422 Unprocessable EntityValidation errors in the request body
500 Internal Server ErrorAn unexpected server error occurred

On this page