Prudai Developer API: organisation skills
The operations of this part (Organisation skills).
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/org-skills | List published office procedures | In production |
GET | /v1/org-skills/{id} | Read a published office procedure | In production |
POST | /v1/skills | Create an organisation skill draft | Coming soon |
PUT | /v1/skills/{name} | Edit an organisation skill; its published version stays live until the replacement is published | Coming soon |
DELETE | /v1/skills/{name} | Soft delete an organisation skill | Coming soon |
POST | /v1/skills/{name}/archive | Archive an organisation skill | Coming soon |
POST | /v1/skills/{name}/publish | Publish an organisation skill | Coming soon |
POST | /v1/skills/{name}/restore | Restore an organisation skill as a draft | Coming soon |
GET | /v1/skills/{name}/versions | List publication version metadata | In production |
POST | /v1/skills/{name}/versions/{version}/restore | Restore a publication version for editing; the current publication stays live | Coming soon |
POST | /v1/skills/test | Estimate skill relevance without writing | In production |
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.
- State: in production.
- Scope:
prudai:org_skills:read - Approval:
none, no extra step.
Parameters
limit
default:25· min 1 · max 50cursor
Opaque position from next_cursor; keep the same limit. max length 200
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
object
listdatadata[].iddata[].object
org_skilldata[].name
min length 3 · max length 40data[].description
max length 220data[].triggersdata[].productsdata[].requires_toolsdata[].status
publisheddata[].version
min 1data[].updated_athas_morenext_cursor
max length 200 · may benull
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.
- State: in production.
- Scope:
prudai:org_skills:read - Approval:
none, no extra step.
Parameters
idrequired
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
idobject
org_skillname
min length 3 · max length 40description
max length 220triggersproductsrequires_toolsstatus
publishedversion
min 1updated_atbody
max length 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.
- State: coming soon, not in production yet.
- Scope:
prudai:org_skills:write - Approval:
confirm, the user confirms exactly this call.
Body
JSON, required.
namerequired
min length 3 · max length 40 · pattern^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$descriptionrequired
One-line statement of when the user needs this procedure (NL, EN or DE). max length 220bodyrequired
max length 6000triggersrequiredproductsrequires_tools
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
idobject
org_skillnamespace
orgname
pattern^org:descriptiontriggersproductsrequires_toolsbodystatus
One of:draft,published,archivedversion
min 0updated_atdeleted_at
may benull
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.
- State: coming soon, not in production yet.
- Scope:
prudai:org_skills:write - Approval:
confirm, the user confirms exactly this call.
Parameters
namerequired
pattern^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Body
JSON, required.
namerequired
min length 3 · max length 40 · pattern^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$descriptionrequired
One-line statement of when the user needs this procedure (NL, EN or DE). max length 220bodyrequired
max length 6000triggersrequiredproductsrequires_tools
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
idobject
org_skillnamespace
orgname
pattern^org:descriptiontriggersproductsrequires_toolsbodystatus
One of:draft,published,archivedversion
min 0updated_atdeleted_at
may benull
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.
- State: coming soon, not in production yet.
- Scope:
prudai:org_skills:delete - Approval:
review, a second person or role approves. - Deleting is soft; see Conventions.
Parameters
namerequired
pattern^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
idobject
org_skillnamespace
orgname
pattern^org:descriptiontriggersproductsrequires_toolsbodystatus
One of:draft,published,archivedversion
min 0updated_atdeleted_at
may benull
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.
- State: coming soon, not in production yet.
- Scope:
prudai:org_skills:write - Approval:
confirm, the user confirms exactly this call.
Parameters
namerequired
pattern^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Body
JSON, required.
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
idobject
org_skillnamespace
orgname
pattern^org:descriptiontriggersproductsrequires_toolsbodystatus
One of:draft,published,archivedversion
min 0updated_atdeleted_at
may benull
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.
- State: coming soon, not in production yet.
- Scope:
prudai:org_skills:write - Approval:
review, a second person or role approves.
Parameters
namerequired
pattern^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Body
JSON, required.
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
idobject
org_skillnamespace
orgname
pattern^org:descriptiontriggersproductsrequires_toolsbodystatus
One of:draft,published,archivedversion
min 0updated_atdeleted_at
may benull
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.
- State: coming soon, not in production yet.
- Scope:
prudai:org_skills:write - Approval:
confirm, the user confirms exactly this call.
Parameters
namerequired
pattern^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
Body
JSON, required.
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
idobject
org_skillnamespace
orgname
pattern^org:descriptiontriggersproductsrequires_toolsbodystatus
One of:draft,published,archivedversion
min 0updated_atdeleted_at
may benull
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.
- State: in production.
- Scope:
prudai:skills:read - Approval:
none, no extra step.
Parameters
namerequired
pattern^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$limit
default:20· min 1 · max 100cursor
pattern^[1-9]\d*$
Responses
| Status | Meaning |
|---|---|
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.
- State: coming soon, not in production yet.
- Scope:
prudai:org_skills:write - Approval:
confirm, the user confirms exactly this call.
Parameters
namerequired
pattern^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$versionrequired
min 1
Body
JSON, required.
Responses
| Status | Meaning |
|---|---|
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). |
Fields in data (200)
idobject
org_skillnamespace
orgname
pattern^org:descriptiontriggersproductsrequires_toolsbodystatus
One of:draft,published,archivedversion
min 0updated_atdeleted_at
may benull
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.
- State: in production.
- Scope:
prudai:skills:read - Approval:
none, no extra step.
Body
JSON, required.
skillrequiredskill.namerequired
min length 3 · max length 40 · pattern^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$skill.descriptionrequired
One-line statement of when the user needs this procedure (NL, EN or DE). max length 220skill.bodyrequired
max length 6000skill.triggersrequiredskill.productsskill.requires_toolsquestionrequired
max length 2000productrequired
Exact product slug. Runtime product and staff restrictions still apply. One of:leo,leo-fiscaal,zia,vera,bever,maia,irma
Responses
| Status | Meaning |
|---|---|
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