curl --request PUT \
--url https://app.leadconduit.com/credentials/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "5fd4371e940df5a34a3888b2",
"name": "<string>",
"package": "<string>",
"type": "user",
"username": "<string>",
"password": "<string>"
}
'import requests
url = "https://app.leadconduit.com/credentials/{id}"
payload = {
"id": "5fd4371e940df5a34a3888b2",
"name": "<string>",
"package": "<string>",
"type": "user",
"username": "<string>",
"password": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '5fd4371e940df5a34a3888b2',
name: '<string>',
package: '<string>',
type: 'user',
username: '<string>',
password: '<string>'
})
};
fetch('https://app.leadconduit.com/credentials/{id}', 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/credentials/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '5fd4371e940df5a34a3888b2',
'name' => '<string>',
'package' => '<string>',
'type' => 'user',
'username' => '<string>',
'password' => '<string>'
]),
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/credentials/{id}"
payload := strings.NewReader("{\n \"id\": \"5fd4371e940df5a34a3888b2\",\n \"name\": \"<string>\",\n \"package\": \"<string>\",\n \"type\": \"user\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://app.leadconduit.com/credentials/{id}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"5fd4371e940df5a34a3888b2\",\n \"name\": \"<string>\",\n \"package\": \"<string>\",\n \"type\": \"user\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/credentials/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"5fd4371e940df5a34a3888b2\",\n \"name\": \"<string>\",\n \"package\": \"<string>\",\n \"type\": \"user\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "5fd4371e940df5a34a3888b2",
"name": "<string>",
"package": "<string>",
"type": "user",
"username": "<string>",
"password": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Update a credential
Update an existing credential matching the specified ID. type and package are
immutable — changing either returns a 422. Rotating a secret is an update: send the
new value (for example a new secret_access_key on an aws_sigv4 credential) and it
propagates to already-deployed flows without a redeploy.
curl --request PUT \
--url https://app.leadconduit.com/credentials/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "5fd4371e940df5a34a3888b2",
"name": "<string>",
"package": "<string>",
"type": "user",
"username": "<string>",
"password": "<string>"
}
'import requests
url = "https://app.leadconduit.com/credentials/{id}"
payload = {
"id": "5fd4371e940df5a34a3888b2",
"name": "<string>",
"package": "<string>",
"type": "user",
"username": "<string>",
"password": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '5fd4371e940df5a34a3888b2',
name: '<string>',
package: '<string>',
type: 'user',
username: '<string>',
password: '<string>'
})
};
fetch('https://app.leadconduit.com/credentials/{id}', 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/credentials/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'id' => '5fd4371e940df5a34a3888b2',
'name' => '<string>',
'package' => '<string>',
'type' => 'user',
'username' => '<string>',
'password' => '<string>'
]),
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/credentials/{id}"
payload := strings.NewReader("{\n \"id\": \"5fd4371e940df5a34a3888b2\",\n \"name\": \"<string>\",\n \"package\": \"<string>\",\n \"type\": \"user\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://app.leadconduit.com/credentials/{id}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"5fd4371e940df5a34a3888b2\",\n \"name\": \"<string>\",\n \"package\": \"<string>\",\n \"type\": \"user\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.leadconduit.com/credentials/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"5fd4371e940df5a34a3888b2\",\n \"name\": \"<string>\",\n \"package\": \"<string>\",\n \"type\": \"user\",\n \"username\": \"<string>\",\n \"password\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "5fd4371e940df5a34a3888b2",
"name": "<string>",
"package": "<string>",
"type": "user",
"username": "<string>",
"password": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
LeadConduit uses HTTP Basic Authentication
with the username API and your API key as the password.
For example: API:1f1b96c9150d8050e858c043d543bb4eadae0e6f'
Path Parameters
ID of the credential to update 24 character alpha-numeric BSON identifier
^[0-9a-fA-F]{24}$"5fd4371e940df5a34a3888b2"
Body
Create a new credential
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Used by integrations with external services that require authentication.
Masking: Some credential types have secret fields stripped from list, show, and delete responses, and from changelog entries read back through the API:
| Type / package | Field omitted on read |
|---|---|
type integration_platform_credential | signing_secret |
type aws_sigv4 | secret_access_key |
package leadconduit-infutordata | token |
All other fields (name, type, package, instance_id, access_key_id, region, etc.)
remain visible. For the two types above, create responses return the full
credential once, and update responses return the secret once only when the
request supplied a new value; a blank or omitted secret on update keeps the
stored value. leadconduit-infutordata credentials always mask update responses
and may return some identifier fields partially masked. Other user, token,
and OAuth credentials are not masked on read.
The unique identifier for a credential
^[0-9a-fA-F]{24}$"5fd4371e940df5a34a3888b2"
Friendly name for this credential
The name of the LeadConduit integration package to which this credential belongs
The credential type
user The username to use for basic authentication
1The password to use for basic authentication
1Response
OK
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Used by integrations with external services that require authentication.
Masking: Some credential types have secret fields stripped from list, show, and delete responses, and from changelog entries read back through the API:
| Type / package | Field omitted on read |
|---|---|
type integration_platform_credential | signing_secret |
type aws_sigv4 | secret_access_key |
package leadconduit-infutordata | token |
All other fields (name, type, package, instance_id, access_key_id, region, etc.)
remain visible. For the two types above, create responses return the full
credential once, and update responses return the secret once only when the
request supplied a new value; a blank or omitted secret on update keeps the
stored value. leadconduit-infutordata credentials always mask update responses
and may return some identifier fields partially masked. Other user, token,
and OAuth credentials are not masked on read.
The unique identifier for a credential
^[0-9a-fA-F]{24}$"5fd4371e940df5a34a3888b2"
Friendly name for this credential
The name of the LeadConduit integration package to which this credential belongs
The credential type
user The username to use for basic authentication
1The password to use for basic authentication
1