Get a workspace's budget
curl --request GET \
--url https://intentleads.si/api/v1/workspaces/{id}/limits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, 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."
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "not_your_workspace",
"message": "That workspace isn't one of this organization's."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Get a workspace's budget
A workspace’s monthly budget in dollars, covering intent leads, search results and website visitors together, and what it spent, holds and has left this billing month. budget_usd null means no budget. Use your organization’s key. (The path keeps its old name: the budget replaced per-source limits in people.)
Free. This doesn’t spend your balance.
GET
/
api
/
v1
/
workspaces
/
{id}
/
limits
Get a workspace's budget
curl --request GET \
--url https://intentleads.si/api/v1/workspaces/{id}/limits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, 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."
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "not_your_workspace",
"message": "That workspace isn't one of this organization's."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Authorizations
Response
The budget.