Prudai Developer API: workflows
Workflow definitions and curated templates; personal tokens only, with the app workflow capability. Delete is reserved until soft delete exists.
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/workflows | List workflow definitions | Binnenkort |
POST | /v1/workflows | Create a workflow definition | Binnenkort |
GET | /v1/workflows/{id} | Get a workflow definition | Binnenkort |
PATCH | /v1/workflows/{id} | Update a workflow definition | Binnenkort |
DELETE | /v1/workflows/{id} | Soft-delete a workflow definition | Binnenkort |
POST | /v1/workflows/{id}/restore | Restore a soft-deleted workflow definition | Binnenkort |
GET | /v1/workflows/catalog | Get curated templates and office workflows | Binnenkort |
POST | /v1/workflows/templates/{id}/copy | Copy a curated template | Binnenkort |
POST | /v1/workflows/templates/{id}/intake-prefill | Pre-fill template intake from owned context | Binnenkort |
List workflow definitions
GET /v1/workflows
Lists the caller’s visible definitions with an exact filtered total. Soft-deleted definitions are not listed; restore one with POST /workflows/{id}/restore. Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows:read - Goedkeuring:
none, geen extra stap.
Parameters
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maiaq
max. lengte 200limit
standaard:20· min. 1 · max. 100cursor
max. lengte 200sort
Een van:name,createdAt,updatedAt· standaard:"createdAt"order
Een van:asc,desc· standaard:"desc"
Antwoorden
| Status | Betekenis |
|---|---|
200 | Requested data with completeness and follow-up actions. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
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 | Developer API or a required backing service is unavailable. |
curl -s "https://api.prudai.com/v1/workflows" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo"prudai leo workflows listCreate a workflow definition
POST /v1/workflows
Creates an editable definition after the app graph validation. next points to startWorkflowRun. Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows: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
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maiadryRun
Validate and preview without changing definitions, enqueuing jobs or recording gate decisions. Een van:true,falseIdempotency-Keyverplicht
Client-chosen key. Retry the same request safely; changed arguments with the same key are rejected. min. lengte 8 · max. lengte 255 · patroon^[\x21-\x7E]+$
Body
JSON, verplicht.
nameverplicht
max. lengte 200description
max. lengte 2000 · kannullzijngraphverplichtgraph.nodesverplichtgraph.nodes[].idverplicht
max. lengte 128graph.nodes[].typeverplicht
Een van:input,persona,output,condition,hitlgraph.nodes[].labelverplicht
max. lengte 300graph.nodes[].prompt
max. lengte 20000graph.nodes[].artifact_ref
Exact immutable source version or expected current output version. Version zero denotes the historical empty baseline where supported.graph.nodes[].conditiongraph.nodes[].hitlgraph.nodes[].v1Execution
Een van:noop-passthroughgraph.nodes[].description
max. lengte 4000graph.nodes[].presetId
max. lengte 100graph.nodes[].style
Een van:onderzoekend,strategisch,adversarieelgraph.nodes[].modelTier
Een van:mini,standard,prograph.nodes[].runWhenIntakegraph.nodes[].machineTranslationgraph.nodes[].documentPipelinegraph.nodes[].slotsgraph.nodes[].statuteCheckgraph.nodes[].inputSectionsgraph.nodes[].dossierToolsgraph.nodes[].promptAxesgraph.nodes[].sourceIdsgraph.nodes[].deliverygraph.nodes[].positionverplichtgraph.edgesverplichtgraph.edges[].idverplicht
max. lengte 256graph.edges[].sourceverplicht
max. lengte 128graph.edges[].targetverplicht
max. lengte 128graph.edges[].branch
Een van:ja,nee
Antwoorden
| Status | Betekenis |
|---|---|
200 | Idempotent replay or dry-run preview. |
201 | Completed. With dryRun=true, returns a preview without side effects. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
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 | Developer API or a required backing service is unavailable. |
curl -s -X POST "https://api.prudai.com/v1/workflows" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ ... }'prudai leo workflows createGet a workflow definition
GET /v1/workflows/{id}
Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows:read - Goedkeuring:
none, geen extra stap.
Parameters
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maiaidverplicht
Antwoorden
| Status | Betekenis |
|---|---|
200 | Requested data with completeness and follow-up actions. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
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 | Developer API or a required backing service is unavailable. |
Velden in data (200)
idnamedescription
kannullzijngraphgraph.nodesgraph.nodes[].id
max. lengte 128graph.nodes[].type
Een van:input,persona,output,condition,hitlgraph.nodes[].label
max. lengte 300graph.nodes[].prompt
max. lengte 20000graph.nodes[].artifact_ref
Exact immutable source version or expected current output version. Version zero denotes the historical empty baseline where supported.graph.nodes[].conditiongraph.nodes[].hitlgraph.nodes[].v1Execution
Een van:noop-passthroughgraph.nodes[].description
max. lengte 4000graph.nodes[].presetId
max. lengte 100graph.nodes[].style
Een van:onderzoekend,strategisch,adversarieelgraph.nodes[].modelTier
Een van:mini,standard,prograph.nodes[].runWhenIntakegraph.nodes[].machineTranslationgraph.nodes[].documentPipelinegraph.nodes[].slotsgraph.nodes[].statuteCheckgraph.nodes[].inputSectionsgraph.nodes[].dossierToolsgraph.nodes[].promptAxesgraph.nodes[].sourceIdsgraph.nodes[].deliverygraph.nodes[].positiongraph.edgesgraph.edges[].id
max. lengte 256graph.edges[].source
max. lengte 128graph.edges[].target
max. lengte 128graph.edges[].branch
Een van:ja,neeorganizationId
kannullzijncreatedByproductScopecreatedAtupdatedAt
curl -s "https://api.prudai.com/v1/workflows/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo"prudai leo workflows getUpdate a workflow definition
PATCH /v1/workflows/{id}
Partial update. If-Match binds the previously read updatedAt: without it 428 precondition_required, a stale value 409 version_conflict. Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows:write - Goedkeuring:
none, geen extra stap. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op. - Gelijktijdig wijzigen: stuur
If-Matchmee met de versie die je las.
Parameters
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maiaidverplichtdryRun
Validate and preview without changing definitions, enqueuing jobs or recording gate decisions. Een van:true,falseIf-Matchverplicht
The quoted updatedAt value from the last read. Missing returns 428 precondition_required; a stale value returns 409 version_conflict.
Body
JSON, verplicht.
name
max. lengte 200description
max. lengte 2000 · kannullzijngraphgraph.nodesverplichtgraph.nodes[].idverplicht
max. lengte 128graph.nodes[].typeverplicht
Een van:input,persona,output,condition,hitlgraph.nodes[].labelverplicht
max. lengte 300graph.nodes[].prompt
max. lengte 20000graph.nodes[].artifact_ref
Exact immutable source version or expected current output version. Version zero denotes the historical empty baseline where supported.graph.nodes[].conditiongraph.nodes[].hitlgraph.nodes[].v1Execution
Een van:noop-passthroughgraph.nodes[].description
max. lengte 4000graph.nodes[].presetId
max. lengte 100graph.nodes[].style
Een van:onderzoekend,strategisch,adversarieelgraph.nodes[].modelTier
Een van:mini,standard,prograph.nodes[].runWhenIntakegraph.nodes[].machineTranslationgraph.nodes[].documentPipelinegraph.nodes[].slotsgraph.nodes[].statuteCheckgraph.nodes[].inputSectionsgraph.nodes[].dossierToolsgraph.nodes[].promptAxesgraph.nodes[].sourceIdsgraph.nodes[].deliverygraph.nodes[].positionverplichtgraph.edgesverplichtgraph.edges[].idverplicht
max. lengte 256graph.edges[].sourceverplicht
max. lengte 128graph.edges[].targetverplicht
max. lengte 128graph.edges[].branch
Een van:ja,nee
Antwoorden
| Status | Betekenis |
|---|---|
200 | Completed. With dryRun=true, returns a preview without side effects. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
428 | If-Match is missing (precondition_required). |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
503 | Developer API or a required backing service is unavailable. |
curl -s -X PATCH "https://api.prudai.com/v1/workflows/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo" \ -H 'If-Match: "<etag>"' \ -H "Content-Type: application/json" \ -d '{ ... }'prudai leo workflows updateSoft-delete a workflow definition
DELETE /v1/workflows/{id}
Moves the definition to the trash: it leaves every list and the app, and POST /workflows/{id}/restore brings it back unchanged. Runs keep their own snapshot, so past and running runs are not affected. Waits for a reviewer (an owner or administrator, with a reason). The app’s own delete takes the same soft path. Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows: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
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maiaidverplichtdryRun
Validate and preview without changing definitions, enqueuing jobs or recording gate decisions. 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 | Completed. With dryRun=true, returns a preview without side effects. |
202 | Waiting for human approval. Replay the exact request with its one-use approval grant. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
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 | Developer API or a required backing service is unavailable. |
curl -s -X DELETE "https://api.prudai.com/v1/workflows/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo"prudai leo workflows deleteRestore a soft-deleted workflow definition
POST /v1/workflows/{id}/restore
Brings a soft-deleted definition back exactly as it was, with a fresh updatedAt. next points to startWorkflowRun. Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows:write - Goedkeuring:
confirm, de gebruiker bevestigt precies deze aanroep. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op.
Parameters
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maiaidverplichtdryRun
Validate and preview without changing definitions, enqueuing jobs or recording gate decisions. 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 | Completed. With dryRun=true, returns a preview without side effects. |
202 | Waiting for human approval. Replay the exact request with its one-use approval grant. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
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 | Developer API or a required backing service is unavailable. |
curl -s -X POST "https://api.prudai.com/v1/workflows/<id>/restore" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo"prudai leo workflows restoreGet curated templates and office workflows
GET /v1/workflows/catalog
Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows:read - Goedkeuring:
none, geen extra stap.
Parameters
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maia
Antwoorden
| Status | Betekenis |
|---|---|
200 | Requested data with completeness and follow-up actions. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
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 | Developer API or a required backing service is unavailable. |
Velden in data (200)
recommendedrecommended[].idrecommended[].engine
Een van:workflow,researchrecommended[].nameKeyrecommended[].promiseKeyrecommended[].practiceAreasrecommended[].personaMiniGraphrecommended[].personaMiniGraph.nodesrecommended[].personaMiniGraph.edgesrecommended[].outputBadges
Een van:memo-docx,tabel-matrix,chronologie,conceptbriefrecommended[].sourceStripIdsrecommended[].optionalSourceIdsrecommended[].durationCostClass
Een van:kort,middel,langrecommended[].intakerecommended[].intake.fieldsallall[].idall[].engine
Een van:workflow,researchall[].nameKeyall[].promiseKeyall[].practiceAreasall[].personaMiniGraphall[].personaMiniGraph.nodesall[].personaMiniGraph.edgesall[].outputBadges
Een van:memo-docx,tabel-matrix,chronologie,conceptbriefall[].sourceStripIdsall[].optionalSourceIdsall[].durationCostClass
Een van:kort,middel,langall[].intakeall[].intake.fieldskantoorkantoor[].idkantoor[].namekantoor[].description
kannullzijnkantoor[].personaMiniGraphkantoor[].personaMiniGraph.nodeskantoor[].personaMiniGraph.edgeskantoor[].organizationId
kannullzijnkantoor[].updatedAt
curl -s "https://api.prudai.com/v1/workflows/catalog" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo"prudai leo workflows catalogCopy a curated template
POST /v1/workflows/templates/{id}/copy
Copies a curated template into an editable definition and reports anything omitted. next points to startWorkflowRun. Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows: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
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maiaidverplicht
max. lengte 120 · patroon^[a-z0-9]+(?:-[a-z0-9]+)*$dryRun
Validate and preview without changing definitions, enqueuing jobs or recording gate decisions. Een van:true,falseIdempotency-Keyverplicht
Client-chosen key. Retry the same request safely; changed arguments with the same key are rejected. min. lengte 8 · max. lengte 255 · patroon^[\x21-\x7E]+$
Body
JSON, verplicht.
name
max. lengte 200includeKernprompts
Antwoorden
| Status | Betekenis |
|---|---|
200 | Idempotent replay or dry-run preview. |
201 | Completed. With dryRun=true, returns a preview without side effects. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
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 | Developer API or a required backing service is unavailable. |
curl -s -X POST "https://api.prudai.com/v1/workflows/templates/<id>/copy" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "includeKernprompts": false }'prudai leo workflows-templates copyPre-fill template intake from owned context
POST /v1/workflows/templates/{id}/intake-prefill
Uses only caller-authorised draft, conversation and dossier context. Missing or uncertain answers remain open. It runs directly, like the app; it may spend a small amount of credits on the pre-fill itself, while starting the run stays behind approval. Personal tokens and signed-in user tokens only; service keys are rejected. The same product, organisation, workflow capability and ownership rules as the app apply, including 403 workflows_upgrade_required for VERA without Pro.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:workflows:write - Goedkeuring:
none, geen extra stap. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op.
Parameters
X-Product-Slugverplicht
Product context, checked against the current user and the workflow capability. Een van:leo,leo-fiscaal,zia,vera,bever,irma,maiaidverplicht
max. lengte 120 · patroon^[a-z0-9]+(?:-[a-z0-9]+)*$dryRun
Validate and preview without changing definitions, enqueuing jobs or recording gate decisions. Een van:true,false
Body
JSON, verplicht.
draft
max. lengte 100000conversationIdprojectIdtemplateName
max. lengte 200
Antwoorden
| Status | Betekenis |
|---|---|
200 | Completed. With dryRun=true, returns a preview without side effects. |
400 | Malformed request or unsupported parameter (for example client-sent tools). |
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 | Workflow, run or deliverable not found or inaccessible. |
409 | State conflict, stale If-Match, or cancellation unavailable for the current run state. |
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 | Developer API or a required backing service is unavailable. |
curl -s -X POST "https://api.prudai.com/v1/workflows/templates/<id>/intake-prefill" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "X-Product-Slug: leo" \ -H "Content-Type: application/json" \ -d '{ "draft": "string", "conversationId": "00000000-0000-4000-8000-000000000000", "projectId": "00000000-0000-4000-8000-000000000000", "templateName": "string" }'prudai leo workflows-templates intake-prefill