Create a source invitation
curl --request POST \
--url https://app.leadconduit.com/invitations/source \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "mike.jones@example.com"
}
'import requests
url = "https://app.leadconduit.com/invitations/source"
payload = { "email": "mike.jones@example.com" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'mike.jones@example.com'})
};
fetch('https://app.leadconduit.com/invitations/source', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.leadconduit.com/invitations/source",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'mike.jones@example.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.leadconduit.com/invitations/source"
payload := strings.NewReader("{\n \"email\": \"mike.jones@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.leadconduit.com/invitations/source")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"mike.jones@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/invitations/source")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"mike.jones@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Invitation was sent successfully",
"entity": {
"name": "A Corporation",
"module_ids": [
"<string>"
],
"id": "5fd4371e940df5a34a3888b2",
"description": "<string>",
"standard": false,
"account": true,
"pending": true,
"connected": "seller",
"connected_account_id": "5fd4371e940df5a34a3888b2",
"deprecated": false,
"see": "5fd4371e940df5a34a3888b2",
"field_suffix": "acorp",
"invitation_id": "5fd4371e940df5a34a3888b2",
"invitation_expires_at": "2025-11-07T00:00:00Z",
"expired": false,
"flow_ids": [
"5fd4371e940df5a34a3888b2"
],
"logo_url": "<string>",
"time_zone": "America/Los Angeles",
"trustedform_certified_vendor": true,
"website": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "Invitation was sent successfully",
"entity": {
"name": "A Corporation",
"module_ids": [
"<string>"
],
"id": "5fd4371e940df5a34a3888b2",
"description": "<string>",
"standard": false,
"account": true,
"pending": true,
"connected": "seller",
"connected_account_id": "5fd4371e940df5a34a3888b2",
"deprecated": false,
"see": "5fd4371e940df5a34a3888b2",
"field_suffix": "acorp",
"invitation_id": "5fd4371e940df5a34a3888b2",
"invitation_expires_at": "2025-11-07T00:00:00Z",
"expired": false,
"flow_ids": [
"5fd4371e940df5a34a3888b2"
],
"logo_url": "<string>",
"time_zone": "America/Los Angeles",
"trustedform_certified_vendor": true,
"website": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"status": 400,
"type": "Bad Request",
"title": "LCError",
"detail": "Invalid entity ID format",
"errors": [
{
"pointer": "#/entity_id",
"message": "Entity ID must be valid"
}
]
}{
"error": "not authorized"
}{
"status": 422,
"type": "Unprocessable Entity",
"title": "LCError",
"detail": "Missing required parameters",
"errors": [
{
"pointer": "#/email",
"message": "Either email or entity_id is required"
}
]
}Invitations
Create a source invitation
Send an invitation to Account’s Team and return a source pending entity
POST
/
invitations
/
source
Create a source invitation
curl --request POST \
--url https://app.leadconduit.com/invitations/source \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "mike.jones@example.com"
}
'import requests
url = "https://app.leadconduit.com/invitations/source"
payload = { "email": "mike.jones@example.com" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'mike.jones@example.com'})
};
fetch('https://app.leadconduit.com/invitations/source', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.leadconduit.com/invitations/source",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'mike.jones@example.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.leadconduit.com/invitations/source"
payload := strings.NewReader("{\n \"email\": \"mike.jones@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.leadconduit.com/invitations/source")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"mike.jones@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/invitations/source")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"mike.jones@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Invitation was sent successfully",
"entity": {
"name": "A Corporation",
"module_ids": [
"<string>"
],
"id": "5fd4371e940df5a34a3888b2",
"description": "<string>",
"standard": false,
"account": true,
"pending": true,
"connected": "seller",
"connected_account_id": "5fd4371e940df5a34a3888b2",
"deprecated": false,
"see": "5fd4371e940df5a34a3888b2",
"field_suffix": "acorp",
"invitation_id": "5fd4371e940df5a34a3888b2",
"invitation_expires_at": "2025-11-07T00:00:00Z",
"expired": false,
"flow_ids": [
"5fd4371e940df5a34a3888b2"
],
"logo_url": "<string>",
"time_zone": "America/Los Angeles",
"trustedform_certified_vendor": true,
"website": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"message": "Invitation was sent successfully",
"entity": {
"name": "A Corporation",
"module_ids": [
"<string>"
],
"id": "5fd4371e940df5a34a3888b2",
"description": "<string>",
"standard": false,
"account": true,
"pending": true,
"connected": "seller",
"connected_account_id": "5fd4371e940df5a34a3888b2",
"deprecated": false,
"see": "5fd4371e940df5a34a3888b2",
"field_suffix": "acorp",
"invitation_id": "5fd4371e940df5a34a3888b2",
"invitation_expires_at": "2025-11-07T00:00:00Z",
"expired": false,
"flow_ids": [
"5fd4371e940df5a34a3888b2"
],
"logo_url": "<string>",
"time_zone": "America/Los Angeles",
"trustedform_certified_vendor": true,
"website": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"status": 400,
"type": "Bad Request",
"title": "LCError",
"detail": "Invalid entity ID format",
"errors": [
{
"pointer": "#/entity_id",
"message": "Entity ID must be valid"
}
]
}{
"error": "not authorized"
}{
"status": 422,
"type": "Unprocessable Entity",
"title": "LCError",
"detail": "Missing required parameters",
"errors": [
{
"pointer": "#/email",
"message": "Either email or entity_id is required"
}
]
}Authorizations
LeadConduit uses HTTP Basic Authentication
with the username API and your API key as the password.
For example: API:1f1b96c9150d8050e858c043d543bb4eadae0e6f'
Body
application/json
Create a new source invitation
- Invitation by Email
- Invitation by Entity ID
Email address to send invitation to
Example:
"mike.jones@example.com"
Response
OK - Invitation already exists, returning existing entity
⌘I