curl --location 'https://us-prod.notte.cc/functions/b4cde4a8-4dce-4c21-bf8c-251b6353b04c/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "b4cde4a8-4dce-4c21-bf8c-251b6353b04c",
"variables": {
"court_category": "",
"case_type": "Pidana Khusus",
"year": 2025,
"max_records": 10,
"page_size": 5,
"start_page": 1,
"max_pages": 25
}
}'
{
"cases": [
{
"id": "<string>",
"url": "<string>",
"year": 0,
"clerk": "<string>",
"court": "<string>",
"level": "<string>",
"notes": "<string>",
"title": "<string>",
"isHeld": true,
"judges": "<string>",
"public": true,
"parties": "<string>",
"caseType": "<string>",
"category": "<string>",
"createdAt": "<string>",
"mainJudge": "<string>",
"updatedAt": "<string>",
"punishment": "<string>",
"verdictDate": "<string>",
"registerDate": "<string>",
"courtCategory": "<string>",
"classification": "<string>",
"legallyBinding": true,
"registerNumber": "<string>",
"relatedCaseIds": [
"<string>"
],
"subClassification": "<string>"
}
],
"count": 0,
"nextPage": 0,
"sourceTotal": 0,
"pagesFetched": 0
}