Skip to content

Prudai Developer API: feed

The operations of this part (Feed).

Base URL https://api.prudai.com/v1. Logging in is in Login, scopes in Scopes and permissions, errors in Errors. Overview.

MethodPathWhat it doesState
GET/v1/feedThe LEO news feed, newest day firstComing soon
GET/v1/feed/{id}One news item with the article and its citationsComing soon

The LEO news feed, newest day first

GET /v1/feed

Personal tokens only; the feed of LEO or LEO Fiscaal as the app’s “Voor jou” day overview: per day (Europe/Amsterdam) and per legal area (group), with the same ranking, visibility rules and cursors as the app. Each item has source (name and link to the original), topics, group, day, is_new, and url (the original source; appUrl is the item in LEO). topics filters on specialisation node ids (comma-separated; ancestor or descendant matches); source filters on the source name (per page). Office posts, comments and Nuttig/Bewaren stay in the app. 404 feed_not_available when the organisation has neither LEO nor LEO Fiscaal; 403 feed_disabled when the owner switched the feed off.

  • State: coming soon, not in production yet.
  • Scope: prudai:feed:read
  • Approval: none, no extra step.

Parameters

  • product query · string
    Which feed; default the first of the organisation’s products. One of: leo, leo-fiscaal
  • topics query · string
    Comma-separated specialisation node ids (legal areas), e.g. fiscaal.btw. max length 2000
  • source query · string
    Only items whose source name contains this text (case-insensitive), per page. max length 200
  • limit query · integer
    default: 20 · min 1 · max 50
  • cursor query · string
    max length 2000

Responses

StatusMeaning
200News items.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution).
404Unknown model, source or document.
422Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body).
429Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded.
curl
curl -s "https://api.prudai.com/v1/feed" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo feed list

One news item with the article and its citations

GET /v1/feed/{id}

Personal tokens only. The item as in LEO: article_md (the written article), citations (label and URL of each source) and url (the original source). 404 feed_item_not_found when it is not visible to you.

  • State: coming soon, not in production yet.
  • Scope: prudai:feed:read
  • Approval: none, no extra step.

Parameters

  • id path · string (uuid) required
  • product query · string
    One of: leo, leo-fiscaal

Responses

StatusMeaning
200The item.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution).
404Unknown model, source or document.
429Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded.
curl
curl -s "https://api.prudai.com/v1/feed/<id>" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo feed get