Prudai Developer API: spraakmemo's
Own audio recordings, their transcription and assignment within the person’s current rights. Personal credentials only; service keys never receive these scopes.
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/voice-memos | List own voice memos | Binnenkort |
POST | /v1/voice-memos | Upload an own voice memo | Binnenkort |
GET | /v1/voice-memos/{id} | Read an own voice memo and transcript | Binnenkort |
PATCH | /v1/voice-memos/{id} | Assign or move an own voice memo | Binnenkort |
DELETE | /v1/voice-memos/{id} | Move an own voice memo to trash | Binnenkort |
POST | /v1/voice-memos/{id}/restore | Restore an own voice memo | Binnenkort |
GET | /v1/voice-memos/{id}/suggestions | Suggest destinations for an own voice memo | Binnenkort |
List own voice memos
GET /v1/voice-memos
Newest first, never another person’s memo. Unassigned is the default inbox filter. Lists omit transcripts; get a memo for its text. Personal credentials only (personal token or Keycloak user token); a service key is refused. VOICE_MEMOS_V1_ENABLED=false returns 404 before authentication or body parsing.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:voice_memos:read - Goedkeuring:
none, geen extra stap.
Parameters
status
Een van:unassigned,assigned,all· standaard:"unassigned"limit
standaard:20· min. 1 · max. 100cursor
max. lengte 200
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
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 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
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 "https://api.prudai.com/v1/voice-memos" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo voice-memos list[ { "id": "00000000-0000-4000-8000-000000000000", "status": "uploaded", "sha256": "string", "byte_size": 1, "duration_ms": 1, "target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" }, "options": { "summary": true, "knowledge_base": true, "cato_note": false, "cato_soort": "ACHTERGROND", "cato_target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" } }, "summary": "string", "transcript": "string", "created_at": "2026-11-05T09:30:00.000Z", "updated_at": "2026-11-05T09:30:00.000Z", "assigned_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z", "would_upload": false }]Upload an own voice memo
POST /v1/voice-memos
One audio file in multipart field file (.m4a, .webm, .mp3, .wav, .ogg, .aac, .flac, .opus or .mp4). sha256 hashes the received bytes. A required Idempotency-Key is unique per organisation and person: retrying returns the original memo (200) without another upload; changed bytes or arguments return 422 idempotency_key_reused. The personal inbox is an existing own LEO project named Transcribe, otherwise one private project named Spraakmemo’s. A LEO/ORDO target uploads directly there and is assigned. CRM targets retain audio in the personal inbox. Processing uses the existing EU transcription route. dryRun returns a preview with would_upload and stores nothing. Personal credentials only (personal token or Keycloak user token); a service key is refused. VOICE_MEMOS_V1_ENABLED=false returns 404 before authentication or body parsing.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:voice_memos:write - Goedkeuring:
none, geen extra stap. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op. - Idempotentie: stuur
Idempotency-Keymee; dezelfde sleutel met dezelfde body voert de actie niet twee keer uit.
Parameters
Idempotency-Keyverplicht
min. lengte 8 · max. lengte 255 · patroon^[\x21-\x7E]+$dryRun
Validate and preview the effect without changing anything. Een van:true,false
Body
Formaat: multipart/form-data.
Antwoorden
| Status | Betekenis |
|---|---|
200 | Idempotency replay, or a validation-only upload preview with no stored memo. |
201 | Task envelope with the result. |
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 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
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/voice-memos" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Idempotency-Key: $(uuidgen)"prudai leo voice-memos createRead an own voice memo and transcript
GET /v1/voice-memos/{id}
The RAG document status maps completed to ready, failed to failed and pending processing to transcribing; still processing 10 minutes after the document’s last change is failed, and a late transcript turns it back into ready. Assigned memos retain assigned status. The transcript is read with the user’s current project access. A short Dutch summary is generated lazily when ready and cached. Personal credentials only (personal token or Keycloak user token); a service key is refused. VOICE_MEMOS_V1_ENABLED=false returns 404 before authentication or body parsing.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:voice_memos:read - Goedkeuring:
none, geen extra stap.
Parameters
idverplicht
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
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 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
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. |
Velden in data (200)
id
kannullzijnstatus
Een van:uploaded,transcribing,ready,assigned,failedsha256
patroon^[a-f0-9]{64}$byte_size
min. 0duration_ms
min. 0 · kannullzijntarget
kannullzijnoptionsoptions.summary
standaard:trueoptions.knowledge_base
standaard:trueoptions.cato_note
standaard:falseoptions.cato_soort
Een van:GESPREK,ACHTERGROND· standaard:"ACHTERGROND"options.cato_target
A CRM record requires subtype; only a CRM record accepts subtype. ORDO link_id is the corresponding LEO dossier-project UUID.options.cato_target.link_type
Een van:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idoptions.cato_target.subtype
Een van:company,person,opportunitysummary
kannullzijntranscript
Only returned by getVoiceMemo. kannullzijncreated_at
kannullzijnupdated_at
kannullzijnassigned_at
kannullzijndeleted_at
kannullzijnwould_upload
Only in dryRun previews.
curl -s "https://api.prudai.com/v1/voice-memos/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo voice-memos get{ "id": "00000000-0000-4000-8000-000000000000", "status": "uploaded", "sha256": "string", "byte_size": 1, "duration_ms": 1, "target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" }, "options": { "summary": true, "knowledge_base": true, "cato_note": false, "cato_soort": "ACHTERGROND", "cato_target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" } }, "summary": "string", "transcript": "string", "created_at": "2026-11-05T09:30:00.000Z", "updated_at": "2026-11-05T09:30:00.000Z", "assigned_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z", "would_upload": false}Assign or move an own voice memo
PATCH /v1/voice-memos/{id}
Checks current write access on each target. LEO/ORDO copy the original plus an optional Markdown summary and transcript, then soft-delete the prior audio into recoverable trash. An ORDO link_id is its LEO dossier-project UUID, not the external ORDO dossier UUID. Repeating an identical assignment is idempotent. CRM writes use the existing delegated prepare/apply path; only summary and LEO project/document references enter CRM, never audio or the full transcript. CRM targets require staff and current CRM rights. options.cato_note on a project assignment also writes to options.cato_target. summary and knowledge_base default true; cato_note defaults false; cato_soort defaults ACHTERGROND. Personal credentials only (personal token or Keycloak user token); a service key is refused. VOICE_MEMOS_V1_ENABLED=false returns 404 before authentication or body parsing.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:voice_memos:write - Goedkeuring:
none, geen extra stap. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op.
Parameters
idverplichtdryRun
Validate and preview the effect without changing anything. Een van:true,false
Body
JSON, verplicht.
targetverplicht
A CRM record requires subtype; only a CRM record accepts subtype. ORDO link_id is the corresponding LEO dossier-project UUID.target.link_typeverplicht
Een van:leo-project,ordo-dossier,cato-recordtarget.link_idverplichttarget.subtype
Een van:company,person,opportunityoptionsoptions.summary
standaard:trueoptions.knowledge_base
standaard:trueoptions.cato_note
standaard:falseoptions.cato_soort
Een van:GESPREK,ACHTERGROND· standaard:"ACHTERGROND"options.cato_target
A CRM record requires subtype; only a CRM record accepts subtype. ORDO link_id is the corresponding LEO dossier-project UUID.options.cato_target.link_typeverplicht
Een van:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idverplichtoptions.cato_target.subtype
Een van:company,person,opportunity
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
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 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
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. |
Velden in data (200)
id
kannullzijnstatus
Een van:uploaded,transcribing,ready,assigned,failedsha256
patroon^[a-f0-9]{64}$byte_size
min. 0duration_ms
min. 0 · kannullzijntarget
kannullzijnoptionsoptions.summary
standaard:trueoptions.knowledge_base
standaard:trueoptions.cato_note
standaard:falseoptions.cato_soort
Een van:GESPREK,ACHTERGROND· standaard:"ACHTERGROND"options.cato_target
A CRM record requires subtype; only a CRM record accepts subtype. ORDO link_id is the corresponding LEO dossier-project UUID.options.cato_target.link_type
Een van:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idoptions.cato_target.subtype
Een van:company,person,opportunitysummary
kannullzijntranscript
Only returned by getVoiceMemo. kannullzijncreated_at
kannullzijnupdated_at
kannullzijnassigned_at
kannullzijndeleted_at
kannullzijnwould_upload
Only in dryRun previews.
curl -s -X PATCH "https://api.prudai.com/v1/voice-memos/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" }, "options": { "summary": true, "knowledge_base": true, "cato_note": false, "cato_soort": "ACHTERGROND", "cato_target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" } } }'prudai leo voice-memos update{ "id": "00000000-0000-4000-8000-000000000000", "status": "uploaded", "sha256": "string", "byte_size": 1, "duration_ms": 1, "target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" }, "options": { "summary": true, "knowledge_base": true, "cato_note": false, "cato_soort": "ACHTERGROND", "cato_target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" } }, "summary": "string", "transcript": "string", "created_at": "2026-11-05T09:30:00.000Z", "updated_at": "2026-11-05T09:30:00.000Z", "assigned_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z", "would_upload": false}Move an own voice memo to trash
DELETE /v1/voice-memos/{id}
Soft deletion is recoverable. Requires review through the standard approval flow; without a grant the response is 202 ApprovalRequest. An inaccessible memo returns 404 before creating an approval request. Personal credentials only (personal token or Keycloak user token); a service key is refused. VOICE_MEMOS_V1_ENABLED=false returns 404 before authentication or body parsing.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:voice_memos:delete - Goedkeuring:
review, een tweede persoon of rol keurt goed. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op. - Verwijderen is zacht; zie Conventies.
Parameters
idverplichtdryRun
Validate and preview the effect without changing anything. Een van:true,falsex-prudai-approval
Approved one-use request id. Repeat the exact method, path, query and body. The grant is consumed before execution; obtain a new approval after a failed execution. Idempotency-Key is excluded from the approval fingerprint. patroon^apr_[A-Za-z0-9]{24}$
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
202 | Awaiting standard human review. |
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 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
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. |
Velden in data (200)
id
kannullzijnstatus
Een van:uploaded,transcribing,ready,assigned,failedsha256
patroon^[a-f0-9]{64}$byte_size
min. 0duration_ms
min. 0 · kannullzijntarget
kannullzijnoptionsoptions.summary
standaard:trueoptions.knowledge_base
standaard:trueoptions.cato_note
standaard:falseoptions.cato_soort
Een van:GESPREK,ACHTERGROND· standaard:"ACHTERGROND"options.cato_target
A CRM record requires subtype; only a CRM record accepts subtype. ORDO link_id is the corresponding LEO dossier-project UUID.options.cato_target.link_type
Een van:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idoptions.cato_target.subtype
Een van:company,person,opportunitysummary
kannullzijntranscript
Only returned by getVoiceMemo. kannullzijncreated_at
kannullzijnupdated_at
kannullzijnassigned_at
kannullzijndeleted_at
kannullzijnwould_upload
Only in dryRun previews.
curl -s -X DELETE "https://api.prudai.com/v1/voice-memos/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo voice-memos delete{ "id": "00000000-0000-4000-8000-000000000000", "status": "uploaded", "sha256": "string", "byte_size": 1, "duration_ms": 1, "target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" }, "options": { "summary": true, "knowledge_base": true, "cato_note": false, "cato_soort": "ACHTERGROND", "cato_target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" } }, "summary": "string", "transcript": "string", "created_at": "2026-11-05T09:30:00.000Z", "updated_at": "2026-11-05T09:30:00.000Z", "assigned_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z", "would_upload": false}Restore an own voice memo
POST /v1/voice-memos/{id}/restore
Clears the memo’s soft-deletion mark without a Console confirmation card. Personal credentials only (personal token or Keycloak user token); a service key is refused. VOICE_MEMOS_V1_ENABLED=false returns 404 before authentication or body parsing.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:voice_memos:write - Goedkeuring:
none, geen extra stap. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op.
Parameters
idverplichtdryRun
Validate and preview the effect without changing anything. Een van:true,false
Body
JSON, verplicht.
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
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 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
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. |
Velden in data (200)
id
kannullzijnstatus
Een van:uploaded,transcribing,ready,assigned,failedsha256
patroon^[a-f0-9]{64}$byte_size
min. 0duration_ms
min. 0 · kannullzijntarget
kannullzijnoptionsoptions.summary
standaard:trueoptions.knowledge_base
standaard:trueoptions.cato_note
standaard:falseoptions.cato_soort
Een van:GESPREK,ACHTERGROND· standaard:"ACHTERGROND"options.cato_target
A CRM record requires subtype; only a CRM record accepts subtype. ORDO link_id is the corresponding LEO dossier-project UUID.options.cato_target.link_type
Een van:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idoptions.cato_target.subtype
Een van:company,person,opportunitysummary
kannullzijntranscript
Only returned by getVoiceMemo. kannullzijncreated_at
kannullzijnupdated_at
kannullzijnassigned_at
kannullzijndeleted_at
kannullzijnwould_upload
Only in dryRun previews.
curl -s -X POST "https://api.prudai.com/v1/voice-memos/<id>/restore" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'prudai leo voice-memos restore{ "id": "00000000-0000-4000-8000-000000000000", "status": "uploaded", "sha256": "string", "byte_size": 1, "duration_ms": 1, "target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" }, "options": { "summary": true, "knowledge_base": true, "cato_note": false, "cato_soort": "ACHTERGROND", "cato_target": { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company" } }, "summary": "string", "transcript": "string", "created_at": "2026-11-05T09:30:00.000Z", "updated_at": "2026-11-05T09:30:00.000Z", "assigned_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z", "would_upload": false}Suggest destinations for an own voice memo
GET /v1/voice-memos/{id}/suggestions
At most five currently accessible destinations ranked last_opened, calendar, mentioned. A last_opened hint never grants access. Calendar candidates use the delegated CRM calendar when available; omitted sources are explained in notIncluded. Each suggestion carries reason last_opened, calendar or mentioned. Personal credentials only (personal token or Keycloak user token); a service key is refused. VOICE_MEMOS_V1_ENABLED=false returns 404 before authentication or body parsing.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:voice_memos:read - Goedkeuring:
none, geen extra stap.
Parameters
idverplichtlast_opened
Hint as link_type:link_id. Only returned when currently accessible. max. lengte 100
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
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 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
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 "https://api.prudai.com/v1/voice-memos/<id>/suggestions" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo voice-memos suggestions[ { "link_type": "leo-project", "link_id": "00000000-0000-4000-8000-000000000000", "subtype": "company", "label": "string", "subtitle": "string", "reason": "last_opened" }]