Prudai Developer API: organisation skills
De operaties van dit onderdeel (Organisation skills).
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/org-skills | List published office procedures | Op productie |
GET | /v1/org-skills/{id} | Read a published office procedure | Op productie |
POST | /v1/skills | Create an organisation skill draft | Binnenkort |
PUT | /v1/skills/{name} | Edit an organisation skill; its published version stays live until the replacement is published | Binnenkort |
DELETE | /v1/skills/{name} | Soft delete an organisation skill | Binnenkort |
POST | /v1/skills/{name}/archive | Archive an organisation skill | Binnenkort |
POST | /v1/skills/{name}/publish | Publish an organisation skill | Binnenkort |
POST | /v1/skills/{name}/restore | Restore an organisation skill as a draft | Binnenkort |
GET | /v1/skills/{name}/versions | List publication version metadata | Op productie |
POST | /v1/skills/{name}/versions/{version}/restore | Restore a publication version for editing; the current publication stays live | Binnenkort |
POST | /v1/skills/test | Estimate skill relevance without writing | Op productie |
List published office procedures
GET /v1/org-skills
Metadata only, ordered by name and id ascending. The organisation comes from the authenticated credential. Every role, including owners and admins, sees only published, non-deleted procedures. Use getOrgSkill to retrieve a body.
- Stand: op productie.
- Scope:
prudai:org_skills:read - Goedkeuring:
none, geen extra stap.
Parameters
limit
standaard:25· min. 1 · max. 50cursor
Opaque position from next_cursor; keep the same limit. max. lengte 200
Antwoorden
| Status | Betekenis |
|---|---|
200 | Published metadata page with an exact total and explicit continuation. |
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). |
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. |
500 | Unexpected error on Prudai’s side. Not charged, except work that completed before the failure (reported in details.charged_credits). |
Velden in data (200)
object
listdatadata[].iddata[].object
org_skilldata[].name
min. lengte 3 · max. lengte 40data[].description
max. lengte 220data[].triggersdata[].productsdata[].requires_toolsdata[].status
publisheddata[].version
min. 1data[].updated_athas_morenext_cursor
max. lengte 200 · kannullzijn
curl -s "https://api.prudai.com/v1/org-skills" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo org-skills list{ "object": "list", "data": [ { "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "status": "published", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z" } ], "has_more": false, "next_cursor": "string"}Read a published office procedure
GET /v1/org-skills/{id}
Includes the published body. Unknown, foreign-organisation, draft, archived and deleted procedures return the same 404 document_not_found for every role. Use /skills with org:<slug> names for management, testing and publication.
- Stand: op productie.
- Scope:
prudai:org_skills:read - Goedkeuring:
none, geen extra stap.
Parameters
idverplicht
Antwoorden
| Status | Betekenis |
|---|---|
200 | The published procedure. |
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 | Unknown model, source or document. |
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. |
500 | Unexpected error on Prudai’s side. Not charged, except work that completed before the failure (reported in details.charged_credits). |
Velden in data (200)
idobject
org_skillname
min. lengte 3 · max. lengte 40description
max. lengte 220triggersproductsrequires_toolsstatus
publishedversion
min. 1updated_atbody
max. lengte 6000
curl -s "https://api.prudai.com/v1/org-skills/<id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo org-skills get{ "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "status": "published", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z", "body": "string"}Create an organisation skill draft
POST /v1/skills
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:org_skills:write - Goedkeuring:
confirm, de gebruiker bevestigt precies deze aanroep.
Body
JSON, verplicht.
nameverplicht
min. lengte 3 · max. lengte 40 · patroon^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$descriptionverplicht
One-line statement of when the user needs this procedure (NL, EN or DE). max. lengte 220bodyverplicht
max. lengte 6000triggersverplichtproductsrequires_tools
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
202 | Existing approval request; decide in the Console and 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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
Velden in data (200)
idobject
org_skillnamespace
orgname
patroon^org:descriptiontriggersproductsrequires_toolsbodystatus
Een van:draft,published,archivedversion
min. 0updated_atdeleted_at
kannullzijn
curl -s -X POST "https://api.prudai.com/v1/skills" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "description": "string", "body": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ] }'prudai leo skills create{ "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "namespace": "org", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "body": "string", "status": "draft", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z"}Edit an organisation skill; its published version stays live until the replacement is published
PUT /v1/skills/{name}
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:org_skills:write - Goedkeuring:
confirm, de gebruiker bevestigt precies deze aanroep.
Parameters
nameverplicht
patroon^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Body
JSON, verplicht.
nameverplicht
min. lengte 3 · max. lengte 40 · patroon^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$descriptionverplicht
One-line statement of when the user needs this procedure (NL, EN or DE). max. lengte 220bodyverplicht
max. lengte 6000triggersverplichtproductsrequires_tools
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
202 | Existing approval request; decide in the Console and 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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
Velden in data (200)
idobject
org_skillnamespace
orgname
patroon^org:descriptiontriggersproductsrequires_toolsbodystatus
Een van:draft,published,archivedversion
min. 0updated_atdeleted_at
kannullzijn
curl -s -X PUT "https://api.prudai.com/v1/skills/<name>" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "description": "string", "body": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ] }'prudai leo skills update{ "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "namespace": "org", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "body": "string", "status": "draft", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z"}Soft delete an organisation skill
DELETE /v1/skills/{name}
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:org_skills:delete - Goedkeuring:
review, een tweede persoon of rol keurt goed. - Verwijderen is zacht; zie Conventies.
Parameters
nameverplicht
patroon^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
202 | Existing approval request; decide in the Console and 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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
Velden in data (200)
idobject
org_skillnamespace
orgname
patroon^org:descriptiontriggersproductsrequires_toolsbodystatus
Een van:draft,published,archivedversion
min. 0updated_atdeleted_at
kannullzijn
curl -s -X DELETE "https://api.prudai.com/v1/skills/<name>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo skills delete{ "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "namespace": "org", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "body": "string", "status": "draft", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z"}Archive an organisation skill
POST /v1/skills/{name}/archive
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:org_skills:write - Goedkeuring:
confirm, de gebruiker bevestigt precies deze aanroep.
Parameters
nameverplicht
patroon^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Body
JSON, verplicht.
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
202 | Existing approval request; decide in the Console and 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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
Velden in data (200)
idobject
org_skillnamespace
orgname
patroon^org:descriptiontriggersproductsrequires_toolsbodystatus
Een van:draft,published,archivedversion
min. 0updated_atdeleted_at
kannullzijn
curl -s -X POST "https://api.prudai.com/v1/skills/<name>/archive" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'prudai leo skills archive{ "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "namespace": "org", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "body": "string", "status": "draft", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z"}Publish an organisation skill
POST /v1/skills/{name}/publish
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:org_skills:write - Goedkeuring:
review, een tweede persoon of rol keurt goed.
Parameters
nameverplicht
patroon^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Body
JSON, verplicht.
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
202 | Existing approval request; decide in the Console and 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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
Velden in data (200)
idobject
org_skillnamespace
orgname
patroon^org:descriptiontriggersproductsrequires_toolsbodystatus
Een van:draft,published,archivedversion
min. 0updated_atdeleted_at
kannullzijn
curl -s -X POST "https://api.prudai.com/v1/skills/<name>/publish" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'prudai leo skills publish{ "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "namespace": "org", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "body": "string", "status": "draft", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z"}Restore an organisation skill as a draft
POST /v1/skills/{name}/restore
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:org_skills:write - Goedkeuring:
confirm, de gebruiker bevestigt precies deze aanroep.
Parameters
nameverplicht
patroon^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Body
JSON, verplicht.
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
202 | Existing approval request; decide in the Console and 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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
Velden in data (200)
idobject
org_skillnamespace
orgname
patroon^org:descriptiontriggersproductsrequires_toolsbodystatus
Een van:draft,published,archivedversion
min. 0updated_atdeleted_at
kannullzijn
curl -s -X POST "https://api.prudai.com/v1/skills/<name>/restore" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'prudai leo skills restore{ "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "namespace": "org", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "body": "string", "status": "draft", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z"}List publication version metadata
GET /v1/skills/{name}/versions
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: op productie.
- Scope:
prudai:skills:read - Goedkeuring:
none, geen extra stap.
Parameters
nameverplicht
patroon^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$limit
standaard:20· min. 1 · max. 100cursor
patroon^[1-9]\d*$
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
curl -s "https://api.prudai.com/v1/skills/<name>/versions" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo skills-versions listRestore a publication version for editing; the current publication stays live
POST /v1/skills/{name}/versions/{version}/restore
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:org_skills:write - Goedkeuring:
confirm, de gebruiker bevestigt precies deze aanroep.
Parameters
nameverplicht
patroon^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$versionverplicht
min. 1
Body
JSON, verplicht.
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
202 | Existing approval request; decide in the Console and 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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
Velden in data (200)
idobject
org_skillnamespace
orgname
patroon^org:descriptiontriggersproductsrequires_toolsbodystatus
Een van:draft,published,archivedversion
min. 0updated_atdeleted_at
kannullzijn
curl -s -X POST "https://api.prudai.com/v1/skills/<name>/versions/1/restore" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'prudai leo skills-versions restore{ "id": "00000000-0000-4000-8000-000000000000", "object": "org_skill", "namespace": "org", "name": "string", "description": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ], "body": "string", "status": "draft", "version": 1, "updated_at": "2026-11-05T09:30:00.000Z", "deleted_at": "2026-11-05T09:30:00.000Z"}Estimate skill relevance without writing
POST /v1/skills/test
Personal credentials only. The current organisation Owner/Admin role is rechecked before approval and execution. All writes are limited to the org namespace; Prudai skills cannot be modified.
- Stand: op productie.
- Scope:
prudai:skills:read - Goedkeuring:
none, geen extra stap.
Body
JSON, verplicht.
skillverplichtskill.nameverplicht
min. lengte 3 · max. lengte 40 · patroon^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$skill.descriptionverplicht
One-line statement of when the user needs this procedure (NL, EN or DE). max. lengte 220skill.bodyverplicht
max. lengte 6000skill.triggersverplichtskill.productsskill.requires_toolsquestionverplicht
max. lengte 2000productverplicht
Exact product slug. Runtime product and staff restrictions still apply. Een van:leo,leo-fiscaal,zia,vera,bever,maia,irma
Antwoorden
| Status | Betekenis |
|---|---|
200 | Result in the task envelope. |
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. |
409 | Current state or name conflicts with the request. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
curl -s -X POST "https://api.prudai.com/v1/skills/test" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "skill": { "name": "string", "description": "string", "body": "string", "triggers": [ "string" ], "products": "all", "requires_tools": [ "string" ] }, "question": "string", "product": "leo" }'prudai leo skills test