curl --request PUT \
--url https://api.leadping.ai/users/me \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"timeZoneId": "<string>",
"currentBusiness": {
"id": "<string>",
"name": "<string>"
},
"compliance": {
"acceptedTerms": true,
"acceptedToSubscription": true,
"acceptedSms": true,
"acceptedBaa": true,
"acceptedEmail": true,
"trustedFormCertificates": [
{
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
},
"notificationPreferences": {
"smsConsentOptedIn": true,
"smsConsentUpdatedAt": "2023-11-07T05:31:56Z",
"smsConsentTrustedFormCertificate": {
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"paymentFailedEnabled": true,
"paymentFailedSmsEnabled": true,
"lowWalletBalanceEnabled": true,
"lowWalletBalanceEmailEnabled": true,
"lowWalletBalanceSmsEnabled": true,
"tenDlcStatusEnabled": true,
"newLeadEnabled": true,
"newLeadEmailEnabled": true,
"newLeadSmsEnabled": true,
"missedCallEnabled": true,
"missedCallEmailEnabled": true,
"missedCallSmsEnabled": true,
"unreadSmsEnabled": true,
"unreadSmsEmailEnabled": true,
"unreadSmsSmsEnabled": true,
"automationFailedEnabled": true,
"automationFailedEmailEnabled": true,
"automationFailedSmsEnabled": true,
"billingEmailEnabled": true,
"billingSmsEnabled": true,
"subscriptionRenewingEnabled": true,
"subscriptionRenewingEmailEnabled": true,
"subscriptionRenewingSmsEnabled": true,
"usageLimitHitEnabled": true
},
"mobileDevicePreferences": [
{
"inboundPhoneCallsEnabled": true,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"id": "<string>"
}
'import requests
url = "https://api.leadping.ai/users/me"
payload = {
"name": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"timeZoneId": "<string>",
"currentBusiness": {
"id": "<string>",
"name": "<string>"
},
"compliance": {
"acceptedTerms": True,
"acceptedToSubscription": True,
"acceptedSms": True,
"acceptedBaa": True,
"acceptedEmail": True,
"trustedFormCertificates": [
{
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
},
"notificationPreferences": {
"smsConsentOptedIn": True,
"smsConsentUpdatedAt": "2023-11-07T05:31:56Z",
"smsConsentTrustedFormCertificate": {
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"paymentFailedEnabled": True,
"paymentFailedSmsEnabled": True,
"lowWalletBalanceEnabled": True,
"lowWalletBalanceEmailEnabled": True,
"lowWalletBalanceSmsEnabled": True,
"tenDlcStatusEnabled": True,
"newLeadEnabled": True,
"newLeadEmailEnabled": True,
"newLeadSmsEnabled": True,
"missedCallEnabled": True,
"missedCallEmailEnabled": True,
"missedCallSmsEnabled": True,
"unreadSmsEnabled": True,
"unreadSmsEmailEnabled": True,
"unreadSmsSmsEnabled": True,
"automationFailedEnabled": True,
"automationFailedEmailEnabled": True,
"automationFailedSmsEnabled": True,
"billingEmailEnabled": True,
"billingSmsEnabled": True,
"subscriptionRenewingEnabled": True,
"subscriptionRenewingEmailEnabled": True,
"subscriptionRenewingSmsEnabled": True,
"usageLimitHitEnabled": True
},
"mobileDevicePreferences": [
{
"inboundPhoneCallsEnabled": True,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"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/users/me");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"timeZoneId\": \"<string>\",\n \"currentBusiness\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"compliance\": {\n \"acceptedTerms\": true,\n \"acceptedToSubscription\": true,\n \"acceptedSms\": true,\n \"acceptedBaa\": true,\n \"acceptedEmail\": true,\n \"trustedFormCertificates\": [\n {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n },\n \"notificationPreferences\": {\n \"smsConsentOptedIn\": true,\n \"smsConsentUpdatedAt\": \"2023-11-07T05:31:56Z\",\n \"smsConsentTrustedFormCertificate\": {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n },\n \"paymentFailedEnabled\": true,\n \"paymentFailedSmsEnabled\": true,\n \"lowWalletBalanceEnabled\": true,\n \"lowWalletBalanceEmailEnabled\": true,\n \"lowWalletBalanceSmsEnabled\": true,\n \"tenDlcStatusEnabled\": true,\n \"newLeadEnabled\": true,\n \"newLeadEmailEnabled\": true,\n \"newLeadSmsEnabled\": true,\n \"missedCallEnabled\": true,\n \"missedCallEmailEnabled\": true,\n \"missedCallSmsEnabled\": true,\n \"unreadSmsEnabled\": true,\n \"unreadSmsEmailEnabled\": true,\n \"unreadSmsSmsEnabled\": true,\n \"automationFailedEnabled\": true,\n \"automationFailedEmailEnabled\": true,\n \"automationFailedSmsEnabled\": true,\n \"billingEmailEnabled\": true,\n \"billingSmsEnabled\": true,\n \"subscriptionRenewingEnabled\": true,\n \"subscriptionRenewingEmailEnabled\": true,\n \"subscriptionRenewingSmsEnabled\": true,\n \"usageLimitHitEnabled\": true\n },\n \"mobileDevicePreferences\": [\n {\n \"inboundPhoneCallsEnabled\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\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/users/me")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"timeZoneId\": \"<string>\",\n \"currentBusiness\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"compliance\": {\n \"acceptedTerms\": true,\n \"acceptedToSubscription\": true,\n \"acceptedSms\": true,\n \"acceptedBaa\": true,\n \"acceptedEmail\": true,\n \"trustedFormCertificates\": [\n {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n },\n \"notificationPreferences\": {\n \"smsConsentOptedIn\": true,\n \"smsConsentUpdatedAt\": \"2023-11-07T05:31:56Z\",\n \"smsConsentTrustedFormCertificate\": {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n },\n \"paymentFailedEnabled\": true,\n \"paymentFailedSmsEnabled\": true,\n \"lowWalletBalanceEnabled\": true,\n \"lowWalletBalanceEmailEnabled\": true,\n \"lowWalletBalanceSmsEnabled\": true,\n \"tenDlcStatusEnabled\": true,\n \"newLeadEnabled\": true,\n \"newLeadEmailEnabled\": true,\n \"newLeadSmsEnabled\": true,\n \"missedCallEnabled\": true,\n \"missedCallEmailEnabled\": true,\n \"missedCallSmsEnabled\": true,\n \"unreadSmsEnabled\": true,\n \"unreadSmsEmailEnabled\": true,\n \"unreadSmsSmsEnabled\": true,\n \"automationFailedEnabled\": true,\n \"automationFailedEmailEnabled\": true,\n \"automationFailedSmsEnabled\": true,\n \"billingEmailEnabled\": true,\n \"billingSmsEnabled\": true,\n \"subscriptionRenewingEnabled\": true,\n \"subscriptionRenewingEmailEnabled\": true,\n \"subscriptionRenewingSmsEnabled\": true,\n \"usageLimitHitEnabled\": true\n },\n \"mobileDevicePreferences\": [\n {\n \"inboundPhoneCallsEnabled\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"id\": \"<string>\"\n}")
.asString();const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
email: '<string>',
firstName: '<string>',
lastName: '<string>',
phone: '<string>',
timeZoneId: '<string>',
currentBusiness: {id: '<string>', name: '<string>'},
compliance: {
acceptedTerms: true,
acceptedToSubscription: true,
acceptedSms: true,
acceptedBaa: true,
acceptedEmail: true,
trustedFormCertificates: [
{
id: '<string>',
url: '<string>',
source: '<string>',
createdAt: '2023-11-07T05:31:56Z'
}
]
},
notificationPreferences: {
smsConsentOptedIn: true,
smsConsentUpdatedAt: '2023-11-07T05:31:56Z',
smsConsentTrustedFormCertificate: {
id: '<string>',
url: '<string>',
source: '<string>',
createdAt: '2023-11-07T05:31:56Z'
},
paymentFailedEnabled: true,
paymentFailedSmsEnabled: true,
lowWalletBalanceEnabled: true,
lowWalletBalanceEmailEnabled: true,
lowWalletBalanceSmsEnabled: true,
tenDlcStatusEnabled: true,
newLeadEnabled: true,
newLeadEmailEnabled: true,
newLeadSmsEnabled: true,
missedCallEnabled: true,
missedCallEmailEnabled: true,
missedCallSmsEnabled: true,
unreadSmsEnabled: true,
unreadSmsEmailEnabled: true,
unreadSmsSmsEnabled: true,
automationFailedEnabled: true,
automationFailedEmailEnabled: true,
automationFailedSmsEnabled: true,
billingEmailEnabled: true,
billingSmsEnabled: true,
subscriptionRenewingEnabled: true,
subscriptionRenewingEmailEnabled: true,
subscriptionRenewingSmsEnabled: true,
usageLimitHitEnabled: true
},
mobileDevicePreferences: [{inboundPhoneCallsEnabled: true, updatedAt: '2023-11-07T05:31:56Z'}],
id: '<string>'
})
};
fetch('https://api.leadping.ai/users/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/users/me"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"timeZoneId\": \"<string>\",\n \"currentBusiness\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"compliance\": {\n \"acceptedTerms\": true,\n \"acceptedToSubscription\": true,\n \"acceptedSms\": true,\n \"acceptedBaa\": true,\n \"acceptedEmail\": true,\n \"trustedFormCertificates\": [\n {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n },\n \"notificationPreferences\": {\n \"smsConsentOptedIn\": true,\n \"smsConsentUpdatedAt\": \"2023-11-07T05:31:56Z\",\n \"smsConsentTrustedFormCertificate\": {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n },\n \"paymentFailedEnabled\": true,\n \"paymentFailedSmsEnabled\": true,\n \"lowWalletBalanceEnabled\": true,\n \"lowWalletBalanceEmailEnabled\": true,\n \"lowWalletBalanceSmsEnabled\": true,\n \"tenDlcStatusEnabled\": true,\n \"newLeadEnabled\": true,\n \"newLeadEmailEnabled\": true,\n \"newLeadSmsEnabled\": true,\n \"missedCallEnabled\": true,\n \"missedCallEmailEnabled\": true,\n \"missedCallSmsEnabled\": true,\n \"unreadSmsEnabled\": true,\n \"unreadSmsEmailEnabled\": true,\n \"unreadSmsSmsEnabled\": true,\n \"automationFailedEnabled\": true,\n \"automationFailedEmailEnabled\": true,\n \"automationFailedSmsEnabled\": true,\n \"billingEmailEnabled\": true,\n \"billingSmsEnabled\": true,\n \"subscriptionRenewingEnabled\": true,\n \"subscriptionRenewingEmailEnabled\": true,\n \"subscriptionRenewingSmsEnabled\": true,\n \"usageLimitHitEnabled\": true\n },\n \"mobileDevicePreferences\": [\n {\n \"inboundPhoneCallsEnabled\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\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/users/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>',
'email' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'phone' => '<string>',
'timeZoneId' => '<string>',
'currentBusiness' => [
'id' => '<string>',
'name' => '<string>'
],
'compliance' => [
'acceptedTerms' => true,
'acceptedToSubscription' => true,
'acceptedSms' => true,
'acceptedBaa' => true,
'acceptedEmail' => true,
'trustedFormCertificates' => [
[
'id' => '<string>',
'url' => '<string>',
'source' => '<string>',
'createdAt' => '2023-11-07T05:31:56Z'
]
]
],
'notificationPreferences' => [
'smsConsentOptedIn' => true,
'smsConsentUpdatedAt' => '2023-11-07T05:31:56Z',
'smsConsentTrustedFormCertificate' => [
'id' => '<string>',
'url' => '<string>',
'source' => '<string>',
'createdAt' => '2023-11-07T05:31:56Z'
],
'paymentFailedEnabled' => true,
'paymentFailedSmsEnabled' => true,
'lowWalletBalanceEnabled' => true,
'lowWalletBalanceEmailEnabled' => true,
'lowWalletBalanceSmsEnabled' => true,
'tenDlcStatusEnabled' => true,
'newLeadEnabled' => true,
'newLeadEmailEnabled' => true,
'newLeadSmsEnabled' => true,
'missedCallEnabled' => true,
'missedCallEmailEnabled' => true,
'missedCallSmsEnabled' => true,
'unreadSmsEnabled' => true,
'unreadSmsEmailEnabled' => true,
'unreadSmsSmsEnabled' => true,
'automationFailedEnabled' => true,
'automationFailedEmailEnabled' => true,
'automationFailedSmsEnabled' => true,
'billingEmailEnabled' => true,
'billingSmsEnabled' => true,
'subscriptionRenewingEnabled' => true,
'subscriptionRenewingEmailEnabled' => true,
'subscriptionRenewingSmsEnabled' => true,
'usageLimitHitEnabled' => true
],
'mobileDevicePreferences' => [
[
'inboundPhoneCallsEnabled' => true,
'updatedAt' => '2023-11-07T05:31:56Z'
]
],
'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;
}{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"timeZoneId": "<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"
},
"roles": "<array>",
"identities": [
{
"issuer": "<string>",
"issuerAssignedId": "<string>",
"signInType": "<string>"
}
],
"currentBusiness": {
"id": "<string>",
"name": "<string>"
},
"compliance": {
"acceptedTerms": true,
"acceptedToSubscription": true,
"acceptedSms": true,
"acceptedBaa": true,
"acceptedEmail": true,
"trustedFormCertificates": [
{
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
},
"notificationPreferences": {
"smsConsentOptedIn": true,
"smsConsentUpdatedAt": "2023-11-07T05:31:56Z",
"smsConsentTrustedFormCertificate": {
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"paymentFailedEnabled": true,
"paymentFailedSmsEnabled": true,
"lowWalletBalanceEnabled": true,
"lowWalletBalanceEmailEnabled": true,
"lowWalletBalanceSmsEnabled": true,
"tenDlcStatusEnabled": true,
"newLeadEnabled": true,
"newLeadEmailEnabled": true,
"newLeadSmsEnabled": true,
"missedCallEnabled": true,
"missedCallEmailEnabled": true,
"missedCallSmsEnabled": true,
"unreadSmsEnabled": true,
"unreadSmsEmailEnabled": true,
"unreadSmsSmsEnabled": true,
"automationFailedEnabled": true,
"automationFailedEmailEnabled": true,
"automationFailedSmsEnabled": true,
"billingEmailEnabled": true,
"billingSmsEnabled": true,
"subscriptionRenewingEnabled": true,
"subscriptionRenewingEmailEnabled": true,
"subscriptionRenewingSmsEnabled": true,
"usageLimitHitEnabled": true
},
"mobileDevicePreferences": [
{
"device": {
"id": "<string>",
"name": "<string>"
},
"inboundPhoneCallsEnabled": true,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"lastLoggedInAt": "2023-11-07T05:31:56Z",
"personalDataDeletionRequestedAt": "2023-11-07T05:31:56Z",
"personalDataDeletedAt": "2023-11-07T05:31:56Z",
"personalDataDeletionStatus": "<string>",
"personalDataDeletionReason": "<string>",
"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 user account profile
Updates the current user’s profile fields, contact details, preferences, or business context used across Leadping.
curl --request PUT \
--url https://api.leadping.ai/users/me \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"timeZoneId": "<string>",
"currentBusiness": {
"id": "<string>",
"name": "<string>"
},
"compliance": {
"acceptedTerms": true,
"acceptedToSubscription": true,
"acceptedSms": true,
"acceptedBaa": true,
"acceptedEmail": true,
"trustedFormCertificates": [
{
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
},
"notificationPreferences": {
"smsConsentOptedIn": true,
"smsConsentUpdatedAt": "2023-11-07T05:31:56Z",
"smsConsentTrustedFormCertificate": {
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"paymentFailedEnabled": true,
"paymentFailedSmsEnabled": true,
"lowWalletBalanceEnabled": true,
"lowWalletBalanceEmailEnabled": true,
"lowWalletBalanceSmsEnabled": true,
"tenDlcStatusEnabled": true,
"newLeadEnabled": true,
"newLeadEmailEnabled": true,
"newLeadSmsEnabled": true,
"missedCallEnabled": true,
"missedCallEmailEnabled": true,
"missedCallSmsEnabled": true,
"unreadSmsEnabled": true,
"unreadSmsEmailEnabled": true,
"unreadSmsSmsEnabled": true,
"automationFailedEnabled": true,
"automationFailedEmailEnabled": true,
"automationFailedSmsEnabled": true,
"billingEmailEnabled": true,
"billingSmsEnabled": true,
"subscriptionRenewingEnabled": true,
"subscriptionRenewingEmailEnabled": true,
"subscriptionRenewingSmsEnabled": true,
"usageLimitHitEnabled": true
},
"mobileDevicePreferences": [
{
"inboundPhoneCallsEnabled": true,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"id": "<string>"
}
'import requests
url = "https://api.leadping.ai/users/me"
payload = {
"name": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"timeZoneId": "<string>",
"currentBusiness": {
"id": "<string>",
"name": "<string>"
},
"compliance": {
"acceptedTerms": True,
"acceptedToSubscription": True,
"acceptedSms": True,
"acceptedBaa": True,
"acceptedEmail": True,
"trustedFormCertificates": [
{
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
},
"notificationPreferences": {
"smsConsentOptedIn": True,
"smsConsentUpdatedAt": "2023-11-07T05:31:56Z",
"smsConsentTrustedFormCertificate": {
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"paymentFailedEnabled": True,
"paymentFailedSmsEnabled": True,
"lowWalletBalanceEnabled": True,
"lowWalletBalanceEmailEnabled": True,
"lowWalletBalanceSmsEnabled": True,
"tenDlcStatusEnabled": True,
"newLeadEnabled": True,
"newLeadEmailEnabled": True,
"newLeadSmsEnabled": True,
"missedCallEnabled": True,
"missedCallEmailEnabled": True,
"missedCallSmsEnabled": True,
"unreadSmsEnabled": True,
"unreadSmsEmailEnabled": True,
"unreadSmsSmsEnabled": True,
"automationFailedEnabled": True,
"automationFailedEmailEnabled": True,
"automationFailedSmsEnabled": True,
"billingEmailEnabled": True,
"billingSmsEnabled": True,
"subscriptionRenewingEnabled": True,
"subscriptionRenewingEmailEnabled": True,
"subscriptionRenewingSmsEnabled": True,
"usageLimitHitEnabled": True
},
"mobileDevicePreferences": [
{
"inboundPhoneCallsEnabled": True,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"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/users/me");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"timeZoneId\": \"<string>\",\n \"currentBusiness\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"compliance\": {\n \"acceptedTerms\": true,\n \"acceptedToSubscription\": true,\n \"acceptedSms\": true,\n \"acceptedBaa\": true,\n \"acceptedEmail\": true,\n \"trustedFormCertificates\": [\n {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n },\n \"notificationPreferences\": {\n \"smsConsentOptedIn\": true,\n \"smsConsentUpdatedAt\": \"2023-11-07T05:31:56Z\",\n \"smsConsentTrustedFormCertificate\": {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n },\n \"paymentFailedEnabled\": true,\n \"paymentFailedSmsEnabled\": true,\n \"lowWalletBalanceEnabled\": true,\n \"lowWalletBalanceEmailEnabled\": true,\n \"lowWalletBalanceSmsEnabled\": true,\n \"tenDlcStatusEnabled\": true,\n \"newLeadEnabled\": true,\n \"newLeadEmailEnabled\": true,\n \"newLeadSmsEnabled\": true,\n \"missedCallEnabled\": true,\n \"missedCallEmailEnabled\": true,\n \"missedCallSmsEnabled\": true,\n \"unreadSmsEnabled\": true,\n \"unreadSmsEmailEnabled\": true,\n \"unreadSmsSmsEnabled\": true,\n \"automationFailedEnabled\": true,\n \"automationFailedEmailEnabled\": true,\n \"automationFailedSmsEnabled\": true,\n \"billingEmailEnabled\": true,\n \"billingSmsEnabled\": true,\n \"subscriptionRenewingEnabled\": true,\n \"subscriptionRenewingEmailEnabled\": true,\n \"subscriptionRenewingSmsEnabled\": true,\n \"usageLimitHitEnabled\": true\n },\n \"mobileDevicePreferences\": [\n {\n \"inboundPhoneCallsEnabled\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\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/users/me")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"timeZoneId\": \"<string>\",\n \"currentBusiness\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"compliance\": {\n \"acceptedTerms\": true,\n \"acceptedToSubscription\": true,\n \"acceptedSms\": true,\n \"acceptedBaa\": true,\n \"acceptedEmail\": true,\n \"trustedFormCertificates\": [\n {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n },\n \"notificationPreferences\": {\n \"smsConsentOptedIn\": true,\n \"smsConsentUpdatedAt\": \"2023-11-07T05:31:56Z\",\n \"smsConsentTrustedFormCertificate\": {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n },\n \"paymentFailedEnabled\": true,\n \"paymentFailedSmsEnabled\": true,\n \"lowWalletBalanceEnabled\": true,\n \"lowWalletBalanceEmailEnabled\": true,\n \"lowWalletBalanceSmsEnabled\": true,\n \"tenDlcStatusEnabled\": true,\n \"newLeadEnabled\": true,\n \"newLeadEmailEnabled\": true,\n \"newLeadSmsEnabled\": true,\n \"missedCallEnabled\": true,\n \"missedCallEmailEnabled\": true,\n \"missedCallSmsEnabled\": true,\n \"unreadSmsEnabled\": true,\n \"unreadSmsEmailEnabled\": true,\n \"unreadSmsSmsEnabled\": true,\n \"automationFailedEnabled\": true,\n \"automationFailedEmailEnabled\": true,\n \"automationFailedSmsEnabled\": true,\n \"billingEmailEnabled\": true,\n \"billingSmsEnabled\": true,\n \"subscriptionRenewingEnabled\": true,\n \"subscriptionRenewingEmailEnabled\": true,\n \"subscriptionRenewingSmsEnabled\": true,\n \"usageLimitHitEnabled\": true\n },\n \"mobileDevicePreferences\": [\n {\n \"inboundPhoneCallsEnabled\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\n ],\n \"id\": \"<string>\"\n}")
.asString();const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
email: '<string>',
firstName: '<string>',
lastName: '<string>',
phone: '<string>',
timeZoneId: '<string>',
currentBusiness: {id: '<string>', name: '<string>'},
compliance: {
acceptedTerms: true,
acceptedToSubscription: true,
acceptedSms: true,
acceptedBaa: true,
acceptedEmail: true,
trustedFormCertificates: [
{
id: '<string>',
url: '<string>',
source: '<string>',
createdAt: '2023-11-07T05:31:56Z'
}
]
},
notificationPreferences: {
smsConsentOptedIn: true,
smsConsentUpdatedAt: '2023-11-07T05:31:56Z',
smsConsentTrustedFormCertificate: {
id: '<string>',
url: '<string>',
source: '<string>',
createdAt: '2023-11-07T05:31:56Z'
},
paymentFailedEnabled: true,
paymentFailedSmsEnabled: true,
lowWalletBalanceEnabled: true,
lowWalletBalanceEmailEnabled: true,
lowWalletBalanceSmsEnabled: true,
tenDlcStatusEnabled: true,
newLeadEnabled: true,
newLeadEmailEnabled: true,
newLeadSmsEnabled: true,
missedCallEnabled: true,
missedCallEmailEnabled: true,
missedCallSmsEnabled: true,
unreadSmsEnabled: true,
unreadSmsEmailEnabled: true,
unreadSmsSmsEnabled: true,
automationFailedEnabled: true,
automationFailedEmailEnabled: true,
automationFailedSmsEnabled: true,
billingEmailEnabled: true,
billingSmsEnabled: true,
subscriptionRenewingEnabled: true,
subscriptionRenewingEmailEnabled: true,
subscriptionRenewingSmsEnabled: true,
usageLimitHitEnabled: true
},
mobileDevicePreferences: [{inboundPhoneCallsEnabled: true, updatedAt: '2023-11-07T05:31:56Z'}],
id: '<string>'
})
};
fetch('https://api.leadping.ai/users/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/users/me"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"email\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"timeZoneId\": \"<string>\",\n \"currentBusiness\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"compliance\": {\n \"acceptedTerms\": true,\n \"acceptedToSubscription\": true,\n \"acceptedSms\": true,\n \"acceptedBaa\": true,\n \"acceptedEmail\": true,\n \"trustedFormCertificates\": [\n {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n }\n ]\n },\n \"notificationPreferences\": {\n \"smsConsentOptedIn\": true,\n \"smsConsentUpdatedAt\": \"2023-11-07T05:31:56Z\",\n \"smsConsentTrustedFormCertificate\": {\n \"id\": \"<string>\",\n \"url\": \"<string>\",\n \"source\": \"<string>\",\n \"createdAt\": \"2023-11-07T05:31:56Z\"\n },\n \"paymentFailedEnabled\": true,\n \"paymentFailedSmsEnabled\": true,\n \"lowWalletBalanceEnabled\": true,\n \"lowWalletBalanceEmailEnabled\": true,\n \"lowWalletBalanceSmsEnabled\": true,\n \"tenDlcStatusEnabled\": true,\n \"newLeadEnabled\": true,\n \"newLeadEmailEnabled\": true,\n \"newLeadSmsEnabled\": true,\n \"missedCallEnabled\": true,\n \"missedCallEmailEnabled\": true,\n \"missedCallSmsEnabled\": true,\n \"unreadSmsEnabled\": true,\n \"unreadSmsEmailEnabled\": true,\n \"unreadSmsSmsEnabled\": true,\n \"automationFailedEnabled\": true,\n \"automationFailedEmailEnabled\": true,\n \"automationFailedSmsEnabled\": true,\n \"billingEmailEnabled\": true,\n \"billingSmsEnabled\": true,\n \"subscriptionRenewingEnabled\": true,\n \"subscriptionRenewingEmailEnabled\": true,\n \"subscriptionRenewingSmsEnabled\": true,\n \"usageLimitHitEnabled\": true\n },\n \"mobileDevicePreferences\": [\n {\n \"inboundPhoneCallsEnabled\": true,\n \"updatedAt\": \"2023-11-07T05:31:56Z\"\n }\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/users/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>',
'email' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'phone' => '<string>',
'timeZoneId' => '<string>',
'currentBusiness' => [
'id' => '<string>',
'name' => '<string>'
],
'compliance' => [
'acceptedTerms' => true,
'acceptedToSubscription' => true,
'acceptedSms' => true,
'acceptedBaa' => true,
'acceptedEmail' => true,
'trustedFormCertificates' => [
[
'id' => '<string>',
'url' => '<string>',
'source' => '<string>',
'createdAt' => '2023-11-07T05:31:56Z'
]
]
],
'notificationPreferences' => [
'smsConsentOptedIn' => true,
'smsConsentUpdatedAt' => '2023-11-07T05:31:56Z',
'smsConsentTrustedFormCertificate' => [
'id' => '<string>',
'url' => '<string>',
'source' => '<string>',
'createdAt' => '2023-11-07T05:31:56Z'
],
'paymentFailedEnabled' => true,
'paymentFailedSmsEnabled' => true,
'lowWalletBalanceEnabled' => true,
'lowWalletBalanceEmailEnabled' => true,
'lowWalletBalanceSmsEnabled' => true,
'tenDlcStatusEnabled' => true,
'newLeadEnabled' => true,
'newLeadEmailEnabled' => true,
'newLeadSmsEnabled' => true,
'missedCallEnabled' => true,
'missedCallEmailEnabled' => true,
'missedCallSmsEnabled' => true,
'unreadSmsEnabled' => true,
'unreadSmsEmailEnabled' => true,
'unreadSmsSmsEnabled' => true,
'automationFailedEnabled' => true,
'automationFailedEmailEnabled' => true,
'automationFailedSmsEnabled' => true,
'billingEmailEnabled' => true,
'billingSmsEnabled' => true,
'subscriptionRenewingEnabled' => true,
'subscriptionRenewingEmailEnabled' => true,
'subscriptionRenewingSmsEnabled' => true,
'usageLimitHitEnabled' => true
],
'mobileDevicePreferences' => [
[
'inboundPhoneCallsEnabled' => true,
'updatedAt' => '2023-11-07T05:31:56Z'
]
],
'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;
}{
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"timeZoneId": "<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"
},
"roles": "<array>",
"identities": [
{
"issuer": "<string>",
"issuerAssignedId": "<string>",
"signInType": "<string>"
}
],
"currentBusiness": {
"id": "<string>",
"name": "<string>"
},
"compliance": {
"acceptedTerms": true,
"acceptedToSubscription": true,
"acceptedSms": true,
"acceptedBaa": true,
"acceptedEmail": true,
"trustedFormCertificates": [
{
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
]
},
"notificationPreferences": {
"smsConsentOptedIn": true,
"smsConsentUpdatedAt": "2023-11-07T05:31:56Z",
"smsConsentTrustedFormCertificate": {
"id": "<string>",
"url": "<string>",
"source": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
},
"paymentFailedEnabled": true,
"paymentFailedSmsEnabled": true,
"lowWalletBalanceEnabled": true,
"lowWalletBalanceEmailEnabled": true,
"lowWalletBalanceSmsEnabled": true,
"tenDlcStatusEnabled": true,
"newLeadEnabled": true,
"newLeadEmailEnabled": true,
"newLeadSmsEnabled": true,
"missedCallEnabled": true,
"missedCallEmailEnabled": true,
"missedCallSmsEnabled": true,
"unreadSmsEnabled": true,
"unreadSmsEmailEnabled": true,
"unreadSmsSmsEnabled": true,
"automationFailedEnabled": true,
"automationFailedEmailEnabled": true,
"automationFailedSmsEnabled": true,
"billingEmailEnabled": true,
"billingSmsEnabled": true,
"subscriptionRenewingEnabled": true,
"subscriptionRenewingEmailEnabled": true,
"subscriptionRenewingSmsEnabled": true,
"usageLimitHitEnabled": true
},
"mobileDevicePreferences": [
{
"device": {
"id": "<string>",
"name": "<string>"
},
"inboundPhoneCallsEnabled": true,
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"lastLoggedInAt": "2023-11-07T05:31:56Z",
"personalDataDeletionRequestedAt": "2023-11-07T05:31:56Z",
"personalDataDeletedAt": "2023-11-07T05:31:56Z",
"personalDataDeletionStatus": "<string>",
"personalDataDeletionReason": "<string>",
"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 user request payload for the operation.
Request schema for the Leadping API user profile request, including the fields clients can send.
The display name for the entity.
255Email address for the person represented by this user profile request.
First name of the lead, user, or contact represented by this user profile request.
Last name of the lead, user, or contact represented by this user profile request.
Phone details for the lead, user, or business represented by this user profile request.
IANA time zone identifier used when displaying dates and times for this user.
Defines the supported Billing Plan values.
Annual, Monthly Business currently selected for the user session or profile.
Show child attributes
Show child attributes
User compliance settings and attestations captured for Leadping account review.
Show child attributes
Show child attributes
Notification preferences configured for the user.
Show child attributes
Show child attributes
Mobile notification preferences configured for the user.
Show child attributes
Show child attributes
The unique identifier for the entity, when updating an existing entity.
Response
Returns the user response.
API response containing user data returned to callers.
The email address associated with this user.
The first name value for this user.
The date and time for the last name value on this user.
The phone number associated with this user.
IANA time zone identifier used when displaying dates and times for this user.
Defines the supported Billing Plan values.
Annual, Monthly Defines the supported Subscription Status values.
Pending, Active, Overdue, Canceled Customer-safe billing state for the user's currently selected business.
Show child attributes
Show child attributes
The roles included with this user.
The identities included with this user.
Show child attributes
Show child attributes
The current business value for this user.
Show child attributes
Show child attributes
The compliance value for this user.
Show child attributes
Show child attributes
The notification preferences value for this user.
Show child attributes
Show child attributes
The Leadping mobile device preferences for this user.
Show child attributes
Show child attributes
The date and time when this user last completed the Leadping sign-in flow.
The date and time for the personal data deletion requested at value on this user.
The date and time for the personal data deleted at value on this user.
The current personal data deletion status for this user.
The human-readable personal data deletion reason explaining this user.
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.

