Send It By Text API Reference
One base URL, one authentication header, 119 documented operations. Everything your account can do in Send It By Text, your code can do here: send and receive texts, manage clients and users, book appointments, collect eSignatures, and more.
Base URLhttps://useclientconnect.com/api/clientconnect_v2.aspx
MethodAll calls are HTTP POST
Bodyapplication/x-www-form-urlencoded (multipart form data for file operations)
Authapikey header on every request
OperationThe request parameter in the body selects the operation, e.g. request=sendclienttext
ResponsesJSON
Three operations use their own URLs:
sendclientmms posts to
/api/mms_v2.ashx,
signrequest posts to
/api/signrequest_v2.ashx, and
sendgroupmsg posts to
/api/sendgroupmsg.ashx. Every other call goes to the base URL above.
Authentication
Every request must include your API key in the apikey request header. Authorized administrators can find the key in Send It By Text under Admin Menu → Company Settings . Keys are scoped to your company.
Header Copy
apikey: YOUR_API_KEY
Keep your key on the server. The API key carries admin-level access to your company's data. Put it in the header, never in a query string. Never embed it in a mobile app, browser JavaScript, logs, support tickets, or a public repository. Make API calls from your backend only, and rotate the key from Company Settings if you believe it has been exposed. All examples in these docs use the placeholder YOUR_API_KEY.
Making requests
Send parameters as a form encoded POST body. The request parameter names the operation, and the remaining parameters are listed per operation below. Dates use mm/dd/yyyy and, where a time is expected, mm/dd/yyyy hh:mm:ss.
Phone number rule. Normalize every phone number to 10 digits with no country code. Strip
+1, spaces, parentheses, hyphens, and dots before sending. The exception is
getsigninglink , which expects the country code included.
File operations (MMS , document upload , signature requests , group messages with attachments ) accept a file POSTed as multipart form data, or Base64 encoded content in a rawdata parameter with a filename. When you use browser FormData, do not set the Content-Type header yourself; the browser adds the multipart boundary for you.
Identifier guide
Send It By Text has several numeric IDs that look interchangeable but are not. Getting these wrong is the single most common integration bug, so read this once before writing any code.
Field Meaning Where to use it
IDInternal record ID returned by searchclient This is what most parameters named cid want
cidParameter name for the internal record ID SMS, notes, documents, groups, client details
UniqueClientIDVisible Contact ID shown in the app Display, file naming, and endpoints that explicitly ask for contactid (such as getcustomfieldsdata )
ClientIDSeparate custom/visible client ID Reference and display only, unless an endpoint says otherwise
useridThe user performing the action SMS sender, notes author, task assignment, group sends
groupidNumeric group ID Group membership and group messaging. Always the number, never the group name
Rule of thumb: search with searchclient , use the returned ID as cid for almost everything, and reach for UniqueClientID only when an endpoint explicitly asks for contactid.
searchclient response (sanitized) Copy
[
{
"ID": 1234567,
"UniqueClientID": 9876543,
"ClientID": "ABC-10001",
"FirstName": "Jane",
"LastName": "Smith",
"MobileTel": "8135551212",
"EmailAddress": "jane@example.com"
}
]
Responses & errors
All operations return JSON. Create operations such as addclient and adduser return a message string plus a UniqueId you should store and use in later calls.
Do not trust HTTP 200. Some failures return HTTP 200 with an error message in the body. Always parse the response and inspect message, success, and Error fields before treating a call as successful.
Error responses you will see in practice:
Common error shapes Copy
{ "message": "No client found according to given criteria." }
{ "message": "Null request." }
{ "success": false, "Error": "No Record Found." }
{ "message": "Please provide client groups." }
{ "message": "IP rate limit exceeded." }
A defensive check that catches the common failure strings:
JavaScript Copy
function assertSendItByTextSuccess(result) {
const text = JSON.stringify(result);
if (/rate limit exceeded|invalid request|null request|error occurred|no record found/i.test(text)) {
throw new Error(text);
}
return result;
}
We are expanding these docs with full response schemas per operation. If you need a response shape that is not documented yet, make the call against test data and inspect the JSON, or ask us .
Rate limits
The API enforces the following limits. When you hit one, the response body contains a throttle message such as { "message": "API key rate limit exceeded." }.
Limit Threshold Behavior
Per IP 500 requests per 60 seconds Throttle message, cooldown
Per API key 300 requests per 60 seconds Throttle message, cooldown
Burst detection 200 requests per 10 seconds per key Treated as a throttle
Cooldown 5 minutes Back off fully before retrying
Repeated violations 3 within 1 hour May lead to a key block
Practical guidance: pace batch jobs, avoid uncontrolled parallel fanout, and use exponential backoff with jitter. When you see a throttle message, stop immediately and wait out the cooldown; retry storms are what get keys blocked. Log the request type, HTTP status, and response body so support can help you quickly.
Quick start: find a contact
Grab your API key from Company Settings, replace the placeholder, and run:
cURL Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=searchclient" \
--data-urlencode "search=Jane Smith"
That's the whole pattern. Every operation works the same way: POST to the base URL, pass your key in the header, pick the operation with request, and read the JSON that comes back. From the response, use ID as your cid in follow-up calls like sendclienttext .
Messaging (SMS & MMS)
Send and retrieve text messages, MMS, scheduled texts, and group messages.
Get recent SMS list
POST request=getrecentsmslist
Returns the list of new (recent) SMS messages for a user.
Parameters
requestString
required Set to getrecentsmslist
useridInteger
required User ID
showmytextInteger
required 0 = all conversations, 1 = my conversations
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getrecentsmslist" \
--data-urlencode "userid=101" \
--data-urlencode "showmytext=1"
My conversations
POST request=myconversations
Returns the list of conversations belonging to the requesting user.
Parameters
requestString
required Set to myconversations
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=myconversations" \
--data-urlencode "userid=101"
All conversations
POST request=allconversations
Returns the list of all conversations across the company.
Parameters
requestString
required Set to allconversations
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=allconversations" \
--data-urlencode "userid=101"
Get client texts
POST request=getclienttexts
Returns the text messages for a specific client.
Parameters
requestString
required Set to getclienttexts
cidInteger
required ID of the client whose texts are required
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getclienttexts" \
--data-urlencode "cid=123456" \
--data-urlencode "userid=101"
Get client text history
POST request=getclienttexthistory
Returns the full text message history for a specific client.
Parameters
requestString
required Set to getclienttexthistory
cidInteger
required ID of the client whose text history is required
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getclienttexthistory" \
--data-urlencode "cid=123456" \
--data-urlencode "userid=101"
Send client text
POST request=sendclienttext
Sends a text message to an existing client.
Parameters
requestString
required Set to sendclienttext
cidInteger
required ID of the client the text is sent to
fromInteger
required From mobile number (without country code)
toInteger
required To mobile number (without country code)
textString
required Message text to send
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=sendclienttext" \
--data-urlencode "cid=123456" \
--data-urlencode "from=8135551234" \
--data-urlencode "to=8135555678" \
--data-urlencode "text=Hello from the Send It By Text API" \
--data-urlencode "userid=101"
Send client MMS
POST request=sendclientmms
Sends an MMS (picture or file message) to a client. Note the different endpoint URL below; send as multipart form data with the file attached, or Base64 encoded via filename and body content.
Different endpoint URL. POST this request to https://useclientconnect.com/api/mms_v2.ashx instead of the standard base URL.
Parameters
requestString
required Set to sendclientmms
cidInteger
required ID of the client the MMS is sent to
fromInteger
required From mobile number (without country code)
toInteger
required To mobile number (without country code)
textString
required Message text to send
useridInteger
required User ID
filenameString
optional File name including extension. Required only when sending the file Base64 encoded in the request body
FileFile
conditional The file to send. POST the file with the request, or supply it Base64 encoded via the body with filename
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/mms_v2.ashx" \
-H "apikey: YOUR_API_KEY" \
-F "request=sendclientmms" \
-F "cid=123456" \
-F "from=8135551234" \
-F "to=8135555678" \
-F "text=Hello from the Send It By Text API" \
-F "userid=101"
Send scheduled text
POST request=sendclientscheduledtext
Schedules a text message for future delivery, with optional repeat rules.
Parameters
requestString
required Set to sendclientscheduledtext
fromInteger
required From mobile number (without country code)
toInteger
required To mobile number (without country code)
textString
required Message text to send
monthInteger
required Month the text should be sent
dayInteger
required Day of the month the text should be sent
yearInteger
required Year the text should be sent
hourInteger
required Hour the text should be sent
minuteInteger
required Minute the text should be sent
ampmString
required am or pm
repeatInteger
required 1 = no repeat, 2 = daily, 3 = weekly, 4 = monthly, 5 = every 3 months, 6 = every 6 months, 7 = yearly, 8 = weekdays only, 9 = weekends only
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=sendclientscheduledtext" \
--data-urlencode "from=8135551234" \
--data-urlencode "to=8135555678" \
--data-urlencode "text=Hello from the Send It By Text API" \
--data-urlencode "month=8" \
--data-urlencode "day=15" \
--data-urlencode "year=2026" \
--data-urlencode "hour=4" \
--data-urlencode "minute=30" \
--data-urlencode "ampm=pm" \
--data-urlencode "repeat=1"
Send precomposed message
POST request=sendprecomposedmessage
Sends a saved (precomposed) message template to a client. Get template IDs from getcannedresponse .
Parameters
requestString
required Set to sendprecomposedmessage
cidInteger
required ID of the client the message is sent to
fromInteger
required From mobile number (without country code)
caidInteger
required ID of the precomposed response
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=sendprecomposedmessage" \
--data-urlencode "cid=123456" \
--data-urlencode "from=8135551234" \
--data-urlencode "caid=1" \
--data-urlencode "userid=101"
Send SMS (no client ID required)
POST request=sendclientsms
Sends an SMS to a phone number that may not belong to an existing client. If the destination number is unknown, createclient controls whether a new client record is created.
Parameters
requestString
required Set to sendclientsms
fromInteger
required From mobile number (without country code)
toInteger
required To mobile number (without country code)
textString
required Message text to send
useridInteger
required User ID
createclientInteger
required 1 = create a new client if the number is unknown, 0 = send without creating a client
firstnameString
optional First name (used when creating a client)
lastnameString
optional Last name (used when creating a client)
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=sendclientsms" \
--data-urlencode "from=8135551234" \
--data-urlencode "to=8135555678" \
--data-urlencode "text=Hello from the Send It By Text API" \
--data-urlencode "userid=101" \
--data-urlencode "createclient=1"
Get client text history by date
POST request=getclienttexthistorybydate
Returns a client's text history within a date range.
Parameters
requestString
required Set to getclienttexthistorybydate
cidInteger
required ID of the client whose text history is required
startdateDate (String)
required Start date
enddateDate (String)
required End date
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getclienttexthistorybydate" \
--data-urlencode "cid=123456" \
--data-urlencode "startdate=08/15/2026 09:00:00" \
--data-urlencode "enddate=08/15/2026 10:00:00"
Get client scheduled texts
POST request=getclientscheduledtexts
Returns the scheduled (pending) texts for a client.
Parameters
requestString
required Set to getclientscheduledtexts
cidInteger
required Client ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getclientscheduledtexts" \
--data-urlencode "cid=123456"
Send group message
POST request=sendgroupmsg
Sends a message to every contact in a group, via SMS, email, or both. Note the dedicated endpoint URL below; send this call as multipart form data, not as a URL encoded body.
Different endpoint URL. POST this request to https://useclientconnect.com/api/sendgroupmsg.ashx instead of the standard base URL.
Heads up: Do not POST
sendgroupmsg to the standard base URL. It has its own endpoint at
/api/sendgroupmsg.ashx and expects form data fields. Use the numeric group ID from
getcontactgroups , not the group name.
Parameters
requestString
required Set to sendgroupmsg
useridInteger
required User ID
sendviaInteger
required 1 = SMS, 2 = email, 3 = both
groupidInteger
required Group ID
textnoteString
conditional Message body. Required when sendvia is 1 or 3
textnoteemailString
conditional Email body. Required when sendvia is 2 or 3
usecompanyemailInteger
required 0 = false, 1 = true
emailsendinguseridInteger
conditional Required when sendvia is 2 or 3 and usecompanyemail is 0
useVpnNumberForTextInteger
required 0 = false, 1 = true
emailsubjectString
optional Email subject
nosendtorepliedInteger
optional 1 = skip contacts who have already replied, 0 = send to everyone
timezoneString
optional eastern, central, mountain, or pacific
FileFile
optional Attachment (sends as MMS)
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/sendgroupmsg.ashx" \
-H "apikey: YOUR_API_KEY" \
-F "request=sendgroupmsg" \
-F "userid=101" \
-F "sendvia=text" \
-F "groupid=1" \
-F "usecompanyemail=1" \
-F "useVpnNumberForText=1"
Clients
Create, update, search, and list client (contact) records.
Add client
POST request=addclient
Creates a client record and returns the new client's unique ID (CID) for use in later calls.
Heads up: Adding a contact does not reliably assign groups. Create the contact first, capture the returned ID, then call
addcontactgroups to assign groups.
Parameters
requestString
required Set to addclient
fnameString
required First name
lnameString
required Last name
useridInteger
required User ID
emailString
optional Email address
mobileInteger
optional Mobile number (without country code)
otherphoneInteger
optional Other phone number (without country code)
phonetypeString
optional home, work, mobile 2, fax, or other
addressString
optional Street address
cityString
optional City
stateString
optional State
zipString
optional ZIP code
companyString
optional Company name
statusInteger
optional 0 = inactive, 1 = active
stopfurtheremailsInteger
optional 1 = stop all emails to this contact
stopfurthertextsInteger
optional 1 = stop all text messages to this contact
clientidString
optional Custom client ID
scratchpadString
optional Description / scratchpad text
customnotificationInteger
optional 0 = disabled, 1 = enabled
customnotificationtextString
optional Custom notification text
ContactLocationString
optional Location of contact
JobTitleString
optional Job title
localnumberInteger
optional Local number (without country code)
customtext1-10String
optional Custom text fields 1 through 10
customdate1-5Date
optional Custom date fields 1 through 5
customlong1-5Numeric
optional Custom numeric fields 1 through 5
Returns: Returns message (success or error text) and UniqueId (the new client's CID).
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addclient" \
--data-urlencode "fname=Jane" \
--data-urlencode "lname=Doe" \
--data-urlencode "userid=101"
Example response Copy
{
"message": "Success",
"UniqueId": 123456
}
Update client
POST request=updateclient
Updates an existing client record. Only send the fields you want to change, plus the required ID.
Parameters
requestString
required Set to updateclient
idInteger
required CID of the client to update
emailString
optional Email address
fnameString
optional First name
lnameString
optional Last name
mobileInteger
optional Mobile number (without country code)
otherphoneInteger
optional Other phone number (without country code)
phonetypeString
optional home, work, mobile 2, fax, or other
addressString
optional Street address
cityString
optional City
stateString
optional State
zipString
optional ZIP code
companyString
optional Company name
statusInteger
optional 0 = inactive, 1 = active
stopfurtheremailsInteger
optional 1 = stop all emails to this contact
stopfurthertextsInteger
optional 1 = stop all text messages to this contact
clientidString
optional Custom client ID
scratchpadString
optional Description / scratchpad text
customnotificationInteger
optional 0 = disabled, 1 = enabled
customnotificationtextString
optional Custom notification text
ContactLocationString
optional Location of contact
JobTitleString
optional Job title
contactcomapnyString
optional Contact company
contactstatusInteger
optional Contact status ID
contactstatusnameString
optional Contact status name
localnumberInteger
optional Local number (without country code)
customtext1-10String
optional Custom text fields 1 through 10
customdate1-5Date
optional Custom date fields 1 through 5
customlong1-5Numeric
optional Custom numeric fields 1 through 5
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updateclient" \
--data-urlencode "id=123456"
Get client details
POST request=getclientdetails
Returns a client's full record by CID.
Parameters
requestString
required Set to getclientdetails
cidString
required ID of the client whose details are required
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getclientdetails" \
--data-urlencode "cid=123456"
Search clients
POST request=searchclient
Searches clients by name, mobile number, email, contact ID, or custom client ID. This is usually the first call in any workflow: search, then use the returned ID as cid in later calls.
Heads up: The
ID field in the response is the internal record ID. That is the value most endpoints want as
cid.
UniqueClientID is the visible Contact ID, used for display and for endpoints that explicitly ask for
contactid. See the
identifier guide .
Parameters
requestString
required Set to searchclient
searchString
required Search term: first name, last name, mobile, email, contact ID, or custom client ID
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=searchclient" \
--data-urlencode "search=Jane"
Example response Copy
[
{
"ID": 1234567,
"UniqueClientID": 9876543,
"ClientID": "ABC-10001",
"FirstName": "Jane",
"LastName": "Smith",
"MobileTel": "8135551212",
"EmailAddress": "jane@example.com"
}
]
List all clients
POST request=listallclients
Returns all clients. Supports pagination.
Parameters
requestString
required Set to listallclients
pagesizeInteger
optional Number of clients per page
pagenumberInteger
optional Page number
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=listallclients"
List active clients
POST request=listactiveclients
Returns all active clients. Supports pagination.
Parameters
requestString
required Set to listactiveclients
pagesizeInteger
optional Number of clients per page
pagenumberInteger
optional Page number
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=listactiveclients"
List inactive clients
POST request=listinactiveclients
Returns all inactive clients.
Parameters
requestString
required Set to listinactiveclients
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=listinactiveclients"
List clients by contact status
POST request=listclientbycontactstatus
Returns clients filtered by contact status ID, with optional date range and pagination. Get status IDs from getcontactstatuses .
Parameters
requestString
required Set to listclientbycontactstatus
ContactStatusIDInteger
required Contact status ID
pagesizeInteger
optional Number of clients per page
pagenumberInteger
optional Page number
statuschangedfromDate (String)
optional From date, mm/dd/yyyy
statuschangedtoDate (String)
optional To date, mm/dd/yyyy
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=listclientbycontactstatus" \
--data-urlencode "ContactStatusID=1"
List clients by group
POST request=listclientbygroup
Returns clients in a specific group, with optional date range and pagination.
Parameters
requestString
required Set to listclientbygroup
groupidInteger
required Group ID
pagesizeInteger
optional Number of clients per page
pagenumberInteger
optional Page number
groupdatefromDate (String)
optional From date, mm/dd/yyyy
groupdatetoDate (String)
optional To date, mm/dd/yyyy
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=listclientbygroup" \
--data-urlencode "groupid=1"
Get client creditors
POST request=getclientcreditors
Returns details of all creditors available for a contact.
Parameters
requestString
required Set to getclientcreditors
contactidInteger
required Contact ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getclientcreditors" \
--data-urlencode "contactid=123456"
Get client affiliate
POST request=getclientaffiliate
Returns the affiliate assigned to a client.
Parameters
requestString
required Set to getclientaffiliate
cidInteger
required CID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getclientaffiliate" \
--data-urlencode "cid=123456"
Users
Manage the user accounts on your Send It By Text account.
Add user
POST request=adduser
Creates a user and returns the new user's unique ID.
Parameters
requestString
required Set to adduser
currentuseridInteger
required User ID of the admin performing this action
emailString
required Email address
fnameString
required First name
lnameString
required Last name
passwordString
required Password
mobileInteger
required Mobile number (without country code)
phoneInteger
required Phone number (without country code)
mmsInteger
required 1 = MMS feature enabled for this user, 0 = disabled
alleventInteger
required 1 = show all company events in calendar, 0 = only this user's events
alltaskInteger
required 1 = show all company tasks in the task window, 0 = only this user's tasks
ecardenabledInteger
required 1 = eCard enabled, 0 = disabled
ecardURLString
optional URL (from any portal) for eCard
allusercalendarInteger
required 1 = selected department users' events appear in calendar
allusertaskInteger
required 1 = selected department users' tasks appear in task window
departmentInteger
required Department ID
statusInteger
required 1 = active, 0 = blocked
calendardeptsString
required Comma separated calendar department IDs
taskdeptsString
required Comma separated task department IDs
extensionInteger
optional Phone extension
timezoneString
required Time zone
typeidInteger
optional 2 = admin user, 3 = normal user
Returns: Returns message (success or error text) and UniqueId (the new user's ID).
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=adduser" \
--data-urlencode "currentuserid=101" \
--data-urlencode "email=jane.doe@example.com" \
--data-urlencode "fname=Jane" \
--data-urlencode "lname=Doe" \
--data-urlencode "password=ExamplePassw0rd!" \
--data-urlencode "mobile=8135555678" \
--data-urlencode "phone=8135555678" \
--data-urlencode "mms=1" \
--data-urlencode "allevent=1" \
--data-urlencode "alltask=1" \
--data-urlencode "ecardenabled=1" \
--data-urlencode "allusercalendar=1" \
--data-urlencode "allusertask=1" \
--data-urlencode "department=Example Name" \
--data-urlencode "status=1" \
--data-urlencode "calendardepts=example" \
--data-urlencode "taskdepts=example" \
--data-urlencode "timezone=eastern"
Example response Copy
{
"message": "Success",
"UniqueId": 4321
}
Update user
POST request=updateuser
Updates an existing user.
Parameters
requestString
required Set to updateuser
useridInteger
required ID of the user to update
currentuseridInteger
required User ID of the admin performing this action
emailString
required Email address
fnameString
required First name
lnameString
required Last name
passwordString
required Password
mobileInteger
required Mobile number (without country code)
phoneInteger
required Phone number (without country code)
mmsInteger
required 1 = MMS feature enabled for this user, 0 = disabled
alleventInteger
required 1 = show all company events in calendar, 0 = only this user's events
alltaskInteger
required 1 = show all company tasks in the task window, 0 = only this user's tasks
ecardenabledInteger
required 1 = eCard enabled, 0 = disabled
ecardURLString
optional URL (from any portal) for eCard
allusercalendarInteger
required 1 = selected department users' events appear in calendar
allusertaskInteger
required 1 = selected department users' tasks appear in task window
departmentInteger
required Department ID
statusInteger
required 1 = active, 0 = blocked
calendardeptsString
required Comma separated calendar department IDs
taskdeptsString
required Comma separated task department IDs
extensionInteger
optional Phone extension
timezoneString
required Time zone
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updateuser" \
--data-urlencode "userid=101" \
--data-urlencode "currentuserid=101" \
--data-urlencode "email=jane.doe@example.com" \
--data-urlencode "fname=Jane" \
--data-urlencode "lname=Doe" \
--data-urlencode "password=ExamplePassw0rd!" \
--data-urlencode "mobile=8135555678" \
--data-urlencode "phone=8135555678" \
--data-urlencode "mms=1" \
--data-urlencode "allevent=1" \
--data-urlencode "alltask=1" \
--data-urlencode "ecardenabled=1" \
--data-urlencode "allusercalendar=1" \
--data-urlencode "allusertask=1" \
--data-urlencode "department=Example Name" \
--data-urlencode "status=1" \
--data-urlencode "calendardepts=example" \
--data-urlencode "taskdepts=example" \
--data-urlencode "timezone=eastern"
Get user details
POST request=getuserdetails
Returns a user's details by ID.
Parameters
requestString
required Set to getuserdetails
useridInteger
required ID of the user whose details are required
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getuserdetails" \
--data-urlencode "userid=101"
Search users
POST request=searchuser
Searches users by full or partial first name, last name, mobile, or email.
Parameters
requestString
required Set to searchuser
searchString
required Search term
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=searchuser" \
--data-urlencode "search=Jane"
List all users
POST request=listallusers
Returns all users.
Parameters
requestString
required Set to listallusers
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=listallusers"
List active users
POST request=listactiveusers
Returns all active users.
Parameters
requestString
required Set to listactiveusers
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=listactiveusers"
List inactive users
POST request=listinactiveusers
Returns all inactive users.
Parameters
requestString
required Set to listinactiveusers
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=listinactiveusers"
Get company users
POST request=getcompanyusers
Returns all users of the company associated with the API key.
Parameters
requestString
required Set to getcompanyusers
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcompanyusers"
Get company users by status
POST request=getcompanyusersbystatus
Returns company users filtered by status.
Parameters
requestString
required Set to getcompanyusersbystatus
statusInteger
required 0 = inactive users, 1 = active users, 2 = all users
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcompanyusersbystatus" \
--data-urlencode "status=1"
Get user info by phone
POST request=getuserinfobyphone
Returns user information (including user ID and appointment duration) for a phone number.
Parameters
requestString
required Set to getuserinfobyphone
phoneString
required Phone number (without country code)
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getuserinfobyphone" \
--data-urlencode "phone=8135555678"
Appointments & Scheduling
Create and manage appointments, check availability, and pull time slots.
Create appointment
POST request=createappointment
Creates an appointment for a client.
Parameters
requestString
required Set to createappointment
assignedtoInteger
required User ID the appointment is assigned to
cidInteger
required Client ID
precomposedsubjectInteger
required Precomposed subject ID
subjectString
required Appointment subject
descriptionString
required Description of the appointment
fromDate (String)
required Start, mm/dd/yyyy hh:mm:ss
toDate (String)
required End, mm/dd/yyyy hh:mm:ss
timezoneString
required Time zone (see gettimezones )
calendareventcompleteInteger
required 0 or 1, completion status
popupreminderInteger
required 0 or 1, send a popup reminder
popupremindertimeInteger
required Minutes before the appointment for the reminder
appointmentreminderidInteger
required Appointment reminder ID
sendreminderviaString
required sms or email
emailcalendarinviteInteger
required 0 or 1, email a calendar invite
sendtextconfirmationInteger
required 0 or 1, send a text confirmation
sendtextconfirmationdaysInteger
required Days before the appointment to send the confirmation
additionalparticipantstextString
optional Comma separated mobile numbers of additional participants
additionalparticipantsemailString
optional Comma separated email addresses of additional participants
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=createappointment" \
--data-urlencode "assignedto=101" \
--data-urlencode "cid=123456" \
--data-urlencode "precomposedsubject=1" \
--data-urlencode "subject=Example subject" \
--data-urlencode "description=Example note text" \
--data-urlencode "from=08/15/2026 09:00:00" \
--data-urlencode "to=08/15/2026 10:00:00" \
--data-urlencode "timezone=eastern" \
--data-urlencode "calendareventcomplete=1" \
--data-urlencode "popupreminder=1" \
--data-urlencode "popupremindertime=1" \
--data-urlencode "appointmentreminderid=1" \
--data-urlencode "sendremindervia=example" \
--data-urlencode "emailcalendarinvite=1" \
--data-urlencode "sendtextconfirmation=1" \
--data-urlencode "sendtextconfirmationdays=1" \
--data-urlencode "userid=101"
Update appointment
POST request=updateappointment
Updates an existing appointment.
Parameters
requestString
required Set to updateappointment
appointmentidInteger
required ID of the appointment to update
assignedtoInteger
required User ID the appointment is assigned to
cidInteger
required Client ID
precomposedsubjectInteger
required Precomposed subject ID
subjectString
required Appointment subject
descriptionString
required Description of the appointment
fromDate (String)
required Start, mm/dd/yyyy hh:mm:ss
toDate (String)
required End, mm/dd/yyyy hh:mm:ss
timezoneString
required Time zone
calendareventcompleteInteger
required 0 or 1, completion status
popupreminderInteger
required 0 or 1, send a popup reminder
popupremindertimeInteger
required Minutes before the appointment for the reminder
appointmentreminderidInteger
required Appointment reminder ID
sendreminderviaString
required sms or email
emailcalendarinviteInteger
required 0 or 1, email a calendar invite
sendtextconfirmationInteger
required 0 or 1, send a text confirmation
sendtextconfirmationdaysInteger
required Days before the appointment to send the confirmation
additionalparticipantstextString
optional Comma separated mobile numbers of additional participants
additionalparticipantsemailString
optional Comma separated email addresses of additional participants
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updateappointment" \
--data-urlencode "appointmentid=1" \
--data-urlencode "assignedto=101" \
--data-urlencode "cid=123456" \
--data-urlencode "precomposedsubject=1" \
--data-urlencode "subject=Example subject" \
--data-urlencode "description=Example note text" \
--data-urlencode "from=08/15/2026 09:00:00" \
--data-urlencode "to=08/15/2026 10:00:00" \
--data-urlencode "timezone=eastern" \
--data-urlencode "calendareventcomplete=1" \
--data-urlencode "popupreminder=1" \
--data-urlencode "popupremindertime=1" \
--data-urlencode "appointmentreminderid=1" \
--data-urlencode "sendremindervia=example" \
--data-urlencode "emailcalendarinvite=1" \
--data-urlencode "sendtextconfirmation=1" \
--data-urlencode "sendtextconfirmationdays=1"
Get appointments by client
POST request=getappointmentsbyclientid
Returns the appointments for a client.
Parameters
requestString
required Set to getappointmentsbyclientid
cidInteger
required ID of the client whose appointments are to be listed
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getappointmentsbyclientid" \
--data-urlencode "cid=123456"
Get appointment reminders by date
POST request=getappointmentreminderlistbydate
Returns appointments within a date range for reminder purposes.
Parameters
requestString
required Set to getappointmentreminderlistbydate
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getappointmentreminderlistbydate" \
--data-urlencode "userid=101"
Confirm appointment
POST request=confirmappointment
Books and confirms an appointment slot. Duration comes from getuserinfobyphone , locations from getlocations , resources from getresources .
Parameters
requestString
required Set to confirmappointment
useridInteger
required User ID
clientidInteger
required Client ID
durationInteger
required Appointment duration
dateString
required Date of the appointment
timeString
required Time of the appointment
subjectString
required Subject
locationidInteger
required Location ID
resourceidInteger
required Resource ID
notesString
required Description or notes
timezoneString
required Time zone (see gettimezones )
sendreminderInteger
required 0 or 1
sendremindertimeInteger
required Minutes before the appointment
sendconfirmationInteger
required 0 or 1
sendconfirmationdaysInteger
required Days before the appointment
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=confirmappointment" \
--data-urlencode "userid=101" \
--data-urlencode "clientid=123456" \
--data-urlencode "duration=1" \
--data-urlencode "date=example" \
--data-urlencode "time=example" \
--data-urlencode "subject=Example subject" \
--data-urlencode "locationid=1" \
--data-urlencode "resourceid=1" \
--data-urlencode "notes=Example note text" \
--data-urlencode "timezone=eastern" \
--data-urlencode "sendreminder=1" \
--data-urlencode "sendremindertime=1" \
--data-urlencode "sendconfirmation=1" \
--data-urlencode "sendconfirmationdays=1"
Get time slots
POST request=gettimeslots
Returns a user's available time slots on a given date for a given duration.
Parameters
requestString
required Set to gettimeslots
useridInteger
required User ID
durationInteger
required Slot duration
dateString
required Date
timezoneString
required Time zone
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=gettimeslots" \
--data-urlencode "userid=101" \
--data-urlencode "duration=1" \
--data-urlencode "date=example" \
--data-urlencode "timezone=eastern"
Get next 30 working days
POST request=getnext30workingdays
Returns the next 30 working days for a user.
Parameters
requestString
required Set to getnext30workingdays
useridInteger
required ID of the user whose working days are required
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getnext30workingdays" \
--data-urlencode "userid=101"
Get additional people
POST request=getadditionalpeople
Returns the additional participants who can view an appointment.
Parameters
requestString
required Set to getadditionalpeople
appointmentidInteger
required Appointment ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getadditionalpeople" \
--data-urlencode "appointmentid=1"
Get locations
POST request=getlocations
Returns the list of locations.
Parameters
requestString
required Set to getlocations
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getlocations"
Get resources
POST request=getresources
Returns the list of resources for a user.
Parameters
requestString
required Set to getresources
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getresources" \
--data-urlencode "userid=101"
Get time zones
POST request=gettimezones
Returns the list of supported time zones.
Parameters
requestString
required Set to gettimezones
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=gettimezones"
Tasks
Create and track tasks assigned to users and clients.
Add task
POST request=addtask
Creates a task for a client and assigns it to a user. Priority IDs come from gettaskpriorities ; preselected task IDs from getpreselectedtasksforuse .
Parameters
requestString
required Set to addtask
cidInteger
required Client the task is for
assignedtoInteger
required User the task is assigned to
priorityInteger
required Priority ID
preselectedtaskInteger
required Preselected task ID
followupdateDate (String)
required Follow up date
tasknotesString
required Task notes
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addtask" \
--data-urlencode "cid=123456" \
--data-urlencode "assignedto=101" \
--data-urlencode "priority=1" \
--data-urlencode "preselectedtask=1" \
--data-urlencode "followupdate=08/15/2026" \
--data-urlencode "tasknotes=Example note text" \
--data-urlencode "userid=101"
Update task
POST request=updatetask
Updates an existing task.
Parameters
requestString
required Set to updatetask
taskidInteger
required ID of the task to update
cidInteger
required Client the task is for
assignedtoInteger
required User the task is assigned to
priorityInteger
required Priority ID
preselectedtaskInteger
required Preselected task ID
followupdateDate (String)
required Follow up date
tasknotesString
required Task notes
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updatetask" \
--data-urlencode "taskid=1" \
--data-urlencode "cid=123456" \
--data-urlencode "assignedto=101" \
--data-urlencode "priority=1" \
--data-urlencode "preselectedtask=1" \
--data-urlencode "followupdate=08/15/2026" \
--data-urlencode "tasknotes=Example note text" \
--data-urlencode "userid=101"
Get client tasks
POST request=getclienttasks
Returns the tasks for a client.
Parameters
requestString
required Set to getclienttasks
cidInteger
required ID of the client whose tasks are to be listed
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getclienttasks" \
--data-urlencode "cid=123456"
Get task details
POST request=gettaskdetails
Returns the details of a task by task ID.
Parameters
requestString
required Set to gettaskdetails
taskidInteger
required Task ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=gettaskdetails" \
--data-urlencode "taskid=1"
Get tasks assigned to me
POST request=gettasksassignedtome
Returns tasks assigned to the requesting user.
Parameters
requestString
required Set to gettasksassignedtome
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=gettasksassignedtome" \
--data-urlencode "userid=101"
Get tasks assigned by me
POST request=gettasksassignedbyme
Returns tasks assigned by the requesting user.
Parameters
requestString
required Set to gettasksassignedbyme
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=gettasksassignedbyme" \
--data-urlencode "userid=101"
Get tasks for all users
POST request=gettasksassignedtoallusers
Returns tasks assigned to all users of the company.
Parameters
requestString
required Set to gettasksassignedtoallusers
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=gettasksassignedtoallusers" \
--data-urlencode "userid=101"
Get task priorities
POST request=gettaskpriorities
Returns the available task priorities and their IDs.
Parameters
requestString
required Set to gettaskpriorities
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=gettaskpriorities"
Get preselected tasks
POST request=getpreselectedtasksforuse
Returns the company's preselected tasks and their IDs.
Parameters
requestString
required Set to getpreselectedtasksforuse
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getpreselectedtasksforuse"
Notes & Documents
Client notes, audit trail, and document upload and retrieval.
Add note
POST request=addnote
Adds a note to a client.
Heads up: cid here is the internal record ID (the
ID field from
searchclient ), not the visible Contact ID.
Parameters
requestString
required Set to addnote
cidInteger
required ID of the client the note is added to
noteString
required Note text
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addnote" \
--data-urlencode "cid=123456" \
--data-urlencode "note=Example note text" \
--data-urlencode "userid=101"
Update note
POST request=updatenote
Updates a note. Set append to 1 to append to the existing note instead of replacing it.
Parameters
requestString
required Set to updatenote
noteidInteger
required ID of the note to update
noteString
required Note text
useridInteger
required User ID
appendInteger
optional 0 = replace, 1 = append
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updatenote" \
--data-urlencode "noteid=1" \
--data-urlencode "note=Example note text" \
--data-urlencode "userid=101"
Delete note
POST request=deletenote
Deletes a note.
Parameters
requestString
required Set to deletenote
noteidInteger
required ID of the note to delete
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deletenote" \
--data-urlencode "noteid=1"
Get all notes by client
POST request=getallnotesbyclientid
Returns all notes (the audit trail) for a client.
Parameters
requestString
required Set to getallnotesbyclientid
cidInteger
required ID of the client whose notes are to be listed
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getallnotesbyclientid" \
--data-urlencode "cid=123456"
Get document details by client
POST request=getdocsdetailsbycid
Returns the Documents tab rows (including eSignature records) for a contact by CID.
Heads up: Document URLs can contain spaces. URL encode them before downloading.
Parameters
requestString
required Set to getdocsdetailsbycid
cidInteger
required CID (internal record ID)
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getdocsdetailsbycid" \
--data-urlencode "cid=123456"
Example response Copy
[
{
"RecordID": 1261005,
"Status": "signed",
"DocumentName": "Example Agreement.pdf",
"SignedFileUrl": "https://useclientconnect.com/Docs/SignedDocs/123456/Example%20Agreement.pdf",
"DateTime": "2026-06-16T20:35:29.827"
}
]
Upload document
POST request=uploaddocument
Uploads a file to a contact's document section. Send as multipart form data with the file attached.
Heads up: When using browser FormData, do not set the Content-Type header manually. The browser sets the multipart boundary for you; overriding it breaks the upload.
Parameters
requestString
required Set to uploaddocument
useridInteger
required User ID
cidInteger
required CID
FileFile
required File to upload, POSTed with the request
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-F "request=uploaddocument" \
-F "userid=101" \
-F "cid=123456" \
-F "File=@./example.pdf"
Get case document data
POST request=getcasedocumentdata
Returns case document data by CID and document ID.
Parameters
requestString
required Set to getcasedocumentdata
CIDInteger
required Client ID
DocumentIDInteger
required Document ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcasedocumentdata" \
--data-urlencode "CID=123456" \
--data-urlencode "DocumentID=1"
Send document data portal link
POST request=SendDDPlink
Sends a Document Data Portal (DDP) link to a client by email, text, or both. Include the [DDPLink] tag in the email body and/or SMS body; it is replaced with the actual link.
Parameters
requestString
required Set to SendDDPlink
CIDInteger
required Client ID
DocumentIDString
required Document ID
SendViaString
required email, text, or both
emailsubjectString
conditional Required when SendVia is email or both
emailbodyString
conditional Required when SendVia is email or both. Must include the [DDPLink] tag
smsbodyString
conditional Required when SendVia is text or both. Must include the [DDPLink] tag
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=SendDDPlink" \
--data-urlencode "CID=123456" \
--data-urlencode "DocumentID=example" \
--data-urlencode "SendVia=text"
eSignature
Send documents for signature, track status, and manage templates. Supports up to four signers.
White tags. When you prepare a PDF or Word document for signrequest, place white colored tags in the document where fields should appear: ^S1 signature, ^I1 initial, ^D1 date, ^M1 mandatory text, ^T1 optional text, ^R1_G1 radio button, each for signer 1. Use ^S2 through ^S4 (and matching tags) for signers 2 through 4. For radio buttons, _G[number] defines the group; up to 9 groups per signer (^R1_G1 through ^R1_G9), with any number of radios per group.
Send document for signature
POST request=signrequest
Sends a document (PDF or Word) to a client for signature. POST the file with the request, or send it Base64 encoded in rawdata with a filename. Note the different endpoint URL below.
Different endpoint URL. POST this request to https://useclientconnect.com/api/signrequest_v2.ashx instead of the standard base URL.
Parameters
requestString
required Set to signrequest
useridString
required User ID
cidString
required Client ID
sendviaString
required email, text, or both
ishandsignString
optional yes or no. Anything other than yes is treated as no
secondsignerString
optional yes or no
secondsignerfirstnameString
optional Second signer first name
secondsignerlastnameString
optional Second signer last name
secondsigneremailString
optional Second signer email address
secondsignermobileString
optional Second signer mobile number
secondsignersendviaString
optional email, text, or both
signerpreferenceInteger
optional 1 = send to first signer first, 2 = send to second signer first
bypass3dayswaitString
optional yes skips the 3 day review wait period so the document can be signed immediately
pdftoimageInteger
optional 0 = PDF to HTML conversion, 1 = PDF to image conversion
filenameString
conditional File name with extension (.pdf or .docx). Required only when sending the file Base64 encoded in the body
rawdataString (Base64)
conditional File contents, Base64 encoded. Not required if the file is POSTed with the request
FileFile
conditional File POSTed with the request. Not required if rawdata is used
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/signrequest_v2.ashx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=signrequest" \
--data-urlencode "userid=101" \
--data-urlencode "cid=123456" \
--data-urlencode "sendvia=text"
Send pre-tagged document for signature
POST request=sendpretaggeddocumentforsignature
Sends a saved signature template (or several) to a client for signature. Template IDs come from getsignaturetemplatesandgrouplist . Supports up to four signers.
Parameters
requestString
required Set to sendpretaggeddocumentforsignature
useridString
required User ID
cidString
required Client ID
templateidString
required Template record ID. Single entry or comma separated multiple entries
sendviaString
required email or text
donotsendInteger
optional 1 = do not send email/SMS notifications, 0 = send them
bypass3dayswaitString
optional yes skips the 3 day review wait period
custommessageidInteger
optional Custom message ID (see getcompanycustomsignaturemessages )
signerpreferenceInteger
optional 1 = first signer first, 2 = second signer first
secondsignerString
optional yes or no
secondsignerfirstnameString
optional Second signer first name
secondsignerlastnameString
optional Second signer last name
secondsigneremailString
optional Second signer email address
secondsignermobileString
optional Second signer mobile number
secondsignersendviaString
optional email or text
thirdsignerString
optional yes or no
thirdsignerfirstnameString
optional Third signer first name
thirdsignerlastnameString
optional Third signer last name
thirdsigneremailString
optional Third signer email address
thirdsignermobileString
optional Third signer mobile number
thirdsignersendviaString
optional email or text
fourthsignerString
optional yes or no
fourthsignerfirstnameString
optional Fourth signer first name
fourthsignerlastnameString
optional Fourth signer last name
fourthsigneremailString
optional Fourth signer email address
fourthsignermobileString
optional Fourth signer mobile number
fourthsignersendviaString
optional email or text
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=sendpretaggeddocumentforsignature" \
--data-urlencode "userid=101" \
--data-urlencode "cid=123456" \
--data-urlencode "templateid=example" \
--data-urlencode "sendvia=text"
Get signature status
POST request=getsignstatus
Returns the status of a document sent for signature.
Parameters
requestString
required Set to getsignstatus
recordidInteger
required Record ID returned when the document was sent
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getsignstatus" \
--data-urlencode "recordid=1"
Void document
POST request=voiddocument
Voids a signed document.
Parameters
requestString
required Set to voiddocument
recordidInteger
required Record ID or package ID
useridInteger
optional User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=voiddocument" \
--data-urlencode "recordid=1"
Release document
POST request=releasedocument
Releases (unlocks) a document.
Parameters
requestString
required Set to releasedocument
recordidInteger
required Record ID returned when the document was sent
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=releasedocument" \
--data-urlencode "recordid=1"
Get eSign template list
POST request=getesigntemplatelist
Returns the company's eSign templates.
Parameters
requestString
required Set to getesigntemplatelist
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getesigntemplatelist"
Get signature templates and groups
POST request=getsignaturetemplatesandgrouplist
Returns the individual and group signature templates.
Parameters
requestString
required Set to getsignaturetemplatesandgrouplist
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getsignaturetemplatesandgrouplist"
Get custom signature messages
POST request=getcompanycustomsignaturemessages
Returns the company's custom signature messages.
Parameters
requestString
required Set to getcompanycustomsignaturemessages
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcompanycustomsignaturemessages"
Delete eSign template
POST request=deleteesigntemplate
Deletes an eSign template.
Parameters
requestString
required Set to deleteesigntemplate
stidInteger
required ID of the eSign template to delete
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deleteesigntemplate" \
--data-urlencode "stid=1"
Get signing link
POST request=getsigninglink
Returns the link for the most recent unsigned sign request for a mobile number. Useful for re-sending a signing link when a client says they lost the original text or email.
Heads up: Looks up by mobile number and returns only the last unsigned request. If multiple documents are outstanding, only the most recent one comes back.
Parameters
requestString
required Set to getsigninglink
mobiletelInteger
required Mobile number, unformatted, with country code
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getsigninglink" \
--data-urlencode "mobiletel=8135555678"
Message Templates
Manage precomposed (canned) responses, subjects, opt-in messages, eMessages, and per-user templates.
Get precomposed responses
POST request=getcannedresponse
Returns the company's precomposed responses.
Parameters
requestString
required Set to getcannedresponse
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcannedresponse"
Add precomposed response
POST request=addcannedresponse
Creates a precomposed response.
Parameters
requestString
required Set to addcannedresponse
cannedresponseString
required Precomposed response text
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addcannedresponse" \
--data-urlencode "cannedresponse=example" \
--data-urlencode "userid=101"
Update precomposed response
POST request=updatecannedresponse
Updates a precomposed response.
Parameters
requestString
required Set to updatecannedresponse
caidInteger
required ID of the precomposed response
cannedresponseString
required New precomposed response text
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updatecannedresponse" \
--data-urlencode "caid=1" \
--data-urlencode "cannedresponse=example"
Delete precomposed response
POST request=deletecannedresponse
Deletes a precomposed response.
Parameters
requestString
required Set to deletecannedresponse
caidInteger
required ID of the precomposed response
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deletecannedresponse" \
--data-urlencode "caid=1"
Add precomposed subject
POST request=addcannedsubject
Creates a precomposed subject.
Parameters
requestString
required Set to addcannedsubject
cannedsubjectString
required Precomposed subject
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addcannedsubject" \
--data-urlencode "cannedsubject=example" \
--data-urlencode "userid=101"
Update precomposed subject
POST request=updatecannedsubject
Updates a precomposed subject.
Parameters
requestString
required Set to updatecannedsubject
csidInteger
required ID of the precomposed subject
cannedsubjectString
required New precomposed subject
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updatecannedsubject" \
--data-urlencode "csid=1" \
--data-urlencode "cannedsubject=example"
Delete precomposed subject
POST request=deletecannedsubject
Deletes a precomposed subject.
Parameters
requestString
required Set to deletecannedsubject
csidInteger
required ID of the precomposed subject
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deletecannedsubject" \
--data-urlencode "csid=1"
Get precomposed opt-ins
POST request=getcannedoptin
Returns the company's precomposed opt-ins.
Parameters
requestString
required Set to getcannedoptin
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcannedoptin"
Add precomposed opt-in
POST request=addcannedoptin
Creates a precomposed opt-in.
Parameters
requestString
required Set to addcannedoptin
cannedoptinString
required Precomposed opt-in text
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addcannedoptin" \
--data-urlencode "cannedoptin=example" \
--data-urlencode "userid=101"
Update precomposed opt-in
POST request=updatecannedoptin
Updates a precomposed opt-in.
Parameters
requestString
required Set to updatecannedoptin
coidInteger
required ID of the precomposed opt-in
cannedoptinString
required New precomposed opt-in text
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updatecannedoptin" \
--data-urlencode "coid=1" \
--data-urlencode "cannedoptin=example"
Delete precomposed opt-in
POST request=deletecannedoptin
Deletes a precomposed opt-in.
Parameters
requestString
required Set to deletecannedoptin
coidInteger
required ID of the precomposed opt-in
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deletecannedoptin" \
--data-urlencode "coid=1"
Add precomposed eMessage
POST request=addcannedemessage
Creates a precomposed eMessage.
Parameters
requestString
required Set to addcannedemessage
cannedemessageString
required Precomposed eMessage text
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addcannedemessage" \
--data-urlencode "cannedemessage=example" \
--data-urlencode "userid=101"
Update precomposed eMessage
POST request=updatecannedemessage
Updates a precomposed eMessage.
Parameters
requestString
required Set to updatecannedemessage
ceidInteger
required ID of the precomposed eMessage
cannedemessageString
required New precomposed emessage text
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updatecannedemessage" \
--data-urlencode "ceid=1" \
--data-urlencode "cannedemessage=example"
Delete precomposed eMessage
POST request=deletecannedemessage
Deletes a precomposed eMessage.
Parameters
requestString
required Set to deletecannedemessage
ceidInteger
required ID of the precomposed eMessage
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deletecannedemessage" \
--data-urlencode "ceid=1"
Get precomposed subjects
POST request=getcannedsubjects
Returns the company's precomposed subjects.
Parameters
requestString
required Set to getcannedsubjects
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcannedsubjects"
Get precomposed eMessages
POST request=getcannedemessages
Returns the company's precomposed eMessages.
Parameters
requestString
required Set to getcannedemessages
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcannedemessages"
Get user precomposed responses
POST request=getusercannedresponses
Returns a user's personal precomposed responses.
Parameters
requestString
required Set to getusercannedresponses
useridInteger
required ID of the user whose precomposed responses are listed
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getusercannedresponses" \
--data-urlencode "userid=101"
Add user precomposed response
POST request=addusercannedresponse
Creates a personal precomposed response for a user.
Parameters
requestString
required Set to addusercannedresponse
useridInteger
required ID of the user the response belongs to
cannedresponseString
required Precomposed response text
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addusercannedresponse" \
--data-urlencode "userid=101" \
--data-urlencode "cannedresponse=example"
Update user precomposed response
POST request=updateusercannedresponse
Updates a user's personal precomposed response.
Parameters
requestString
required Set to updateusercannedresponse
cannedidInteger
required ID of the precomposed response to update
cannedresponseString
required Precomposed response text
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updateusercannedresponse" \
--data-urlencode "cannedid=1" \
--data-urlencode "cannedresponse=example" \
--data-urlencode "userid=101"
Delete user precomposed response
POST request=deleteusercannedresponse
Deletes a user's personal precomposed response.
Parameters
requestString
required Set to deleteusercannedresponse
cannedidInteger
required ID of the precomposed response to delete
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deleteusercannedresponse" \
--data-urlencode "cannedid=1"
App & eCard Messages
Manage and send in-app notification messages and eCards.
Get app messages
POST request=getappmessages
Returns the company's app notification message templates.
Parameters
requestString
required Set to getappmessages
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getappmessages"
Add app message
POST request=addappmessage
Creates an app message template.
Parameters
requestString
required Set to addappmessage
appmessageString
required App message text
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addappmessage" \
--data-urlencode "appmessage=example" \
--data-urlencode "userid=101"
Update app message
POST request=updateappmessage
Updates an app message template.
Parameters
requestString
required Set to updateappmessage
amidInteger
required ID of the app message to update
appmessageString
required New app message text
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updateappmessage" \
--data-urlencode "amid=1" \
--data-urlencode "appmessage=example"
Delete app message
POST request=deleteappmessage
Deletes an app message template.
Parameters
requestString
required Set to deleteappmessage
amidInteger
required ID of the app message to delete
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deleteappmessage" \
--data-urlencode "amid=1"
Send app message
POST request=sendappmessage
Sends an app notification message to a client.
Parameters
requestString
required Set to sendappmessage
cidInteger
required Client ID
amidInteger
required ID of the app message to send
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=sendappmessage" \
--data-urlencode "cid=123456" \
--data-urlencode "amid=1" \
--data-urlencode "userid=101"
Get eCard messages
POST request=getecardmessages
Returns the company's eCard message templates.
Parameters
requestString
required Set to getecardmessages
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getecardmessages"
Add eCard message
POST request=addecardmessage
Creates an eCard message template.
Parameters
requestString
required Set to addecardmessage
ecardmessageString
required eCard message text
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addecardmessage" \
--data-urlencode "ecardmessage=example" \
--data-urlencode "userid=101"
Update eCard message
POST request=updateecardmessage
Updates an eCard message template.
Parameters
requestString
required Set to updateecardmessage
emidInteger
required ID of the eCard message to update
ecardmessageString
required eCard message text
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updateecardmessage" \
--data-urlencode "emid=1" \
--data-urlencode "ecardmessage=example"
Delete eCard message
POST request=deleteecardmessage
Deletes an eCard message template.
Parameters
requestString
required Set to deleteecardmessage
emidInteger
required ID of the eCard message to delete
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deleteecardmessage" \
--data-urlencode "emid=1"
Send eCard
POST request=sendecard
Sends an eCard to a client.
Parameters
requestString
required Set to sendecard
cidInteger
required Client ID
useridInteger
required User ID
ecidInteger
optional ID of the eCard message to send
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=sendecard" \
--data-urlencode "cid=123456" \
--data-urlencode "userid=101"
Groups, Statuses & Custom Fields
Contact groups, contact statuses, and custom field definitions and data.
Add new group
POST request=addnewgroup
Creates a new contact group for the company.
Parameters
requestString
required Set to addnewgroup
groupnameString
required Group name
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addnewgroup" \
--data-urlencode "groupname=Example Name"
Add contact to groups
POST request=addcontactgroups
Assigns a contact to one or more groups. This is the reliable way to set group membership; addclient and updateclient do not reliably assign groups.
Parameters
requestString
required Set to addcontactgroups
cidInteger
required Client ID
clientgroupsString
required Comma separated group IDs
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=addcontactgroups" \
--data-urlencode "cid=123456" \
--data-urlencode "clientgroups=example"
Example response Copy
{ "message": "Group assigned successfully." }
Get contact groups
POST request=getcontactgroups
Returns the contact groups.
Parameters
requestString
required Set to getcontactgroups
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcontactgroups" \
--data-urlencode "userid=101"
Remove contact from groups
POST request=deletecontactgroups
Removes a contact from one or more groups.
Parameters
requestString
required Set to deletecontactgroups
cidInteger
required Client ID
clientgroupsString
required Comma separated group IDs
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deletecontactgroups" \
--data-urlencode "cid=123456" \
--data-urlencode "clientgroups=example"
Get contact statuses
POST request=getcontactstatuses
Returns the available contact statuses and their IDs.
Parameters
requestString
required Set to getcontactstatuses
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcontactstatuses"
Get custom fields
POST request=getcustomfields
Returns all available custom field definitions. Custom fields are configured per company, so always check the definitions before relying on a field label.
Parameters
requestString
required Set to getcustomfields
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcustomfields"
Example response Copy
[
{
"FieldName": "CustomText4",
"FieldLabel": "Account Reference",
"FieldType": "Text"
}
]
Get custom field data
POST request=getcustomfieldsdata
Returns the custom field values for a contact.
Heads up: contactid here is the visible Contact ID (
UniqueClientID from
searchclient ), not the internal
cid. This is the main exception to the usual ID rule; see the
identifier guide .
Parameters
requestString
required Set to getcustomfieldsdata
contactidInteger
required Contact ID (visible ID, not internal cid)
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcustomfieldsdata" \
--data-urlencode "contactid=123456"
Company & Departments
Company settings, business hours, departments, local numbers, and performance reporting.
Get company details
POST request=getcompanydetails
Returns the details of the company associated with the API key.
Parameters
requestString
required Set to getcompanydetails
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcompanydetails"
Update company
POST request=updatecompany
Updates company information, including business hours for each day of the week.
Parameters
requestString
required Set to updatecompany
alwaysopenInteger
required 1 = company is always open, 0 = use daily hours
sundayopenInteger
required 1 = open, 0 = closed
sundaystartString
required Sunday opening time, e.g. 9:00AM
sundayendString
required Sunday closing time, e.g. 5:00PM
mondayopenInteger
required 1 = open, 0 = closed
mondaystartString
required Monday opening time
mondayendString
required Monday closing time
tuesdayopenInteger
required 1 = open, 0 = closed
tuesdaystartString
required Tuesday opening time
tuesdayendString
required Tuesday closing time
wednesdayopenInteger
required 1 = open, 0 = closed
wednesdaystartString
required Wednesday opening time
wednesdayendString
required Wednesday closing time
thursdayopenInteger
required 1 = open, 0 = closed
thursdaystartString
required Thursday opening time
thursdayendString
required Thursday closing time
fridayopenInteger
required 1 = open, 0 = closed
fridaystartString
required Friday opening time
fridayendString
required Friday closing time
saturdayopenInteger
required 1 = open, 0 = closed
saturdaystartString
required Saturday opening time
saturdayendString
required Saturday closing time
leavemessagetimeInteger
required Auto-remove messages from the Unanswered Text window after this period (one day, one week)
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updatecompany" \
--data-urlencode "alwaysopen=1" \
--data-urlencode "sundayopen=1" \
--data-urlencode "sundaystart=example" \
--data-urlencode "sundayend=example" \
--data-urlencode "mondayopen=1" \
--data-urlencode "mondaystart=example" \
--data-urlencode "mondayend=example" \
--data-urlencode "tuesdayopen=1" \
--data-urlencode "tuesdaystart=example" \
--data-urlencode "tuesdayend=example" \
--data-urlencode "wednesdayopen=1" \
--data-urlencode "wednesdaystart=example" \
--data-urlencode "wednesdayend=example" \
--data-urlencode "thursdayopen=1" \
--data-urlencode "thursdaystart=example" \
--data-urlencode "thursdayend=example" \
--data-urlencode "fridayopen=1" \
--data-urlencode "fridaystart=example" \
--data-urlencode "fridayend=example" \
--data-urlencode "saturdayopen=1" \
--data-urlencode "saturdaystart=example" \
--data-urlencode "saturdayend=example" \
--data-urlencode "leavemessagetime=1"
Get company performance report
POST request=getcompanyperformancereport
Returns the company's performance report.
Parameters
requestString
required Set to getcompanyperformancereport
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcompanyperformancereport" \
--data-urlencode "userid=101"
Get departments
POST request=getdepartments
Returns the company's departments.
Parameters
requestString
required Set to getdepartments
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getdepartments"
Add department
POST request=adddepartment
Creates a department.
Parameters
requestString
required Set to adddepartment
departmentString
required Department name
useridInteger
required User ID
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=adddepartment" \
--data-urlencode "department=Example Name" \
--data-urlencode "userid=101"
Update department
POST request=updatedepartment
Renames a department.
Parameters
requestString
required Set to updatedepartment
didInteger
required ID of the department to update
departmentString
required New department name
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=updatedepartment" \
--data-urlencode "did=1" \
--data-urlencode "department=Example Name"
Delete department
POST request=deletedepartment
Deletes a department.
Parameters
requestString
required Set to deletedepartment
didInteger
required ID of the department to delete
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=deletedepartment" \
--data-urlencode "did=1"
Get company local numbers
POST request=getcompanylocalnumbers
Returns the company's local phone numbers.
Parameters
requestString
required Set to getcompanylocalnumbers
Returns: JSON. A detailed response schema for this call is being added; see Responses & errors for the general pattern.
Example request Copy
curl -X POST \
"https://useclientconnect.com/api/clientconnect_v2.aspx" \
-H "apikey: YOUR_API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "request=getcompanylocalnumbers"
Code samples
The same call in the language you are already using, plus recipes for the most common workflows.
A reusable JavaScript helper
Wraps the request pattern once, then every call is a one-liner. Note the defensive error check; see Responses & errors .
JavaScript Copy
async function postSendItByText(params) {
const response = await fetch("https://useclientconnect.com/api/clientconnect_v2.aspx", {
method: "POST",
headers: {
apikey: process.env.SENDITBYTEXT_API_KEY,
"Content-Type": "application/x-www-form-urlencoded",
Accept: "application/json, text/plain, */*"
},
body: new URLSearchParams(params).toString()
});
const raw = await response.text();
try {
const parsed = JSON.parse(raw);
if (parsed?.message && /error|invalid|failed|exceeded/i.test(parsed.message)) {
throw new Error(parsed.message);
}
return parsed;
} catch (err) {
throw new Error(`Send It By Text API error: ${raw}`);
}
}
Recipe: find a contact and send an SMS
JavaScript Copy
// 1. Find the contact
const matches = await postSendItByText({
request: "searchclient",
search: "8135551212"
});
const contact = matches[0];
// 2. Send the text, using the internal ID as cid
await postSendItByText({
request: "sendclienttext",
cid: String(contact.ID),
from: "8135551234",
to: "8135551212",
text: "Thanks for contacting us. We received your request.",
userid: "101"
});
Recipe: create a contact and assign a group
JavaScript Copy
// 1. Create the contact and capture the returned ID
const created = await postSendItByText({
request: "addclient",
fname: "Jane",
lname: "Smith",
mobile: "8135551212",
email: "jane@example.com",
userid: "101"
});
const cid = created.UniqueId;
// 2. Assign the group separately (addclient does not do this reliably)
await postSendItByText({
request: "addcontactgroups",
cid: String(cid),
clientgroups: "42"
});
Python
Python Copy
import os
import requests
url = "https://useclientconnect.com/api/clientconnect_v2.aspx"
headers = {"apikey": os.environ["SENDITBYTEXT_API_KEY"]}
data = {"request": "searchclient", "search": "Jane Smith"}
res = requests.post(url, headers=headers, data=data, timeout=30)
res.raise_for_status()
print(res.json())
PHP
PHP Copy
<?php
$ch = curl_init("https://useclientconnect.com/api/clientconnect_v2.aspx");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["apikey: " . getenv("SENDITBYTEXT_API_KEY")],
CURLOPT_POSTFIELDS => http_build_query([
"request" => "searchclient",
"search" => "Jane Smith"
]),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30
]);
$response = curl_exec($ch);
if ($response === false) {
throw new Exception(curl_error($ch));
}
curl_close($ch);
echo $response;
C#
C# Copy
using System.Net.Http;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post,
"https://useclientconnect.com/api/clientconnect_v2.aspx");
request.Headers.Add("apikey",
Environment.GetEnvironmentVariable("SENDITBYTEXT_API_KEY"));
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> {
{ "request", "searchclient" },
{ "search", "Jane Smith" }
});
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
response.EnsureSuccessStatusCode();
Console.WriteLine(body);