Beantragt
OpenAPI contract for Backend API v1: fetch forms, submit applications with attachments, read applications and case counts for specialist systems, API sign-in.

The contract covers public forms, application submission, comments and status queries, among others. The base URL is the Drupal address of the respective installation. This documentation site does not provide an API server.

Read access for staff integrations

Case management systems use a dedicated regular staff account with read access to the required workspace. Accounts with the service-account profile receive HTTP 403. The credentials are sent using HTTP Basic over TLS from the internal network only. jurisdiction names the municipality. Accounts with a department membership also supply organisation. Both values are slugs.

Method and pathResult
GET /api/v1/staff/applicationsVisible applications with their current status and last change.
GET /api/v1/staff/applications/{application_uuid}Details of an application identified by its UUID. Permissions determine which protected fields are visible.
GET /api/v1/staff/applications/countsWorkspace total and counts by form and form group.
GET /api/v1/staff/applications/reportSummary by status, form and day. from and to limit the reporting period.

The list gives the current status and the time of the last case update. Detail also returns a timeline with timestamps and statuses from revisions the account can read. Consecutive identical statuses are collapsed. This history does not record every field edit.

Example for Stadt Musterstadt

The request runs on an internal integration host. The example host and slugs are replaced with the values of the installation. curl prompts for the password of the staff account.

curl --user staff-reader \
  'https://backend.example.org/api/v1/staff/applications/counts?jurisdiction=musterstadt&organisation=service'

Public and authenticated operations

PurposeOperations in the v1 contract
Catalogue and schemaGET /api/v1/jurisdictions/{slug}/forms, followed by GET /api/v1/forms/{form_schema_uuid}
Editorial contentWithin the jurisdiction, pages, sections and documents return published content. A download uses the link from the document listing.
SubmissionPOST /api/v1/attachments returns a single-use claim for the file field. POST /api/v1/applications binds the file to the application.
CorrespondenceA message attachment is first uploaded under comment-attachments if required. Its claim is bound when the message is created under comments on the same application.
StatusGET /api/v1/status/{public_status_token} returns the released status projection.

A safe retry of a submission reuses the same Idempotency-Key, JSON payload and caller context. The replay window is 15 minutes. A different payload with the same key returns HTTP 409. Session cookie, CSRF header and workspace depend on the operation.

Sign-in through the API

Sign-in through the API follows the same one-time code by email flow and applies to citizen accounts. POST /api/v1/auth/request-code requests the code and returns a challengeId. POST /api/v1/auth/verify-code receives the code and the challengeId with the same session cookie. With too many requests, the service responds with HTTP 429. Staff, administrator and service accounts are outside this sign-in profile. The fields are listed under the endpoints and schemas.

Endpoints and schemas