Skip to content

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.

MethodPathWhat it doesState
GET/v1/org-skillsList published office proceduresIn production
GET/v1/org-skills/{id}Read a published office procedureIn production
POST/v1/skillsCreate an organisation skill draftComing soon
PUT/v1/skills/{name}Edit an organisation skill; its published version stays live until the replacement is publishedComing soon
DELETE/v1/skills/{name}Soft delete an organisation skillComing soon
POST/v1/skills/{name}/archiveArchive an organisation skillComing soon
POST/v1/skills/{name}/publishPublish an organisation skillComing soon
POST/v1/skills/{name}/restoreRestore an organisation skill as a draftComing soon
GET/v1/skills/{name}/versionsList publication version metadataIn production
POST/v1/skills/{name}/versions/{version}/restoreRestore a publication version for editing; the current publication stays liveComing soon
POST/v1/skills/testEstimate skill relevance without writingIn 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 query · integer
    default: 25 · min 1 · max 50
  • cursor query · string
    Opaque position from next_cursor; keep the same limit. max length 200

Responses

StatusMeaning
200Published metadata page with an exact total and explicit continuation.
400Malformed request or unsupported parameter (for example client-sent tools).
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
422Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body).
429Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded.
500Unexpected error on Prudai’s side. Not charged, except work that completed before the failure (reported in details.charged_credits).

Fields in data (200)

  • object string
    list
  • data array<OrgSkillMetadata>
  • data[].id string (uuid)
  • data[].object string
    org_skill
  • data[].name string
    min length 3 · max length 40
  • data[].description string
    max length 220
  • data[].triggers array<string>
  • data[].products string or array<string>
  • data[].requires_tools array<string>
  • data[].status string
    published
  • data[].version integer
    min 1
  • data[].updated_at string (date-time)
  • has_more boolean
  • next_cursor string
    max length 200 · may be null
curl
curl -s "https://api.prudai.com/v1/org-skills" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo org-skills list
Response 200
{
"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

  • id path · string (uuid) required

Responses

StatusMeaning
200The published procedure.
400Malformed request or unsupported parameter (for example client-sent tools).
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
422Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body).
429Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded.
500Unexpected error on Prudai’s side. Not charged, except work that completed before the failure (reported in details.charged_credits).

Fields in data (200)

  • id string (uuid)
  • object string
    org_skill
  • name string
    min length 3 · max length 40
  • description string
    max length 220
  • triggers array<string>
  • products string or array<string>
  • requires_tools array<string>
  • status string
    published
  • version integer
    min 1
  • updated_at string (date-time)
  • body string
    max length 6000
curl
curl -s "https://api.prudai.com/v1/org-skills/<id>" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo org-skills get
Response 200
{
"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.

  • name string required
    min length 3 · max length 40 · pattern ^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
  • description string required
    One-line statement of when the user needs this procedure (NL, EN or DE). max length 220
  • body string required
    max length 6000
  • triggers array<string> required
  • products string or array<string>
  • requires_tools array<string>

Responses

StatusMeaning
200Result in the task envelope.
202Existing approval request; decide in the Console and replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-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)

  • id string (uuid)
  • object string
    org_skill
  • namespace string
    org
  • name string
    pattern ^org:
  • description string
  • triggers array<string>
  • products string or array<string>
  • requires_tools array<string>
  • body string
  • status string
    One of: draft, published, archived
  • version integer
    min 0
  • updated_at string (date-time)
  • deleted_at string (date-time)
    may be null
curl
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"
]
}'
CLI (coming soon)
prudai leo skills create
Response 200
{
"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

  • name path · string required
    pattern ^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$

Body

JSON, required.

  • name string required
    min length 3 · max length 40 · pattern ^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
  • description string required
    One-line statement of when the user needs this procedure (NL, EN or DE). max length 220
  • body string required
    max length 6000
  • triggers array<string> required
  • products string or array<string>
  • requires_tools array<string>

Responses

StatusMeaning
200Result in the task envelope.
202Existing approval request; decide in the Console and replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-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)

  • id string (uuid)
  • object string
    org_skill
  • namespace string
    org
  • name string
    pattern ^org:
  • description string
  • triggers array<string>
  • products string or array<string>
  • requires_tools array<string>
  • body string
  • status string
    One of: draft, published, archived
  • version integer
    min 0
  • updated_at string (date-time)
  • deleted_at string (date-time)
    may be null
curl
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"
]
}'
CLI (coming soon)
prudai leo skills update
Response 200
{
"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

  • name path · string required
    pattern ^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$

Responses

StatusMeaning
200Result in the task envelope.
202Existing approval request; decide in the Console and replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-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)

  • id string (uuid)
  • object string
    org_skill
  • namespace string
    org
  • name string
    pattern ^org:
  • description string
  • triggers array<string>
  • products string or array<string>
  • requires_tools array<string>
  • body string
  • status string
    One of: draft, published, archived
  • version integer
    min 0
  • updated_at string (date-time)
  • deleted_at string (date-time)
    may be null
curl
curl -s -X DELETE "https://api.prudai.com/v1/skills/<name>" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo skills delete
Response 200
{
"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

  • name path · string required
    pattern ^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$

Body

JSON, required.

Responses

StatusMeaning
200Result in the task envelope.
202Existing approval request; decide in the Console and replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-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)

  • id string (uuid)
  • object string
    org_skill
  • namespace string
    org
  • name string
    pattern ^org:
  • description string
  • triggers array<string>
  • products string or array<string>
  • requires_tools array<string>
  • body string
  • status string
    One of: draft, published, archived
  • version integer
    min 0
  • updated_at string (date-time)
  • deleted_at string (date-time)
    may be null
curl
curl -s -X POST "https://api.prudai.com/v1/skills/<name>/archive" \
-H "Authorization: Bearer $PRUDAI_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
CLI (coming soon)
prudai leo skills archive
Response 200
{
"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

  • name path · string required
    pattern ^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$

Body

JSON, required.

Responses

StatusMeaning
200Result in the task envelope.
202Existing approval request; decide in the Console and replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-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)

  • id string (uuid)
  • object string
    org_skill
  • namespace string
    org
  • name string
    pattern ^org:
  • description string
  • triggers array<string>
  • products string or array<string>
  • requires_tools array<string>
  • body string
  • status string
    One of: draft, published, archived
  • version integer
    min 0
  • updated_at string (date-time)
  • deleted_at string (date-time)
    may be null
curl
curl -s -X POST "https://api.prudai.com/v1/skills/<name>/publish" \
-H "Authorization: Bearer $PRUDAI_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
CLI (coming soon)
prudai leo skills publish
Response 200
{
"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

  • name path · string required
    pattern ^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$

Body

JSON, required.

Responses

StatusMeaning
200Result in the task envelope.
202Existing approval request; decide in the Console and replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-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)

  • id string (uuid)
  • object string
    org_skill
  • namespace string
    org
  • name string
    pattern ^org:
  • description string
  • triggers array<string>
  • products string or array<string>
  • requires_tools array<string>
  • body string
  • status string
    One of: draft, published, archived
  • version integer
    min 0
  • updated_at string (date-time)
  • deleted_at string (date-time)
    may be null
curl
curl -s -X POST "https://api.prudai.com/v1/skills/<name>/restore" \
-H "Authorization: Bearer $PRUDAI_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
CLI (coming soon)
prudai leo skills restore
Response 200
{
"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

  • name path · string required
    pattern ^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
  • limit query · integer
    default: 20 · min 1 · max 100
  • cursor query · string
    pattern ^[1-9]\d*$

Responses

StatusMeaning
200Result in the task envelope.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body).
curl
curl -s "https://api.prudai.com/v1/skills/<name>/versions" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo skills-versions list

Restore 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

  • name path · string required
    pattern ^org:[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
  • version path · integer required
    min 1

Body

JSON, required.

Responses

StatusMeaning
200Result in the task envelope.
202Existing approval request; decide in the Console and replay the exact request with X-Prudai-Approval.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-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)

  • id string (uuid)
  • object string
    org_skill
  • namespace string
    org
  • name string
    pattern ^org:
  • description string
  • triggers array<string>
  • products string or array<string>
  • requires_tools array<string>
  • body string
  • status string
    One of: draft, published, archived
  • version integer
    min 0
  • updated_at string (date-time)
  • deleted_at string (date-time)
    may be null
curl
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 '{}'
CLI (coming soon)
prudai leo skills-versions restore
Response 200
{
"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.

  • skill OrgSkillInput required
  • skill.name string required
    min length 3 · max length 40 · pattern ^[a-z0-9][a-z0-9-]{1,38}[a-z0-9]$
  • skill.description string required
    One-line statement of when the user needs this procedure (NL, EN or DE). max length 220
  • skill.body string required
    max length 6000
  • skill.triggers array<string> required
  • skill.products string or array<string>
  • skill.requires_tools array<string>
  • question string required
    max length 2000
  • product string required
    Exact product slug. Runtime product and staff restrictions still apply. One of: leo, leo-fiscaal, zia, vera, bever, maia, irma

Responses

StatusMeaning
200Result in the task envelope.
401Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment.
403Authenticated, 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).
404Unknown model, source or document.
409Current state or name conflicts with the request.
422Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body).
curl
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"
}'
CLI (coming soon)
prudai leo skills test