Prudai Developer API: nieuwsfeed
Read the LEO news feed of the token user (as in the app). Personal tokens only; never issuable to a service key.
Basis-URL https://api.prudai.com/v1. Inloggen staat in Inloggen, scopes in Scopes en rechten, fouten in Fouten. Overzicht.
| Methode | Pad | Wat het doet | Stand |
|---|---|---|---|
GET | /v1/feed | The LEO news feed, newest day first | Binnenkort |
GET | /v1/feed/{id} | One news item with the article and its citations | Binnenkort |
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.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:feed:read - Goedkeuring:
none, geen extra stap.
Parameters
product
Which feed; default the first of the organisation’s products. Een van:leo,leo-fiscaaltopics
Comma-separated specialisation node ids (legal areas), e.g.fiscaal.btw. max. lengte 2000source
Only items whose source name contains this text (case-insensitive), per page. max. lengte 200limit
standaard:20· min. 1 · max. 50cursor
max. lengte 2000
Antwoorden
| Status | Betekenis |
|---|---|
200 | News items. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, 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). |
404 | Unknown model, source or document. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
curl -s "https://api.prudai.com/v1/feed" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo feed listOne 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.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:feed:read - Goedkeuring:
none, geen extra stap.
Parameters
idverplichtproduct
Een van:leo,leo-fiscaal
Antwoorden
| Status | Betekenis |
|---|---|
200 | The item. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, 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). |
404 | Unknown model, source or document. |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
curl -s "https://api.prudai.com/v1/feed/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo feed get