Create Redirect
The “Create Redirect” API Allows adding a new url redirect to the system. Use this endpoint to create a url redirect with the specified details. Ensure that the required information is provided in the request payload.
POST
/
funnels
/
lookup
/
redirect
Create Redirect
curl --request POST \
--url https://services.leadconnectorhq.com/funnels/lookup/redirect \
--header 'Content-Type: application/json' \
--data '
{
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "example.com",
"path": "/Hello",
"target": "https://www.google.com",
"action": "URL"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
locationId: '6p2RxpgtMKQwO3E6IUaT',
domain: 'example.com',
path: '/Hello',
target: 'https://www.google.com',
action: 'URL'
})
};
fetch('https://services.leadconnectorhq.com/funnels/lookup/redirect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/funnels/lookup/redirect"
payload = {
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "example.com",
"path": "/Hello",
"target": "https://www.google.com",
"action": "URL"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "6p2RxpgtMKQwO3E6IUaT",
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "www.example.com",
"path": "/old-path",
"pathLowercase": "/old-path",
"type": "Permanent",
"target": "https://www.example.com/new-path",
"action": "url"
}
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Body
application/json
Last modified on March 8, 2026
Was this page helpful?
Create Redirect
curl --request POST \
--url https://services.leadconnectorhq.com/funnels/lookup/redirect \
--header 'Content-Type: application/json' \
--data '
{
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "example.com",
"path": "/Hello",
"target": "https://www.google.com",
"action": "URL"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
locationId: '6p2RxpgtMKQwO3E6IUaT',
domain: 'example.com',
path: '/Hello',
target: 'https://www.google.com',
action: 'URL'
})
};
fetch('https://services.leadconnectorhq.com/funnels/lookup/redirect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/funnels/lookup/redirect"
payload = {
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "example.com",
"path": "/Hello",
"target": "https://www.google.com",
"action": "URL"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "6p2RxpgtMKQwO3E6IUaT",
"locationId": "6p2RxpgtMKQwO3E6IUaT",
"domain": "www.example.com",
"path": "/old-path",
"pathLowercase": "/old-path",
"type": "Permanent",
"target": "https://www.example.com/new-path",
"action": "url"
}
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}