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.
| Methode | Pad | Wat het doet | Stand |
|---|---|---|---|
GET | /v1/secure-shares | Your Veilig delen links | Binnenkort |
POST | /v1/secure-shares | Send 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 log | Binnenkort |
POST | /v1/secure-shares/{id}/revoke | Revoke a Veilig delen link (a person confirms) | Binnenkort |
POST | /v1/secure-shares/requests | Ask 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
Een van:active,expired,revokedlimit
standaard:100· min. 1 · max. 200
Antwoorden
| Status | Betekenis |
|---|---|
200 | The links. |
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). |
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/secure-shares" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo secure-shares listSend 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
| Status | Betekenis |
|---|---|
201 | Created; the link was mailed (see mail_sent). |
202 | Approval request; a person decides in the Console, then replay the exact request with X-Prudai-Approval. |
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). |
413 | The files are too large (request_too_large). |
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. |
503 | Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged. |
curl -s -X POST "https://api.prudai.com/v1/secure-shares" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo secure-shares createOne 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
idverplicht
The Veilig delen link id.
Antwoorden
| Status | Betekenis |
|---|---|
200 | The link. |
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/secure-shares/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo secure-shares getRevoke 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
idverplicht
The Veilig delen link id.
Antwoorden
| Status | Betekenis |
|---|---|
200 | Revoked. |
202 | Approval request; a person decides in the Console, then replay the exact request with X-Prudai-Approval. |
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 -X POST "https://api.prudai.com/v1/secure-shares/<id>/revoke" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo secure-shares revokeAsk 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_emailverplicht
max. lengte 320recipient_name
max. lengte 200message
max. lengte 2000expires_in_days
min. 1 · max. 90max_files
min. 1 · max. 50lang
Een van:nl,en
Antwoorden
| Status | Betekenis |
|---|---|
201 | Created; the link was mailed (see mail_sent). |
202 | Approval request; a person decides in the Console, then replay the exact request with X-Prudai-Approval. |
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). |
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 -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" }'prudai leo secure-shares requests