Skip to content

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.

MethodPathWhat it doesState
GET/v1/form-profileRead the stored form detailsComing soon
PUT/v1/form-profile/fields/{scope}/{key}Store one form detailComing soon
DELETE/v1/form-profile/fields/{scope}/{key}Remove one form detailComing soon
POST/v1/form-profile/fields/{scope}/{key}/restoreRestore a removed form detailComing 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 query · string
    Also list soft-deleted own and organisation fields. One of: true, false

Responses

StatusMeaning
200Task envelope with the result.
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).
404project_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).
409A request with the same Idempotency-Key is still running.
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.
503Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged.
curl
curl -s "https://api.prudai.com/v1/form-profile" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo form-profile

Store 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=true shows what would happen and stores nothing.

Parameters

  • scope path · string required
    organization = company data (owner/admin writes); person = your own details. One of: organization, person
  • key path · string required
    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 query · string
    Validate with no persistent changes. One of: true, false

Body

JSON, required.

  • value string required
    max length 300
  • label string
    Name of a custom field as the form asks it. max length 80
  • shared_with_org boolean
    person only: colleagues may use this field in their forms (default false).

Responses

StatusMeaning
200Task envelope with the result.
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).
404project_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).
409A request with the same Idempotency-Key is still running.
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.
503Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged.
curl
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
}'
CLI (coming soon)
prudai leo form-profile-fields update

Remove 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=true shows what would happen and stores nothing.
  • Deleting is soft; see Conventions.

Parameters

  • scope path · string required
    organization = company data (owner/admin writes); person = your own details. One of: organization, person
  • key path · string required
    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 query · string
    Validate with no persistent changes. One of: true, false

Responses

StatusMeaning
200Task envelope with the result.
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).
404project_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).
409A request with the same Idempotency-Key is still running.
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.
503Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged.
curl
curl -s -X DELETE "https://api.prudai.com/v1/form-profile/fields/organization/<key>" \
-H "Authorization: Bearer $PRUDAI_TOKEN"
CLI (coming soon)
prudai leo form-profile-fields delete

Restore 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=true shows what would happen and stores nothing.

Parameters

  • scope path · string required
    organization = company data (owner/admin writes); person = your own details. One of: organization, person
  • key path · string required
    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 query · string
    Validate with no persistent changes. One of: true, false

Body

JSON, optional.

Responses

StatusMeaning
200Task envelope with the result.
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).
404project_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).
409A request with the same Idempotency-Key is still running.
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.
503Temporarily unavailable (maintenance, overload, or the credit check could not be performed). Nothing ran, nothing is charged.
curl
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 '{}'
CLI (coming soon)
prudai leo form-profile-fields restore