curl --request GET \
--url https://api.app.lastaccountingcompany.com/portal/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.app.lastaccountingcompany.com/portal/activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.app.lastaccountingcompany.com/portal/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.app.lastaccountingcompany.com/portal/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.app.lastaccountingcompany.com/portal/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.app.lastaccountingcompany.com/portal/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"version": 2,
"view": "timeline",
"revision": "<string>",
"columns": [
{}
],
"rows": [
{}
],
"row_window": {},
"freshness": "current",
"coverage": {},
"counts": {},
"sort": "<string>",
"can_attach_evidence": true,
"unavailable_reason": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Get the customer Transactions timeline
Returns one server-paged view over settled money movements — history through yesterday (Europe/Helsinki), never today or the future — and, for mirror service, authority-covered financial-account movements outside the current footed import. Full-service books rows are actual bank/card movements only: ledger-only journals (invoices, payroll) are accounting, not movements, and live on their own surfaces. This is an orientation view, not a general-ledger API: movements do not enter GL, VAT, Home metrics, Analytics, close, or filing figures. Use /sheet?tab=books or MCP get_books for canonical accounting rows. version=2 is required; the v1 presentation is deleted. Full-service page 0 carries available_sources (typed keys: conn:<id> per connection, else the transport token) for the source filter.
curl --request GET \
--url https://api.app.lastaccountingcompany.com/portal/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.app.lastaccountingcompany.com/portal/activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.app.lastaccountingcompany.com/portal/activity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.app.lastaccountingcompany.com/portal/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.app.lastaccountingcompany.com/portal/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.app.lastaccountingcompany.com/portal/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.app.lastaccountingcompany.com/portal/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"version": 2,
"view": "timeline",
"revision": "<string>",
"columns": [
{}
],
"rows": [
{}
],
"row_window": {},
"freshness": "current",
"coverage": {},
"counts": {},
"sort": "<string>",
"can_attach_evidence": true,
"unavailable_reason": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Authorizations
Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....
Query Parameters
Period selector: YYYY-MM, YYYY-Qn, YYYY, all, this_month, or last_6_months.
Target company. Optional — API keys are pinned to one company, and single-company sessions default to it.
Contract version. Must be 2.
2 One view per request. timeline interleaves newer movements above imported books for mirror service; financial_activity is mirror only.
timeline, books, financial_activity One served source key from page 0's available_sources (conn:<id> or a transport token). Full-service books only; mirrors refuse it.
Rows per page. Defaults to 50. Maximum 200.
1 <= x <= 200Row offset for pagination.
x >= 0Books-view row ordering. The timeline and financial views are served newest-first only.
newest, oldest, amount, category Canonical dimension axis ID. Must be paired with dimension_value_id.
Canonical value ID, or __unallocated__. Must be paired with dimension_axis_id.
Response
One activity view page with server-owned counts and paging.
One version=2 activity view page. rows carry kind: book_entry (decorated book rows) or kind: financial_movement (signed raw movements outside the imported-books boundary).
2 timeline, books, financial_activity Opaque page-coherence token; clients reset to page zero when it changes.
Whether this page's rows are the tenant's present accounting, read from the same snapshot as rows. current is positive proof: no committed change the Books view still owes sits in the feed. pending means at least one does — ordinary between-pass lag looks like this, and so does a stalled projector; the rows are the last stamped snapshot either way. unknown means the bounded read could not decide and is not a currency claim. Absent when the page is not served from the projection.
current, pending, unknown Provider-neutral authority, book-boundary, source, account, and freshness facts.
Per-view authority counts.
Show child attributes
Show child attributes
Whether the authenticated viewer may attach evidence — one page fact (the actor's evidence write scope), uniform across rows, tenants, and service modes. Rows carry no per-row evidence capability stamps.
Present only while a mirror's imported books have no verified boundary yet; the page then carries zero rows and no inferred boundary. The one value is imported_books_boundary_unavailable, which the portal renders as the same known state as the statements 409.