Prudai Developer API: invulgegevens
Form details for filling in forms - the organisation’s company data (KvK, VAT, address) and the person’s own personal details. Personal fields are visible only to that person unless they share them with colleagues. Personal credentials only; service keys never receive these scopes.
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/form-profile | Read the stored form details | Binnenkort |
PUT | /v1/form-profile/fields/{scope}/{key} | Store one form detail | Binnenkort |
DELETE | /v1/form-profile/fields/{scope}/{key} | Remove one form detail | Binnenkort |
POST | /v1/form-profile/fields/{scope}/{key}/restore | Restore a removed form detail | Binnenkort |
Read the stored form details
GET /v1/form-profile
Returns what is stored for filling in forms: the organisation fields (legal name, KvK, VAT, address, IBAN …), your own personal fields (birth date, job title …) and the personal fields colleagues chose to share. Non-shared personal fields of colleagues are never returned. Values are stored encrypted. Personal credentials only (personal token or Keycloak user token); a service key is refused.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:form_profile:read - Goedkeuring:
none, geen extra stap.
Parameters
include_deleted
Also list soft-deleted own and organisation fields. Een van:true,false
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
409 | A request with the same Idempotency-Key is still running. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
503 | Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged. |
curl -s "https://api.prudai.com/v1/form-profile" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo form-profileStore one form detail
PUT /v1/form-profile/fields/{scope}/{key}
Stores or replaces one field. organization fields need an owner or admin; person fields are always your own (there is no way to store someone else’s personal details). The server validates the shape (KvK 8 digits, VAT NL123456789B01, IBAN check digits, dates) and refuses BSN, identity documents, health and other special categories of personal data. Personal credentials only.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:form_profile:write - Goedkeuring:
confirm, de gebruiker bevestigt precies deze aanroep. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op.
Parameters
scopeverplicht
organization = company data (owner/admin writes); person = your own details. Een van:organization,personkeyverplicht
Catalog key (kvk_number, vat_number, legal_name, street_address, postal_code, city, iban, birth_date, job_title …) or custom:<name>. patroon^(custom:)?[a-z][a-z0-9_]{1,47}$dryRun
Validate with no persistent changes. Een van:true,false
Body
JSON, verplicht.
valueverplicht
max. lengte 300label
Name of a custom field as the form asks it. max. lengte 80shared_with_org
person only: colleagues may use this field in their forms (default false).
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
409 | A request with the same Idempotency-Key is still running. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
503 | Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged. |
curl -s -X PUT "https://api.prudai.com/v1/form-profile/fields/organization/<key>" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "value": "string", "label": "string", "shared_with_org": false }'prudai leo form-profile-fields updateRemove one form detail
DELETE /v1/form-profile/fields/{scope}/{key}
Soft-deletes one field; restoreFormProfileField puts it back. Personal credentials only.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:form_profile: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
scopeverplicht
organization = company data (owner/admin writes); person = your own details. Een van:organization,personkeyverplicht
Catalog key (kvk_number, vat_number, legal_name, street_address, postal_code, city, iban, birth_date, job_title …) or custom:<name>. patroon^(custom:)?[a-z][a-z0-9_]{1,47}$dryRun
Validate with no persistent changes. Een van:true,false
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
409 | A request with the same Idempotency-Key is still running. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
503 | Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged. |
curl -s -X DELETE "https://api.prudai.com/v1/form-profile/fields/organization/<key>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo form-profile-fields deleteRestore a removed form detail
POST /v1/form-profile/fields/{scope}/{key}/restore
Restores the most recently removed field with this key, unless an active field with the same key exists (409). Personal credentials only.
- Stand: binnenkort, nog niet op productie.
- Scope:
prudai:form_profile:write - Goedkeuring:
confirm, de gebruiker bevestigt precies deze aanroep. - Dry run:
?dryRun=truelaat zien wat er zou gebeuren en slaat niets op.
Parameters
scopeverplicht
organization = company data (owner/admin writes); person = your own details. Een van:organization,personkeyverplicht
Catalog key (kvk_number, vat_number, legal_name, street_address, postal_code, city, iban, birth_date, job_title …) or custom:<name>. patroon^(custom:)?[a-z][a-z0-9_]{1,47}$dryRun
Validate with no persistent changes. Een van:true,false
Body
JSON, optioneel.
Antwoorden
| Status | Betekenis |
|---|---|
200 | Task envelope with the result. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | project_not_found (unknown project, or one you may not read: the same answer), document_not_found (not in this project), or original_unavailable (the original file is no longer stored). |
409 | A request with the same Idempotency-Key is still running. |
422 | Well-formed request with invalid values (for example an unknown reasoning_effort, empty messages, or an Idempotency-Key reused with a different body). |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
503 | Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged. |
curl -s -X POST "https://api.prudai.com/v1/form-profile/fields/organization/<key>/restore" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{}'prudai leo form-profile-fields restore