Skip to content

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.

MethodPathWhat it doesState
GET/v1/secure-sharesYour Veilig delen linksComing soon
POST/v1/secure-sharesSend 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 logComing soon
POST/v1/secure-shares/{id}/revokeRevoke a Veilig delen link (a person confirms)Coming soon
POST/v1/secure-shares/requestsAsk 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 query · string
    One of: active, expired, revoked
  • limit query · integer
    default: 100 · min 1 · max 200

Responses

StatusMeaning
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 (coming soon)
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.

  • 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

StatusMeaning
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 (coming soon)
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 …).

  • State: coming soon, not in production yet.
  • Scope: prudai:secure_shares:read
  • Approval: none, no extra step.

Parameters

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

Responses

StatusMeaning
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 (coming soon)
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.

  • State: coming soon, not in production yet.
  • Scope: prudai:secure_shares:write
  • Approval: confirm, the user confirms exactly this call.

Parameters

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

Responses

StatusMeaning
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 (coming soon)
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).

  • State: coming soon, not in production yet.
  • Scope: prudai:secure_shares:write
  • Approval: review, a second person or role approves.

Body

JSON, required.

  • recipient_email string (email) required
    max length 320
  • recipient_name string
    max length 200
  • message string
    max length 2000
  • expires_in_days integer
    min 1 · max 90
  • max_files integer
    min 1 · max 50
  • lang string
    One of: nl, en

Responses

StatusMeaning
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 (coming soon)
prudai leo secure-shares requests