Ga naar inhoud

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.

MethodePadWat het doetStand
GET/v1/form-profileRead the stored form detailsBinnenkort
PUT/v1/form-profile/fields/{scope}/{key}Store one form detailBinnenkort
DELETE/v1/form-profile/fields/{scope}/{key}Remove one form detailBinnenkort
POST/v1/form-profile/fields/{scope}/{key}/restoreRestore a removed form detailBinnenkort

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 query · string
    Also list soft-deleted own and organisation fields. Een van: true, false

Antwoorden

StatusBetekenis
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 (binnenkort)
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.

  • Stand: binnenkort, nog niet op productie.
  • Scope: prudai:form_profile:write
  • Goedkeuring: confirm, de gebruiker bevestigt precies deze aanroep.
  • Dry run: ?dryRun=true laat zien wat er zou gebeuren en slaat niets op.

Parameters

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

Body

JSON, verplicht.

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

Antwoorden

StatusBetekenis
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 (binnenkort)
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.

  • Stand: binnenkort, nog niet op productie.
  • Scope: prudai:form_profile:delete
  • Goedkeuring: review, een tweede persoon of rol keurt goed.
  • Dry run: ?dryRun=true laat zien wat er zou gebeuren en slaat niets op.
  • Verwijderen is zacht; zie Conventies.

Parameters

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

Antwoorden

StatusBetekenis
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 (binnenkort)
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.

  • Stand: binnenkort, nog niet op productie.
  • Scope: prudai:form_profile:write
  • Goedkeuring: confirm, de gebruiker bevestigt precies deze aanroep.
  • Dry run: ?dryRun=true laat zien wat er zou gebeuren en slaat niets op.

Parameters

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

Body

JSON, optioneel.

Antwoorden

StatusBetekenis
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 (binnenkort)
prudai leo form-profile-fields restore