Ga naar inhoud

Prudai Developer API: veilig delen

The token user’s own Veilig delen links (list, create with review, revoke). 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/secure-sharesYour Veilig delen linksBinnenkort
POST/v1/secure-sharesSend files to an external recipient with a Veilig delen link (a person reviews first)Binnenkort
GET/v1/secure-shares/{id}One Veilig delen link with its files and logBinnenkort
POST/v1/secure-shares/{id}/revokeRevoke a Veilig delen link (a person confirms)Binnenkort
POST/v1/secure-shares/requestsAsk an external recipient to upload files (request link; a person reviews first)Binnenkort

Your Veilig delen links

GET /v1/secure-shares

Personal tokens only; the links you created in your organisation (as in app.prudai.com/veilig-delen), newest first, with status (active, expired, revoked), recipient, expiry and download count. The recipient’s link itself is never listed (it is stored as a hash).

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

Parameters

  • status query · string
    Een van: active, expired, revoked
  • limit query · integer
    standaard: 100 · min. 1 · max. 200

Antwoorden

StatusBetekenis
200The links.
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).
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/secure-shares" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (binnenkort)
prudai leo secure-shares list

Send files to an external recipient with a Veilig delen link (a person reviews first)

POST /v1/secure-shares

Personal tokens only; a writing role. Multipart: field meta (JSON: recipient_email, optional recipient_name, message (≤ 2000), expires_in_days (1–90, default 7), max_downloads, allow_upload, lang nl|en) and 0–20 files. The same rules as the app: virus scan, the organisation’s upload restriction (403 uploads_restricted), the recipient opens the link only with a 6-digit code mailed to them, every step in the link’s log. A link to an external address leaves the organisation, so this waits for a review (202 ApprovalRequest; after approval the same call with x-prudai-approval runs once). The answer holds recipient_link (shown once) and mail_sent. A password for the link is not available here (app only).

Agents: credentials (passwords, codes, logins) go only through a share, as a file (never in the message: it is mailed with the link in plain text; a message with credentials is refused, 422 credentials_in_message): one share per named recipient, short expiry; never in mail, chat or output.

  • Stand: binnenkort, nog niet op productie.
  • Scope: prudai:secure_shares:write
  • Goedkeuring: review, een tweede persoon of rol keurt goed.

Body

Formaat: multipart/form-data.

Antwoorden

StatusBetekenis
201Created; the link was mailed (see mail_sent).
202Approval request; a person decides in the Console, then replay the exact request with X-Prudai-Approval.
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).
413The files are too large (request_too_large).
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.
503Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged.
curl
curl -s -X POST "https://api.prudai.com/v1/secure-shares" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (binnenkort)
prudai leo secure-shares create

One Veilig delen link with its files and log

GET /v1/secure-shares/{id}

Personal tokens only; your own links. Files (outbound and uploaded by the recipient) and the audit log (created, code requested, opened, downloaded, revoked …).

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

Parameters

  • id path · string (uuid) verplicht
    The Veilig delen link id.

Antwoorden

StatusBetekenis
200The link.
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/secure-shares/<id>" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (binnenkort)
prudai leo secure-shares get

Revoke a Veilig delen link (a person confirms)

POST /v1/secure-shares/{id}/revoke

Personal tokens only; a writing role, your own links. The recipient can no longer open or upload. Always possible; logged.

  • Stand: binnenkort, nog niet op productie.
  • Scope: prudai:secure_shares:write
  • Goedkeuring: confirm, de gebruiker bevestigt precies deze aanroep.

Parameters

  • id path · string (uuid) verplicht
    The Veilig delen link id.

Antwoorden

StatusBetekenis
200Revoked.
202Approval request; a person decides in the Console, then replay the exact request with X-Prudai-Approval.
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 -X POST "https://api.prudai.com/v1/secure-shares/<id>/revoke" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (binnenkort)
prudai leo secure-shares revoke

Ask an external recipient to upload files (request link; a person reviews first)

POST /v1/secure-shares/requests

Personal tokens only; a writing role. A Veilig delen link without files where the recipient may upload (allow_upload), with the same rules as createSecureShare (6-digit e-mail code, expiry, log, review).

Agents: never put credentials in the message of a request link (it is mailed in plain text; refused with 422 credentials_in_message).

  • Stand: binnenkort, nog niet op productie.
  • Scope: prudai:secure_shares:write
  • Goedkeuring: review, een tweede persoon of rol keurt goed.

Body

JSON, verplicht.

  • recipient_email string (email) verplicht
    max. lengte 320
  • recipient_name string
    max. lengte 200
  • message string
    max. lengte 2000
  • expires_in_days integer
    min. 1 · max. 90
  • max_files integer
    min. 1 · max. 50
  • lang string
    Een van: nl, en

Antwoorden

StatusBetekenis
201Created; the link was mailed (see mail_sent).
202Approval request; a person decides in the Console, then replay the exact request with X-Prudai-Approval.
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).
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 -X POST "https://api.prudai.com/v1/secure-shares/requests" \
-H "Authorization: Bearer $PRUDAI_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"recipient_email": "naam@voorbeeld.nl",
"recipient_name": "string",
"message": "string",
"expires_in_days": 1,
"max_files": 1,
"lang": "nl"
}'
CLI (binnenkort)
prudai leo secure-shares requests