Check the snippet is installed
curl --request POST \
--url https://intentleads.si/api/v1/sites/{code}/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/pricing"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://example.com/pricing'})
};
fetch('https://intentleads.si/api/v1/sites/{code}/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/sites/{code}/verify"
payload = { "url": "https://example.com/pricing" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"installed": true,
"events_last_24h": 214,
"message": null
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "site_not_found",
"message": "No site V9."
}{
"error": "not_set_up",
"message": "This site isn't connected yet."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Check the snippet is installed
Fetches a page of the site and checks the snippet is there, or that it sent visits in the last day.
Free. This doesn’t spend your balance.
POST
/
api
/
v1
/
sites
/
{code}
/
verify
Check the snippet is installed
curl --request POST \
--url https://intentleads.si/api/v1/sites/{code}/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/pricing"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://example.com/pricing'})
};
fetch('https://intentleads.si/api/v1/sites/{code}/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/sites/{code}/verify"
payload = { "url": "https://example.com/pricing" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"installed": true,
"events_last_24h": 214,
"message": null
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "site_not_found",
"message": "No site V9."
}{
"error": "not_set_up",
"message": "This site isn't connected yet."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Authorizations
Headers
Only with an organization key: the workspace to act in (its id; ?workspace=<id> works too). Lanes, leads, exports, lists, websites and webhooks live in workspaces. Without it, an organization key acts in its only workspace, or gets 400 workspace_required (with the list of workspaces) when it has several. Workspace keys don't need it. On keys, team and activity it switches from the organization's own to that workspace's.