Prudai Developer API: secure shares
The operations of this part (Secure shares).
Base URL https://api.prudai.com/v1. Logging in is in Login, scopes in Scopes and permissions, errors in Errors. Overview.
| Method | Path | What it does | State |
|---|---|---|---|
GET | /v1/secure-shares | Your Veilig delen links | Coming soon |
POST | /v1/secure-shares | Send files to an external recipient with a Veilig delen link (a person reviews first) | Coming soon |
GET | /v1/secure-shares/{id} | One Veilig delen link with its files and log | Coming soon |
POST | /v1/secure-shares/{id}/revoke | Revoke a Veilig delen link (a person confirms) | Coming soon |
POST | /v1/secure-shares/requests | Ask an external recipient to upload files (request link; a person reviews first) | Coming soon |
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).
- State: coming soon, not in production yet.
- Scope:
prudai:secure_shares:read - Approval:
none, no extra step.
Parameters
status
One of:active,expired,revokedlimit
default:100· min 1 · max 200
Responses
| Status | Meaning |
|---|---|
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.
- State: coming soon, not in production yet.
- Scope:
prudai:secure_shares:write - Approval:
review, a second person or role approves.
Body
Format: multipart/form-data.
Responses
| Status | Meaning |
|---|---|
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 …).
- State: coming soon, not in production yet.
- Scope:
prudai:secure_shares:read - Approval:
none, no extra step.
Parameters
idrequired
The Veilig delen link id.
Responses
| Status | Meaning |
|---|---|
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.
- State: coming soon, not in production yet.
- Scope:
prudai:secure_shares:write - Approval:
confirm, the user confirms exactly this call.
Parameters
idrequired
The Veilig delen link id.
Responses
| Status | Meaning |
|---|---|
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).
- State: coming soon, not in production yet.
- Scope:
prudai:secure_shares:write - Approval:
review, a second person or role approves.
Body
JSON, required.
recipient_emailrequired
max length 320recipient_name
max length 200message
max length 2000expires_in_days
min 1 · max 90max_files
min 1 · max 50lang
One of:nl,en
Responses
| Status | Meaning |
|---|---|
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