Ga naar inhoud

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.

MethodePadWat het doetStand
GET/v1/feedThe LEO news feed, newest day firstBinnenkort
GET/v1/feed/{id}One news item with the article and its citationsBinnenkort

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

Antwoorden

StatusBetekenis
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 (binnenkort)
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.

  • Stand: binnenkort, nog niet op productie.
  • Scope: prudai:feed:read
  • Goedkeuring: none, geen extra stap.

Parameters

  • id path · string (uuid) verplicht
  • product query · string
    Een van: leo, leo-fiscaal

Antwoorden

StatusBetekenis
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 (binnenkort)
prudai leo feed get