curl --request PUT \
--url https://api.leadping.ai/organizations/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/organizations/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.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/organizations/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.PutAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.put("https://api.leadping.ai/organizations/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: 'PUT',
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/organizations/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/organizations/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("PUT", 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/organizations/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
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>",
"organizationMemberQuantity": "<string>",
"organizationMemberAssignedQuantity": "<string>",
"billingPlanChangeEffectiveAt": "2023-11-07T05:31:56Z",
"planRenewalAt": "2023-11-07T05:31:56Z",
"planPeriodStartAt": "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>",
"organizationDescription": "<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
}
],
"domainSearchId": "<string>",
"domainSearchAttempt": "<string>",
"availableDomainCount": "<string>",
"domainSearchUpdatedAt": "2023-11-07T05:31:56Z",
"selectedDomain": "<string>",
"domainApprovedAt": "2023-11-07T05:31:56Z",
"domainPurchasedAt": "2023-11-07T05:31:56Z",
"websiteGenerationResult": "<string>",
"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>"
}Update current organization account profile
Updates the authenticated user’s current organization profile, including contact, settings, and communication configuration.
curl --request PUT \
--url https://api.leadping.ai/organizations/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/organizations/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.put(url, json=payload, headers=headers)
print(response.text)using RestSharp;
var options = new RestClientOptions("https://api.leadping.ai/organizations/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.PutAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.put("https://api.leadping.ai/organizations/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: 'PUT',
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/organizations/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/organizations/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("PUT", 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/organizations/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
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>",
"organizationMemberQuantity": "<string>",
"organizationMemberAssignedQuantity": "<string>",
"billingPlanChangeEffectiveAt": "2023-11-07T05:31:56Z",
"planRenewalAt": "2023-11-07T05:31:56Z",
"planPeriodStartAt": "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>",
"organizationDescription": "<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
}
],
"domainSearchId": "<string>",
"domainSearchAttempt": "<string>",
"availableDomainCount": "<string>",
"domainSearchUpdatedAt": "2023-11-07T05:31:56Z",
"selectedDomain": "<string>",
"domainApprovedAt": "2023-11-07T05:31:56Z",
"domainPurchasedAt": "2023-11-07T05:31:56Z",
"websiteGenerationResult": "<string>",
"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
The updated organization profile data.
Request schema for the Leadping API organization profile request, including the fields clients can send.
The display name for the entity.
255Alternate organization name or DBA shown in Leadping.
Defines the supported Organization Status values.
SettingUp, SetupCompleted, Active Indicates whether this organization profile request is active and available in the Leadping API.
Indicates whether automatic wallet refill is enabled for the organization.
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 organization represented by this organization profile request.
Postal address for the organization, lead, or contact represented by this organization 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 organization verification EIN.
Organization 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 organization profile request to API users.
Employer Identification Number used for organization and 10DLC verification.
Indicates whether the organization serves customers younger than 90, for compliance and underwriting context.
Uploaded EIN document reference used for organization verification.
Show child attributes
Show child attributes
Phone numbers assigned to this organization.
Show child attributes
Show child attributes
Compliance policy configuration for the organization.
Show child attributes
Show child attributes
The unique identifier for the entity, when updating an existing entity.
Response
Returns the organization response.
Response schema for the Leadping API organization profile response returned to authenticated clients.
Alternate organization name or DBA shown in Leadping.
User summary connected to this organization profile response.
Show child attributes
Show child attributes
Current wallet balance available to the organization.
^-?(?: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 organization.
Show child attributes
Show child attributes
Indicates whether automatic wallet refill is enabled for the organization.
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 Organization Status values.
SettingUp, SetupCompleted, Active Defines the supported User Setup Status values.
Personal, Organization, Details, Compliance, Phone, Plan, Billing, Review, Complete Indicates whether this organization profile response is active and available in the Leadping API.
Phone details for the lead, user, or organization represented by this organization profile response.
Organization website URL used for compliance, brand review, and lead attribution.
Postal address for the organization, lead, or contact represented by this organization 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 organization verification EIN.
Industry vertical used for lead routing, compliance review, and reporting.
Human-readable description that explains this organization profile response to API users.
Employer Identification Number used for organization and 10DLC verification.
Uploaded EIN document reference used for organization verification.
Show child attributes
Show child attributes
Domain name connected to the organization website or activation workflow.
Phone numbers assigned to this organization.
Show child attributes
Show child attributes
Leadping website record connected to this organization.
Show child attributes
Show child attributes
Defines the supported Organization Setup Step values.
DomainFinding, DomainOptionsFound, SiteGenerating, SiteGenerated, BrandSubmitted, BrandApproved, CampaignSubmitted, CampaignApproved, CarrierReviewing, TenDlcComplete, Complete Organization activation state covering site, billing, compliance, and telephony readiness.
Show child attributes
Show child attributes
Compliance policy configuration for the organization.
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.

