Set a workspace's budget
curl --request PUT \
--url https://intentleads.si/api/v1/workspaces/{id}/limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"budget_usd": 500
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({budget_usd: 500})
};
fetch('https://intentleads.si/api/v1/workspaces/{id}/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/{id}/limits"
payload = { "budget_usd": 500 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
"budget_usd": 500,
"spent_usd": 43,
"held_usd": 0,
"left_usd": 457,
"note": "Dollars per billing month, across intent leads, search results and website visitors. budget_usd null means no budget."
}
Set a workspace's budget
Sets or removes a workspace’s monthly budget in dollars (0 to 1,000,000; null removes it). It covers intent leads, search results and website visitors together and starts again each billing month. Once it’s used, the workspace’s exports stop at what’s left and its websites pause until next month; the workspace and your organization get an email. PATCH and POST do the same.
Admin key required. Standard keys get 403 admin_key_required.
PUT
/
api
/
v1
/
workspaces
/
{id}
/
limits
Set a workspace's budget
curl --request PUT \
--url https://intentleads.si/api/v1/workspaces/{id}/limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"budget_usd": 500
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({budget_usd: 500})
};
fetch('https://intentleads.si/api/v1/workspaces/{id}/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/{id}/limits"
payload = { "budget_usd": 500 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
"budget_usd": 500,
"spent_usd": 43,
"held_usd": 0,
"left_usd": 457,
"note": "Dollars per billing month, across intent leads, search results and website visitors. budget_usd null means no budget."
}
Authorizations
Body
application/json
Response
The budget now.