curl --request POST \
--url https://api.leadping.ai/businesses/me \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"secondaryName": "<string>",
"enabled": true,
"autoRefillEnabled": true,
"autoRefillAmount": "<string>",
"autoRefillTrigger": "<string>",
"phone": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingName": "<string>",
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingTaxId": "<string>",
"website": "<string>",
"vertical": "<string>",
"description": "<string>",
"ein": "<string>",
"isYoungerThan90": true,
"einDocument": {
"id": "<string>",
"name": "<string>",
"value": "<string>"
},
"phones": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
],
"compliancePolicy": {
"enabled": true,
"allowedStates": [
"<string>"
],
"allowedProducts": [
"<string>"
],
"requireLeadState": true,
"requireAgentLicenseState": true,
"requireProduct": true,
"requireTrustedFormForAutomations": true,
"requireSourceComplianceApproval": true
},
"id": "<string>"
}
'import requests
url = "https://api.leadping.ai/businesses/me"
payload = {
"name": "<string>",
"secondaryName": "<string>",
"enabled": True,
"autoRefillEnabled": True,
"autoRefillAmount": "<string>",
"autoRefillTrigger": "<string>",
"phone": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingName": "<string>",
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingTaxId": "<string>",
"website": "<string>",
"vertical": "<string>",
"description": "<string>",
"ein": "<string>",
"isYoungerThan90": True,
"einDocument": {
"id": "<string>",
"name": "<string>",
"value": "<string>"
},
"phones": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
],
"compliancePolicy": {
"enabled": True,
"allowedStates": ["<string>"],
"allowedProducts": ["<string>"],
"requireLeadState": True,
"requireAgentLicenseState": True,
"requireProduct": True,
"requireTrustedFormForAutomations": True,
"requireSourceComplianceApproval": True
},
"id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/businesses/me");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"name\": \"<string>\",\n \"secondaryName\": \"<string>\",\n \"enabled\": true,\n \"autoRefillEnabled\": true,\n \"autoRefillAmount\": \"<string>\",\n \"autoRefillTrigger\": \"<string>\",\n \"phone\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingName\": \"<string>\",\n \"billingAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingTaxId\": \"<string>\",\n \"website\": \"<string>\",\n \"vertical\": \"<string>\",\n \"description\": \"<string>\",\n \"ein\": \"<string>\",\n \"isYoungerThan90\": true,\n \"einDocument\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"phones\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"compliancePolicy\": {\n \"enabled\": true,\n \"allowedStates\": [\n \"<string>\"\n ],\n \"allowedProducts\": [\n \"<string>\"\n ],\n \"requireLeadState\": true,\n \"requireAgentLicenseState\": true,\n \"requireProduct\": true,\n \"requireTrustedFormForAutomations\": true,\n \"requireSourceComplianceApproval\": true\n },\n \"id\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);HttpResponse<String> response = Unirest.post("https://api.leadping.ai/businesses/me")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"secondaryName\": \"<string>\",\n \"enabled\": true,\n \"autoRefillEnabled\": true,\n \"autoRefillAmount\": \"<string>\",\n \"autoRefillTrigger\": \"<string>\",\n \"phone\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingName\": \"<string>\",\n \"billingAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingTaxId\": \"<string>\",\n \"website\": \"<string>\",\n \"vertical\": \"<string>\",\n \"description\": \"<string>\",\n \"ein\": \"<string>\",\n \"isYoungerThan90\": true,\n \"einDocument\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"phones\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"compliancePolicy\": {\n \"enabled\": true,\n \"allowedStates\": [\n \"<string>\"\n ],\n \"allowedProducts\": [\n \"<string>\"\n ],\n \"requireLeadState\": true,\n \"requireAgentLicenseState\": true,\n \"requireProduct\": true,\n \"requireTrustedFormForAutomations\": true,\n \"requireSourceComplianceApproval\": true\n },\n \"id\": \"<string>\"\n}")
.asString();const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
secondaryName: '<string>',
enabled: true,
autoRefillEnabled: true,
autoRefillAmount: '<string>',
autoRefillTrigger: '<string>',
phone: '<string>',
address: {
line1: '<string>',
line2: '<string>',
city: '<string>',
state: '<string>',
province: '<string>',
region: '<string>',
postalCode: '<string>',
country: '<string>',
additionalInfo: '<string>'
},
billingName: '<string>',
billingAddress: {
line1: '<string>',
line2: '<string>',
city: '<string>',
state: '<string>',
province: '<string>',
region: '<string>',
postalCode: '<string>',
country: '<string>',
additionalInfo: '<string>'
},
billingTaxId: '<string>',
website: '<string>',
vertical: '<string>',
description: '<string>',
ein: '<string>',
isYoungerThan90: true,
einDocument: {id: '<string>', name: '<string>', value: '<string>'},
phones: [{id: '<string>', name: '<string>', value: '<string>'}],
compliancePolicy: {
enabled: true,
allowedStates: ['<string>'],
allowedProducts: ['<string>'],
requireLeadState: true,
requireAgentLicenseState: true,
requireProduct: true,
requireTrustedFormForAutomations: true,
requireSourceComplianceApproval: true
},
id: '<string>'
})
};
fetch('https://api.leadping.ai/businesses/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/businesses/me"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"secondaryName\": \"<string>\",\n \"enabled\": true,\n \"autoRefillEnabled\": true,\n \"autoRefillAmount\": \"<string>\",\n \"autoRefillTrigger\": \"<string>\",\n \"phone\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingName\": \"<string>\",\n \"billingAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingTaxId\": \"<string>\",\n \"website\": \"<string>\",\n \"vertical\": \"<string>\",\n \"description\": \"<string>\",\n \"ein\": \"<string>\",\n \"isYoungerThan90\": true,\n \"einDocument\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"phones\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"compliancePolicy\": {\n \"enabled\": true,\n \"allowedStates\": [\n \"<string>\"\n ],\n \"allowedProducts\": [\n \"<string>\"\n ],\n \"requireLeadState\": true,\n \"requireAgentLicenseState\": true,\n \"requireProduct\": true,\n \"requireTrustedFormForAutomations\": true,\n \"requireSourceComplianceApproval\": true\n },\n \"id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/businesses/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'secondaryName' => '<string>',
'enabled' => true,
'autoRefillEnabled' => true,
'autoRefillAmount' => '<string>',
'autoRefillTrigger' => '<string>',
'phone' => '<string>',
'address' => [
'line1' => '<string>',
'line2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'province' => '<string>',
'region' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'additionalInfo' => '<string>'
],
'billingName' => '<string>',
'billingAddress' => [
'line1' => '<string>',
'line2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'province' => '<string>',
'region' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'additionalInfo' => '<string>'
],
'billingTaxId' => '<string>',
'website' => '<string>',
'vertical' => '<string>',
'description' => '<string>',
'ein' => '<string>',
'isYoungerThan90' => true,
'einDocument' => [
'id' => '<string>',
'name' => '<string>',
'value' => '<string>'
],
'phones' => [
[
'id' => '<string>',
'name' => '<string>',
'value' => '<string>'
]
],
'compliancePolicy' => [
'enabled' => true,
'allowedStates' => [
'<string>'
],
'allowedProducts' => [
'<string>'
],
'requireLeadState' => true,
'requireAgentLicenseState' => true,
'requireProduct' => true,
'requireTrustedFormForAutomations' => true,
'requireSourceComplianceApproval' => true
],
'id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"secondaryName": "<string>",
"user": {
"id": "<string>",
"name": "<string>"
},
"accountBalance": "<string>",
"billingState": {
"hasStripeCustomer": true,
"hasPaymentMethod": true,
"phoneNumberQuantity": "<string>",
"businessUserQuantity": "<string>",
"businessUserAssignedQuantity": "<string>",
"billingPlanChangeEffectiveAt": "2023-11-07T05:31:56Z",
"planRenewalAt": "2023-11-07T05:31:56Z",
"cancelAt": "2023-11-07T05:31:56Z",
"dunning": {
"stage": "<string>",
"paymentFailedAt": "2023-11-07T05:31:56Z",
"lastFailedInvoiceStatus": "<string>",
"retryAttemptCount": "<string>",
"nextRetryAt": "2023-11-07T05:31:56Z",
"gracePeriodEndsAt": "2023-11-07T05:31:56Z",
"outboundRestrictedAt": "2023-11-07T05:31:56Z",
"outboundSuspendedAt": "2023-11-07T05:31:56Z",
"finalCancellationAt": "2023-11-07T05:31:56Z",
"lastUpdatedAt": "2023-11-07T05:31:56Z"
},
"lastSubscriptionEventAt": "2023-11-07T05:31:56Z",
"lastPaymentMethodEventAt": "2023-11-07T05:31:56Z"
},
"autoRefillEnabled": true,
"autoRefillAmount": "<string>",
"autoRefillTrigger": "<string>",
"enabled": true,
"phone": "<string>",
"website": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingName": "<string>",
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingTaxId": "<string>",
"vertical": "<string>",
"description": "<string>",
"ein": "<string>",
"einDocument": {
"id": "<string>",
"name": "<string>",
"value": "<string>"
},
"domain": "<string>",
"phones": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
],
"site": {
"id": "<string>",
"name": "<string>"
},
"activation": {
"controlledLaunch": true,
"tenDlcApplicationId": "<string>",
"customerFacingStatus": "<string>",
"paymentMethodConfirmedAt": "2023-11-07T05:31:56Z",
"subscriptionPendingAt": "2023-11-07T05:31:56Z",
"subscriptionActiveAt": "2023-11-07T05:31:56Z",
"launchReviewRequestedAt": "2023-11-07T05:31:56Z",
"launchApprovedAt": "2023-11-07T05:31:56Z",
"telephonyProvisioningStartedAt": "2023-11-07T05:31:56Z",
"telephonyPartiallyProvisionedAt": "2023-11-07T05:31:56Z",
"telephonyReadyAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"activatedAt": "2023-11-07T05:31:56Z",
"industry": "<string>",
"businessDescription": "<string>",
"targetAudience": "<string>",
"offer": "<string>",
"websiteNeeds": "<string>",
"serviceArea": "<string>",
"complianceNotes": "<string>",
"domainOptions": [
{
"domainName": "<string>",
"whyItFits": "<string>",
"industryRelevance": "<string>",
"trustConcerns": "<string>",
"estimatedAnnualCost": "<string>",
"availabilityStatus": "<string>",
"recommended": true
}
],
"selectedDomain": "<string>",
"domainApprovedAt": "2023-11-07T05:31:56Z",
"websiteUrl": "<string>",
"tenDlcDraft": {
"companyName": "<string>",
"contactName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"ein": "<string>",
"websiteUrl": "<string>",
"industry": "<string>",
"useCase": "<string>",
"useCaseDescription": "<string>",
"messageExamples": [
"<string>"
],
"optInLanguage": "<string>",
"privacyPolicyUrl": "<string>",
"termsUrl": "<string>",
"expectedMonthlyVolume": "<string>",
"leadSource": "<string>",
"trustedFormRequired": true,
"complianceWarnings": [
"<string>"
],
"missingFields": [
"<string>"
],
"lastSubmittedAt": "2023-11-07T05:31:56Z",
"rejectionReason": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"version": "<string>"
},
"events": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"details": "<string>",
"status": "<string>",
"actor": {
"id": "<string>",
"name": "<string>"
},
"failureReason": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"compliancePolicy": {
"enabled": true,
"allowedStates": [
"<string>"
],
"allowedProducts": [
"<string>"
],
"requireLeadState": true,
"requireAgentLicenseState": true,
"requireProduct": true,
"requireTrustedFormForAutomations": true,
"requireSourceComplianceApproval": true
},
"name": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Create a business account
Creates a business account for the authenticated user, assigns them as its owner, and makes it their active business context.
curl --request POST \
--url https://api.leadping.ai/businesses/me \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"secondaryName": "<string>",
"enabled": true,
"autoRefillEnabled": true,
"autoRefillAmount": "<string>",
"autoRefillTrigger": "<string>",
"phone": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingName": "<string>",
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingTaxId": "<string>",
"website": "<string>",
"vertical": "<string>",
"description": "<string>",
"ein": "<string>",
"isYoungerThan90": true,
"einDocument": {
"id": "<string>",
"name": "<string>",
"value": "<string>"
},
"phones": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
],
"compliancePolicy": {
"enabled": true,
"allowedStates": [
"<string>"
],
"allowedProducts": [
"<string>"
],
"requireLeadState": true,
"requireAgentLicenseState": true,
"requireProduct": true,
"requireTrustedFormForAutomations": true,
"requireSourceComplianceApproval": true
},
"id": "<string>"
}
'import requests
url = "https://api.leadping.ai/businesses/me"
payload = {
"name": "<string>",
"secondaryName": "<string>",
"enabled": True,
"autoRefillEnabled": True,
"autoRefillAmount": "<string>",
"autoRefillTrigger": "<string>",
"phone": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingName": "<string>",
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingTaxId": "<string>",
"website": "<string>",
"vertical": "<string>",
"description": "<string>",
"ein": "<string>",
"isYoungerThan90": True,
"einDocument": {
"id": "<string>",
"name": "<string>",
"value": "<string>"
},
"phones": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
],
"compliancePolicy": {
"enabled": True,
"allowedStates": ["<string>"],
"allowedProducts": ["<string>"],
"requireLeadState": True,
"requireAgentLicenseState": True,
"requireProduct": True,
"requireTrustedFormForAutomations": True,
"requireSourceComplianceApproval": True
},
"id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/businesses/me");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"name\": \"<string>\",\n \"secondaryName\": \"<string>\",\n \"enabled\": true,\n \"autoRefillEnabled\": true,\n \"autoRefillAmount\": \"<string>\",\n \"autoRefillTrigger\": \"<string>\",\n \"phone\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingName\": \"<string>\",\n \"billingAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingTaxId\": \"<string>\",\n \"website\": \"<string>\",\n \"vertical\": \"<string>\",\n \"description\": \"<string>\",\n \"ein\": \"<string>\",\n \"isYoungerThan90\": true,\n \"einDocument\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"phones\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"compliancePolicy\": {\n \"enabled\": true,\n \"allowedStates\": [\n \"<string>\"\n ],\n \"allowedProducts\": [\n \"<string>\"\n ],\n \"requireLeadState\": true,\n \"requireAgentLicenseState\": true,\n \"requireProduct\": true,\n \"requireTrustedFormForAutomations\": true,\n \"requireSourceComplianceApproval\": true\n },\n \"id\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);HttpResponse<String> response = Unirest.post("https://api.leadping.ai/businesses/me")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"secondaryName\": \"<string>\",\n \"enabled\": true,\n \"autoRefillEnabled\": true,\n \"autoRefillAmount\": \"<string>\",\n \"autoRefillTrigger\": \"<string>\",\n \"phone\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingName\": \"<string>\",\n \"billingAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingTaxId\": \"<string>\",\n \"website\": \"<string>\",\n \"vertical\": \"<string>\",\n \"description\": \"<string>\",\n \"ein\": \"<string>\",\n \"isYoungerThan90\": true,\n \"einDocument\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"phones\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"compliancePolicy\": {\n \"enabled\": true,\n \"allowedStates\": [\n \"<string>\"\n ],\n \"allowedProducts\": [\n \"<string>\"\n ],\n \"requireLeadState\": true,\n \"requireAgentLicenseState\": true,\n \"requireProduct\": true,\n \"requireTrustedFormForAutomations\": true,\n \"requireSourceComplianceApproval\": true\n },\n \"id\": \"<string>\"\n}")
.asString();const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
secondaryName: '<string>',
enabled: true,
autoRefillEnabled: true,
autoRefillAmount: '<string>',
autoRefillTrigger: '<string>',
phone: '<string>',
address: {
line1: '<string>',
line2: '<string>',
city: '<string>',
state: '<string>',
province: '<string>',
region: '<string>',
postalCode: '<string>',
country: '<string>',
additionalInfo: '<string>'
},
billingName: '<string>',
billingAddress: {
line1: '<string>',
line2: '<string>',
city: '<string>',
state: '<string>',
province: '<string>',
region: '<string>',
postalCode: '<string>',
country: '<string>',
additionalInfo: '<string>'
},
billingTaxId: '<string>',
website: '<string>',
vertical: '<string>',
description: '<string>',
ein: '<string>',
isYoungerThan90: true,
einDocument: {id: '<string>', name: '<string>', value: '<string>'},
phones: [{id: '<string>', name: '<string>', value: '<string>'}],
compliancePolicy: {
enabled: true,
allowedStates: ['<string>'],
allowedProducts: ['<string>'],
requireLeadState: true,
requireAgentLicenseState: true,
requireProduct: true,
requireTrustedFormForAutomations: true,
requireSourceComplianceApproval: true
},
id: '<string>'
})
};
fetch('https://api.leadping.ai/businesses/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadping.ai/businesses/me"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"secondaryName\": \"<string>\",\n \"enabled\": true,\n \"autoRefillEnabled\": true,\n \"autoRefillAmount\": \"<string>\",\n \"autoRefillTrigger\": \"<string>\",\n \"phone\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingName\": \"<string>\",\n \"billingAddress\": {\n \"line1\": \"<string>\",\n \"line2\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"province\": \"<string>\",\n \"region\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"country\": \"<string>\",\n \"additionalInfo\": \"<string>\"\n },\n \"billingTaxId\": \"<string>\",\n \"website\": \"<string>\",\n \"vertical\": \"<string>\",\n \"description\": \"<string>\",\n \"ein\": \"<string>\",\n \"isYoungerThan90\": true,\n \"einDocument\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n },\n \"phones\": [\n {\n \"id\": \"<string>\",\n \"name\": \"<string>\",\n \"value\": \"<string>\"\n }\n ],\n \"compliancePolicy\": {\n \"enabled\": true,\n \"allowedStates\": [\n \"<string>\"\n ],\n \"allowedProducts\": [\n \"<string>\"\n ],\n \"requireLeadState\": true,\n \"requireAgentLicenseState\": true,\n \"requireProduct\": true,\n \"requireTrustedFormForAutomations\": true,\n \"requireSourceComplianceApproval\": true\n },\n \"id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadping.ai/businesses/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'secondaryName' => '<string>',
'enabled' => true,
'autoRefillEnabled' => true,
'autoRefillAmount' => '<string>',
'autoRefillTrigger' => '<string>',
'phone' => '<string>',
'address' => [
'line1' => '<string>',
'line2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'province' => '<string>',
'region' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'additionalInfo' => '<string>'
],
'billingName' => '<string>',
'billingAddress' => [
'line1' => '<string>',
'line2' => '<string>',
'city' => '<string>',
'state' => '<string>',
'province' => '<string>',
'region' => '<string>',
'postalCode' => '<string>',
'country' => '<string>',
'additionalInfo' => '<string>'
],
'billingTaxId' => '<string>',
'website' => '<string>',
'vertical' => '<string>',
'description' => '<string>',
'ein' => '<string>',
'isYoungerThan90' => true,
'einDocument' => [
'id' => '<string>',
'name' => '<string>',
'value' => '<string>'
],
'phones' => [
[
'id' => '<string>',
'name' => '<string>',
'value' => '<string>'
]
],
'compliancePolicy' => [
'enabled' => true,
'allowedStates' => [
'<string>'
],
'allowedProducts' => [
'<string>'
],
'requireLeadState' => true,
'requireAgentLicenseState' => true,
'requireProduct' => true,
'requireTrustedFormForAutomations' => true,
'requireSourceComplianceApproval' => true
],
'id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"secondaryName": "<string>",
"user": {
"id": "<string>",
"name": "<string>"
},
"accountBalance": "<string>",
"billingState": {
"hasStripeCustomer": true,
"hasPaymentMethod": true,
"phoneNumberQuantity": "<string>",
"businessUserQuantity": "<string>",
"businessUserAssignedQuantity": "<string>",
"billingPlanChangeEffectiveAt": "2023-11-07T05:31:56Z",
"planRenewalAt": "2023-11-07T05:31:56Z",
"cancelAt": "2023-11-07T05:31:56Z",
"dunning": {
"stage": "<string>",
"paymentFailedAt": "2023-11-07T05:31:56Z",
"lastFailedInvoiceStatus": "<string>",
"retryAttemptCount": "<string>",
"nextRetryAt": "2023-11-07T05:31:56Z",
"gracePeriodEndsAt": "2023-11-07T05:31:56Z",
"outboundRestrictedAt": "2023-11-07T05:31:56Z",
"outboundSuspendedAt": "2023-11-07T05:31:56Z",
"finalCancellationAt": "2023-11-07T05:31:56Z",
"lastUpdatedAt": "2023-11-07T05:31:56Z"
},
"lastSubscriptionEventAt": "2023-11-07T05:31:56Z",
"lastPaymentMethodEventAt": "2023-11-07T05:31:56Z"
},
"autoRefillEnabled": true,
"autoRefillAmount": "<string>",
"autoRefillTrigger": "<string>",
"enabled": true,
"phone": "<string>",
"website": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingName": "<string>",
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"province": "<string>",
"region": "<string>",
"postalCode": "<string>",
"country": "<string>",
"additionalInfo": "<string>"
},
"billingTaxId": "<string>",
"vertical": "<string>",
"description": "<string>",
"ein": "<string>",
"einDocument": {
"id": "<string>",
"name": "<string>",
"value": "<string>"
},
"domain": "<string>",
"phones": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>"
}
],
"site": {
"id": "<string>",
"name": "<string>"
},
"activation": {
"controlledLaunch": true,
"tenDlcApplicationId": "<string>",
"customerFacingStatus": "<string>",
"paymentMethodConfirmedAt": "2023-11-07T05:31:56Z",
"subscriptionPendingAt": "2023-11-07T05:31:56Z",
"subscriptionActiveAt": "2023-11-07T05:31:56Z",
"launchReviewRequestedAt": "2023-11-07T05:31:56Z",
"launchApprovedAt": "2023-11-07T05:31:56Z",
"telephonyProvisioningStartedAt": "2023-11-07T05:31:56Z",
"telephonyPartiallyProvisionedAt": "2023-11-07T05:31:56Z",
"telephonyReadyAt": "2023-11-07T05:31:56Z",
"failedAt": "2023-11-07T05:31:56Z",
"activatedAt": "2023-11-07T05:31:56Z",
"industry": "<string>",
"businessDescription": "<string>",
"targetAudience": "<string>",
"offer": "<string>",
"websiteNeeds": "<string>",
"serviceArea": "<string>",
"complianceNotes": "<string>",
"domainOptions": [
{
"domainName": "<string>",
"whyItFits": "<string>",
"industryRelevance": "<string>",
"trustConcerns": "<string>",
"estimatedAnnualCost": "<string>",
"availabilityStatus": "<string>",
"recommended": true
}
],
"selectedDomain": "<string>",
"domainApprovedAt": "2023-11-07T05:31:56Z",
"websiteUrl": "<string>",
"tenDlcDraft": {
"companyName": "<string>",
"contactName": "<string>",
"contactEmail": "<string>",
"contactPhone": "<string>",
"ein": "<string>",
"websiteUrl": "<string>",
"industry": "<string>",
"useCase": "<string>",
"useCaseDescription": "<string>",
"messageExamples": [
"<string>"
],
"optInLanguage": "<string>",
"privacyPolicyUrl": "<string>",
"termsUrl": "<string>",
"expectedMonthlyVolume": "<string>",
"leadSource": "<string>",
"trustedFormRequired": true,
"complianceWarnings": [
"<string>"
],
"missingFields": [
"<string>"
],
"lastSubmittedAt": "2023-11-07T05:31:56Z",
"rejectionReason": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"version": "<string>"
},
"events": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"details": "<string>",
"status": "<string>",
"actor": {
"id": "<string>",
"name": "<string>"
},
"failureReason": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"compliancePolicy": {
"enabled": true,
"allowedStates": [
"<string>"
],
"allowedProducts": [
"<string>"
],
"requireLeadState": true,
"requireAgentLicenseState": true,
"requireProduct": true,
"requireTrustedFormForAutomations": true,
"requireSourceComplianceApproval": true
},
"name": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"modifiedAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": "<string>",
"detail": "<string>",
"instance": "<string>"
}Body
Request schema for the Leadping API business profile request, including the fields clients can send.
The display name for the entity.
255Alternate business name or DBA shown in Leadping.
Defines the supported Business Status values.
SettingUp, SetupCompleted, Active Indicates whether this business profile request is active and available in the Leadping API.
Indicates whether automatic wallet refill is enabled for the business.
Wallet refill amount charged when automatic refill is triggered.
^-?(?:0|[1-9]\d*)(?:\.\d+)?$Wallet balance threshold that triggers automatic refill.
^-?(?:0|[1-9]\d*)(?:\.\d+)?$Phone details for the lead, user, or business represented by this business profile request.
Postal address for the business, lead, or contact represented by this business profile request.
Show child attributes
Show child attributes
Name used for invoices, receipts, and payment processor billing records.
Postal address used for invoices, receipts, and payment processor billing records.
Show child attributes
Show child attributes
Tax identifier printed on billing documents. This may differ from the business verification EIN.
Business website URL used for compliance, brand review, and lead attribution.
Industry vertical used for lead routing, compliance review, and reporting.
Human-readable description that explains this business profile request to API users.
Employer Identification Number used for business and 10DLC verification.
Indicates whether the business serves customers younger than 90, for compliance and underwriting context.
Uploaded EIN document reference used for business verification.
Show child attributes
Show child attributes
Phone numbers assigned to this business.
Show child attributes
Show child attributes
Compliance policy configuration for the business.
Show child attributes
Show child attributes
The unique identifier for the entity, when updating an existing entity.
Response
Created
Response schema for the Leadping API business profile response returned to authenticated clients.
Alternate business name or DBA shown in Leadping.
User summary connected to this business profile response.
Show child attributes
Show child attributes
Current wallet balance available to the business.
^-?(?:0|[1-9]\d*)(?:\.\d+)?$Defines the supported Billing Plan values.
Annual, Monthly Defines the supported Subscription Status values.
Pending, Active, Overdue, Canceled Customer-safe billing state for this business.
Show child attributes
Show child attributes
Indicates whether automatic wallet refill is enabled for the business.
Wallet refill amount charged when automatic refill is triggered.
^-?(?:0|[1-9]\d*)(?:\.\d+)?$Wallet balance threshold that triggers automatic refill.
^-?(?:0|[1-9]\d*)(?:\.\d+)?$Defines the supported Business Status values.
SettingUp, SetupCompleted, Active Defines the supported User Setup Status values.
Personal, Business, Details, Compliance, Phone, Plan, Billing, Review, Complete Indicates whether this business profile response is active and available in the Leadping API.
Phone details for the lead, user, or business represented by this business profile response.
Business website URL used for compliance, brand review, and lead attribution.
Postal address for the business, lead, or contact represented by this business profile response.
Show child attributes
Show child attributes
Name used for invoices, receipts, and payment processor billing records.
Postal address used for invoices, receipts, and payment processor billing records.
Show child attributes
Show child attributes
Tax identifier printed on billing documents. This may differ from the business verification EIN.
Industry vertical used for lead routing, compliance review, and reporting.
Human-readable description that explains this business profile response to API users.
Employer Identification Number used for business and 10DLC verification.
Uploaded EIN document reference used for business verification.
Show child attributes
Show child attributes
Domain name connected to the business website or activation workflow.
Phone numbers assigned to this business.
Show child attributes
Show child attributes
Leadping website record connected to this business.
Show child attributes
Show child attributes
Defines the supported Business Setup Step values.
DomainFinding, DomainOptionsFound, SiteGenerating, SiteGenerated, BrandSubmitted, BrandApproved, CampaignSubmitted, CampaignApproved, CarrierReviewing, TenDlcComplete, Complete Business activation state covering site, billing, compliance, and telephony readiness.
Show child attributes
Show child attributes
Compliance policy configuration for the business.
Show child attributes
Show child attributes
The display name for the entity.
The unique identifier for the entity.
The date and time when the entity was created.
The date and time when the entity was last modified, if applicable.

