Prudai Developer API: voice memos
The operations of this part (Voice memos).
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/voice-memos | List own voice memos | Coming soon |
POST | /v1/voice-memos | Upload an own voice memo | Coming soon |
GET | /v1/voice-memos/{id} | Read an own voice memo and transcript | Coming soon |
PATCH | /v1/voice-memos/{id} | Assign or move an own voice memo | Coming soon |
DELETE | /v1/voice-memos/{id} | Move an own voice memo to trash | Coming soon |
POST | /v1/voice-memos/{id}/restore | Restore an own voice memo | Coming soon |
GET | /v1/voice-memos/{id}/suggestions | Suggest destinations for an own voice memo | Coming soon |
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.
- State: coming soon, not in production yet.
- Scope:
prudai:voice_memos:read - Approval:
none, no extra step.
Parameters
status
One of:unassigned,assigned,all· default:"unassigned"limit
default:20· min 1 · max 100cursor
max length 200
Responses
| Status | Meaning |
|---|---|
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.
- State: coming soon, not in production yet.
- Scope:
prudai:voice_memos:write - Approval:
none, no extra step. - Dry run:
?dryRun=trueshows what would happen and stores nothing. - Idempotency: send
Idempotency-Key; the same key with the same body does not run the action twice.
Parameters
Idempotency-Keyrequired
min length 8 · max length 255 · pattern^[\x21-\x7E]+$dryRun
Validate and preview the effect without changing anything. One of:true,false
Body
Format: multipart/form-data.
Responses
| Status | Meaning |
|---|---|
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.
- State: coming soon, not in production yet.
- Scope:
prudai:voice_memos:read - Approval:
none, no extra step.
Parameters
idrequired
Responses
| Status | Meaning |
|---|---|
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. |
Fields in data (200)
id
may benullstatus
One of:uploaded,transcribing,ready,assigned,failedsha256
pattern^[a-f0-9]{64}$byte_size
min 0duration_ms
min 0 · may benulltarget
may benulloptionsoptions.summary
default:trueoptions.knowledge_base
default:trueoptions.cato_note
default:falseoptions.cato_soort
One of:GESPREK,ACHTERGROND· default:"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
One of:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idoptions.cato_target.subtype
One of:company,person,opportunitysummary
may benulltranscript
Only returned by getVoiceMemo. may benullcreated_at
may benullupdated_at
may benullassigned_at
may benulldeleted_at
may benullwould_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.
- State: coming soon, not in production yet.
- Scope:
prudai:voice_memos:write - Approval:
none, no extra step. - Dry run:
?dryRun=trueshows what would happen and stores nothing.
Parameters
idrequireddryRun
Validate and preview the effect without changing anything. One of:true,false
Body
JSON, required.
targetrequired
A CRM record requires subtype; only a CRM record accepts subtype. ORDO link_id is the corresponding LEO dossier-project UUID.target.link_typerequired
One of:leo-project,ordo-dossier,cato-recordtarget.link_idrequiredtarget.subtype
One of:company,person,opportunityoptionsoptions.summary
default:trueoptions.knowledge_base
default:trueoptions.cato_note
default:falseoptions.cato_soort
One of:GESPREK,ACHTERGROND· default:"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_typerequired
One of:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idrequiredoptions.cato_target.subtype
One of:company,person,opportunity
Responses
| Status | Meaning |
|---|---|
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. |
Fields in data (200)
id
may benullstatus
One of:uploaded,transcribing,ready,assigned,failedsha256
pattern^[a-f0-9]{64}$byte_size
min 0duration_ms
min 0 · may benulltarget
may benulloptionsoptions.summary
default:trueoptions.knowledge_base
default:trueoptions.cato_note
default:falseoptions.cato_soort
One of:GESPREK,ACHTERGROND· default:"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
One of:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idoptions.cato_target.subtype
One of:company,person,opportunitysummary
may benulltranscript
Only returned by getVoiceMemo. may benullcreated_at
may benullupdated_at
may benullassigned_at
may benulldeleted_at
may benullwould_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.
- State: coming soon, not in production yet.
- Scope:
prudai:voice_memos:delete - Approval:
review, a second person or role approves. - Dry run:
?dryRun=trueshows what would happen and stores nothing. - Deleting is soft; see Conventions.
Parameters
idrequireddryRun
Validate and preview the effect without changing anything. One of: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. pattern^apr_[A-Za-z0-9]{24}$
Responses
| Status | Meaning |
|---|---|
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. |
Fields in data (200)
id
may benullstatus
One of:uploaded,transcribing,ready,assigned,failedsha256
pattern^[a-f0-9]{64}$byte_size
min 0duration_ms
min 0 · may benulltarget
may benulloptionsoptions.summary
default:trueoptions.knowledge_base
default:trueoptions.cato_note
default:falseoptions.cato_soort
One of:GESPREK,ACHTERGROND· default:"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
One of:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idoptions.cato_target.subtype
One of:company,person,opportunitysummary
may benulltranscript
Only returned by getVoiceMemo. may benullcreated_at
may benullupdated_at
may benullassigned_at
may benulldeleted_at
may benullwould_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.
- State: coming soon, not in production yet.
- Scope:
prudai:voice_memos:write - Approval:
none, no extra step. - Dry run:
?dryRun=trueshows what would happen and stores nothing.
Parameters
idrequireddryRun
Validate and preview the effect without changing anything. One of:true,false
Body
JSON, required.
Responses
| Status | Meaning |
|---|---|
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. |
Fields in data (200)
id
may benullstatus
One of:uploaded,transcribing,ready,assigned,failedsha256
pattern^[a-f0-9]{64}$byte_size
min 0duration_ms
min 0 · may benulltarget
may benulloptionsoptions.summary
default:trueoptions.knowledge_base
default:trueoptions.cato_note
default:falseoptions.cato_soort
One of:GESPREK,ACHTERGROND· default:"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
One of:leo-project,ordo-dossier,cato-recordoptions.cato_target.link_idoptions.cato_target.subtype
One of:company,person,opportunitysummary
may benulltranscript
Only returned by getVoiceMemo. may benullcreated_at
may benullupdated_at
may benullassigned_at
may benulldeleted_at
may benullwould_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.
- State: coming soon, not in production yet.
- Scope:
prudai:voice_memos:read - Approval:
none, no extra step.
Parameters
idrequiredlast_opened
Hint as link_type:link_id. Only returned when currently accessible. max length 100
Responses
| Status | Meaning |
|---|---|
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" }]