Choose the integration account
The REST API and Model Context Protocol (MCP) provide access to Feldwerk without reproducing browser clicks. Operations run as the account that owns the token. A member token does not become an administrator token merely because an assistant uses it.
For a recurring integration, use a dedicated account with the required object and field permissions. Consider closed field access when only explicitly approved fields should be exposed. Test with that account before connecting the integration. See Users, permissions and sharing.

- Tokens act as their owner.
- Create a named token.
- Review last use and expiry.
Select the screenshot to open the full-size image.
Create and revoke a token
- Sign in as the account the integration should use.
- Open Setup → API Tokens and select New Token.
- Give it a name that identifies its purpose and choose an appropriate validity period.
- Copy the token when it is shown. The complete value is returned only once.
- Store it in the integration’s credential settings and use the header
Authorization: Bearer YOUR_TOKEN. - Return to the token list to review last use and expiry. Revoke a token when the integration is retired or the credential needs replacing.
Each user manages their own tokens. Do not place a real token in a prompt, screenshot, shared script or source repository. The examples below deliberately use a placeholder.

- Name the integration.
- Set the validity period.
- Create the token; copy its secret only into your credential store.
Select the screenshot to open the full-size image.
Read through the REST API
Use your organisation’s Feldwerk address as the base URL. For example, request GET /api/objekte with the authorization header to discover accessible objects. Read the object’s field definitions before constructing record values. Object labels help people navigate; field API names are the keys used in the record’s werte object.
Record writes use the regular validation and automation pipeline. A field can be required, calculated, restricted or subject to a validation rule. Handle the returned error instead of assuming that a successful connection means every operation is permitted. Use pagination when reading lists.
Connect an MCP client
- Choose a client that supports an HTTP MCP server with bearer-token authentication.
- Set the server URL to
https://YOUR-FELDWERK-HOST/mcp. - Configure the bearer token in the client’s credential field.
- Connect and let the client initialise and discover tools.
- Start with a read-only task, such as listing the accessible objects.
The server uses HTTP POST and is stateless. Opening /mcp as an ordinary browser page is not a connection test. Its tool names and API identifiers remain technical German names even when the interface language is English; use the discovered names exactly.
Discover before writing
- Call
objekte_auflistento identify the object API name. - Call
felder_auflistenfor that object and inspect its field API names and types. - Call
datensaetze_auflistenwith an appropriate filter or page size. - Read the intended record before proposing a change. Use a specific record ID rather than assuming a name is unique.
- After a permitted write, read back the result, including calculated values and relevant automation effects.
For the example Opportunities object, a tool call is {"name":"datensaetze_auflisten","arguments":{"objekt":"chance"}}. The handbook’s local client verifies that a read-only member receives these records without the restricted wert field. The same account’s API edit attempt is refused.
Use the generic API tools
If no dedicated tool covers an operation, use api_operationen_auflisten to discover a registered route, then api_operation_lesen to inspect its schema. Missing historical schema documentation is explicitly flagged; do not guess an unknown request body. Pass the exact route template, parameters and body to api_aufrufen.
Large results are returned in sections. Use api_ergebnis_lesen with the supplied next offset to continue reading the stored response. This does not execute the original operation again. The cache lasts at most ten minutes and can be evicted earlier; it is a snapshot of the original authorised response, not a live query after permissions change. Do not automatically repeat a mutation just because its cached response expired.
Binary responses initially provide metadata and a download link. Request binary contents explicitly only when needed. The generic bridge does not perform browser OAuth consent, change the authentication session, or expose newly created secret tokens in the model context. Configure credentials through the intended user-facing channel.
Diagnose connection and permission errors
For authentication failures, check the base URL, bearer header, token expiry and revocation. For forbidden operations, inspect the token owner’s permissions and record sharing. A tool result can report an operation error even when the HTTP request itself succeeded; inspect the MCP result’s isError and message. If a write timed out, read the target record before retrying to avoid duplicate work.
Upload a file through an integration
Files belong to records and require permission to edit the target record. For a small file, the MCP tool anhang_hochladen accepts base64 content. For larger files, use anhang_upload_ticket so your client can transfer the file directly without putting its contents into an assistant’s context.
- Identify the destination record and request an upload ticket. The equivalent REST request is
POST /api/anhaenge/upload-ticketwith{"datensatzId":"RECORD_ID"}. - Use the returned
uploadUrl. Send a multipart POST with the file in the field named byfeld(currentlydatei) and the ticket in the header named byheader(currentlyX-Upload-Ticket). - Check the successful response and read the record’s attachment list. Download the attachment through its normal authorised download route if you need to verify its contents.
A ticket is a credential: keep it private. It expires after 15 minutes, is lost on server restart and can be used only once. A failed upload attempt also consumes it; request a fresh ticket before retrying. The record-attachment limit is 25 MiB. The handbook check uploads a small text file, compares the downloaded bytes and verifies that replaying the ticket is refused.
Inspect registered plugins
As an administrator, open Setup → Plugins. The catalogue shows the extensions registered on this server, their versions, action identifiers, generators, importers and feeds. It is an inventory, not an installation or enable/disable screen. Configuration belongs to the extension’s own settings or records. For example, an email plugin entry does not mean that a mailbox has been connected.
Use the exact technical identifiers shown in the catalogue when discovering an action through the API or configuring automation. A coverage percentage is a snapshot of automated code tests, not a health check of the live external service. A dash does not establish that a connection is broken.

- Identify the installed extension and version.
- Copy the exact importer identifier.
- Treat test coverage as a code-test snapshot, not a live connection status.
Select the screenshot to open the full-size image.
Import JSON records
The built-in import-json plugin provides named importers, rather than a generic CSV upload wizard. An administrator can send one JSON object or an array to POST /api/import/IMPORTER_NAME. Discover the registered names through GET /api/plugins. Import writes follow the normal permission, field validation and automation pipeline.
import.opportunity targets the object whose API name is exactly opportunity. It does not automatically target the handbook’s chance object just because that object is labelled Opportunities. Prepare the destination schema before importing. Its mapping includes Opportunity_Name → name and External_ID → externe_id; an external ID is preferred as the update key, with SF_ID/sf_id supported as a fallback key. Technical source keys are case-sensitive and are not translated with the interface.
POST /api/import/import.opportunity
[
{
"Opportunity_Name": "Service planning",
"External_ID": "example-001"
}
]When a matching key exists, the importer updates that record; otherwise it creates one. Use a stable, unique key and configure uniqueness where appropriate. A missing key is an error. Blank source values are skipped, so this importer is not a way to clear a stored field.
import.kontakt targets kontakt. It uses an external ID when supplied, otherwise email. Its predefined source mapping includes Nachname, Vorname and E-Mail-Adresse, and it supplies default contact-type and status values. The destination must contain the fields expected by that mapping; it does not automatically resolve account relationships. Review the installed importer’s mapping before using it with your own data model.
- Prepare the target object, fields and update key. Try a small representative batch first.
- Send the JSON to the chosen importer.
- Inspect
erstellt(created),aktualisiert(updated) and every entry infehler(errors). - Use the error’s
zeileto locate the input row; numbering starts at 1. A whole-input error can use row 0. - Read back successful records, including calculated fields and automation effects. Correct failed rows before retrying them.
An HTTP 200 response can contain partial success. Successful rows remain stored when another row fails. Do not treat the response as an all-or-nothing transaction or blindly resubmit a batch with unstable keys. The handbook’s two-row check creates one record, reports the other row as an error, then updates the existing record on a second import without creating a duplicate.
Configure Microsoft 365 contact synchronisation
Contact synchronisation uses the object with API name kontakt. As an administrator, open Setup → Contact Sync to map fields and inspect mailbox status. The screenshot shows the local configuration with no external mailbox connected; it does not claim a live Microsoft 365 sync.

- Select a field or disable the slot.
- Check both-way versus push-only synchronisation.
- Save and review the mapping version.
- Inspect mailbox status and check for unlinked Outlook contacts.
Select the screenshot to open the full-size image.
- Review the contact object and the information that may be exported. The synchronisation service uses a system identity; a mailbox user’s field-level restrictions are not an export filter. The mapping is the explicit selection of contact properties to synchronise.
- For each Outlook property, select a compatible Feldwerk field or — do not synchronise —. The available slots cover first and last name, one email address, business and home phone, mobile phone, job title, department and company.
- Read the direction column. Most slots synchronise both ways. Company is push-only, from Feldwerk to Outlook; a lookup can supply the related record’s display name. The contact’s own display name is also sent as Outlook’s display name and filing name, outside the configurable slots.
- Select Save. A changed mapping increments its version and schedules a full reconciliation on the next worker run. Saving an unchanged mapping does not increment the version.
- In Setup → Outbox, use an active Microsoft-connected mailbox and enable Synchronise contacts. The Microsoft connection needs contact access (
Contacts.ReadWrite). If the status requests renewed authorisation, reconnect through the mailbox’s Microsoft consent flow. - Return to Contact Sync and inspect the last run, mapping version, active/disconnected/failed link counts and last error. A pending version means the mailbox has not yet reconciled the latest mapping.
In the configuration API, PUT /api/kontakt-sync/konfig replaces the complete mapping. Omitted slots become disabled; send the full intended mapping rather than a one-slot patch. The server rejects incompatible field types. A saved field that has disappeared or changed to an incompatible type is shown as such in the selector; choose a valid replacement.
Which contacts go where?
An internal contact, including one with empty visibility, is eligible for every mailbox with contact sync enabled. A private contact is eligible only for its owner’s linked mailbox. This contact visibility field does not itself change who can read the record inside Feldwerk. Configure object defaults and sharing separately; see Users, permissions and sharing.
Create new contacts in Feldwerk. The sync creates their Outlook counterparts and exchanges changes on linked contacts. A new card created only in Outlook is not automatically imported into Feldwerk. During initial matching, an existing Outlook card can be adopted when its email, or then its name, identifies an unambiguous match. Ambiguous matches are not guessed.
Changes, conflicts and deletion
Changes to different fields can merge. When both sides change the same synchronised field, Feldwerk wins. Company and the record display name remain controlled by Feldwerk. Deleting a linked Outlook card disconnects the link; it does not delete the Feldwerk record or automatically recreate the card. Moving it outside the supported contact folder can also disconnect it. Ask an administrator to investigate the link state.
Deleting a contact in Feldwerk removes its synchronised counterparts. Changing an internal contact to private removes copies from other eligible mailboxes. Switching off Synchronise contacts pauses work; it does not remove copies already in Outlook. Shared mailboxes, contact subfolders, photos, notes, addresses and birthdays are outside this synchronisation’s supported scope.
Investigate an unlinked Outlook card
Select Check now under Unlinked Outlook contacts to read the enabled mailboxes on demand. This diagnostic is not a bulk importer. A duplicate indication links to the corresponding Feldwerk record. Compare the information and preserve needed details before removing any obsolete Outlook card. Changes made on an unlinked card do not flow into Feldwerk. If no mailbox has contact sync enabled, the screen says so rather than reporting a successful remote sync.

