curl --request GET \
--url https://api.degroshi.com/v1/changes \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.degroshi.com/v1/changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.degroshi.com/v1/changes"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"has_more": true,
"items": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"op": "upsert",
"type": "transaction",
"data": {}
}
],
"next_cursor": "eyJjIjoiZXlKMklqb3hMQ0p6SWpvaU..."
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}List what changed
What changed in the space since a cursor, oldest first: keep a faithful copy by polling, deletions included. Without cursor the feed starts from the beginning (every object, then the changes); keep next_cursor from every page and send it next time, and while has_more is true read again right away. Each item is an object (transaction, account, category, budget, recurring_transaction) with op upsert and data, the object as its list endpoint returns it, or delete. Changes come in commit order, so a slow write never lands behind a cursor already read. Any read scope opens this route, and each type needs the scope that reads it. 410 CHANGES_RESYNC_REQUIRED means the cursor can’t continue (access changed, 180 days passed, other types): read again without a cursor and replace the copy.
curl --request GET \
--url https://api.degroshi.com/v1/changes \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.degroshi.com/v1/changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.degroshi.com/v1/changes"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"has_more": true,
"items": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"op": "upsert",
"type": "transaction",
"data": {}
}
],
"next_cursor": "eyJjIjoiZXlKMklqb3hMQ0p6SWpvaU..."
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}{
"error": {
"code": "AUTH_001",
"message": "Error description varies by error code",
"correlation_id": "<string>",
"details": {}
},
"success": true
}