Prudai Developer API: form profile
The operations of this part (Form profile).
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/form-profile | Read the stored form details | Coming soon |
PUT | /v1/form-profile/fields/{scope}/{key} | Store one form detail | Coming soon |
DELETE | /v1/form-profile/fields/{scope}/{key} | Remove one form detail | Coming soon |
POST | /v1/form-profile/fields/{scope}/{key}/restore | Restore a removed form detail | Coming soon |
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.
- State: coming soon, not in production yet.
- Scope:
prudai:form_profile:read - Approval:
none, no extra step.
Parameters
include_deleted
Also list soft-deleted own and organisation fields. One of:true,false
Responses
| Status | Meaning |
|---|---|
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.
- State: coming soon, not in production yet.
- Scope:
prudai:form_profile:write - Approval:
confirm, the user confirms exactly this call. - Dry run:
?dryRun=trueshows what would happen and stores nothing.
Parameters
scoperequired
organization = company data (owner/admin writes); person = your own details. One of:organization,personkeyrequired
Catalog key (kvk_number, vat_number, legal_name, street_address, postal_code, city, iban, birth_date, job_title …) or custom:<name>. pattern^(custom:)?[a-z][a-z0-9_]{1,47}$dryRun
Validate with no persistent changes. One of:true,false
Body
JSON, required.
valuerequired
max length 300label
Name of a custom field as the form asks it. max length 80shared_with_org
person only: colleagues may use this field in their forms (default false).
Responses
| Status | Meaning |
|---|---|
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.
- State: coming soon, not in production yet.
- Scope:
prudai:form_profile:delete - Approval:
review, a second person or role approves. - Dry run:
?dryRun=trueshows what would happen and stores nothing. - Deleting is soft; see Conventions.
Parameters
scoperequired
organization = company data (owner/admin writes); person = your own details. One of:organization,personkeyrequired
Catalog key (kvk_number, vat_number, legal_name, street_address, postal_code, city, iban, birth_date, job_title …) or custom:<name>. pattern^(custom:)?[a-z][a-z0-9_]{1,47}$dryRun
Validate with no persistent changes. One of:true,false
Responses
| Status | Meaning |
|---|---|
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.
- State: coming soon, not in production yet.
- Scope:
prudai:form_profile:write - Approval:
confirm, the user confirms exactly this call. - Dry run:
?dryRun=trueshows what would happen and stores nothing.
Parameters
scoperequired
organization = company data (owner/admin writes); person = your own details. One of:organization,personkeyrequired
Catalog key (kvk_number, vat_number, legal_name, street_address, postal_code, city, iban, birth_date, job_title …) or custom:<name>. pattern^(custom:)?[a-z][a-z0-9_]{1,47}$dryRun
Validate with no persistent changes. One of:true,false
Body
JSON, optional.
Responses
| Status | Meaning |
|---|---|
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