List rule budgets
curl --request GET \
--url https://api.getlurk.com/v1/budgets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/budgets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/budgets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"rule": {
"id": "<string>",
"key": "<string>",
"name": "<string>"
},
"unit": "<string>",
"amount": 123,
"per": "day",
"used": 1,
"window_start": "2023-11-07T05:31:56Z",
"window_end": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Budgets
List rule budgets
What each live rule’s budgets have given in the window they are in now (‘5,000 Beans a week’), newest rule first, with the window’s start and end in the project’s time zone. A rule’s budgets are never split across pages. nearly_used keeps those 80% or more used.
GET
/
v1
/
budgets
List rule budgets
curl --request GET \
--url https://api.getlurk.com/v1/budgets \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getlurk.com/v1/budgets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/budgets"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"rule": {
"id": "<string>",
"key": "<string>",
"name": "<string>"
},
"unit": "<string>",
"amount": 123,
"per": "day",
"used": 1,
"window_start": "2023-11-07T05:31:56Z",
"window_end": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"next_cursor": "<string>"
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}