REST API Reference
All modeler REST endpoints are mounted under the base path configured by cibseven.webclient.services.basePath (default: /services/v1), appended with /modeler.
Base URL: {basePath}/modeler
All endpoints require an authenticated user who holds the application ACCESS permission for the modeler resource — the same permission that decides whether the modeler is shown in the UI. See Authentication. Changed in 3.0.0.
Diagrams (BPMN / DMN)
A write refuses a value longer than its column with 400 Bad Request rather than letting the database fail: name holds 255 characters, processkey 100 and description 150.
List Diagrams
GET /modeler/processes
Returns a paginated, reduced list of diagram metadata (excludes raw XML bytes).
Query Parameters:
| Parameter | Required | Description |
|---|---|---|
firstResult |
Yes | Zero-based offset for pagination |
maxResults |
Yes | Maximum number of results to return |
diagramType |
No | Filter by type: bpmn-c7, dmn, etc. |
keyword |
No | Filter by name (case-insensitive substring) |
Response: 200 OK — Array of ProcessDiagramReduce objects.
List Unified Diagrams
GET /modeler/unified-diagrams
Returns a combined list of BPMN diagrams and forms in a unified format.
Query Parameters:
| Parameter | Required | Description |
|---|---|---|
firstResult |
Yes | Pagination offset |
maxResults |
Yes | Maximum results |
keyword |
No | Name filter |
type |
No | diagram or form |
folderId |
No | Only the models in this folder; every folder when absent. Available from 3.0.0 |
Each entry carries the folderId of the folder it is filed in, from 3.0.0.
Get Unified Diagram by ID
GET /modeler/unified-diagrams/{id}
Returns one diagram or form in the unified format: id, name, type (bpmn-c7, dmn or form), processkey (the process key, or the form id of a form), formId, description, created, updated, updatedBy, version and folderId. 404 Not Found when there is none with this ID. In the enterprise edition, from 3.0.0, a model in a project the caller may not see is refused, see Project Members.
Get Diagram by ID
GET /modeler/process/{id}
Returns the full ProcessDiagramEntity including metadata.
Get Diagram XML by ID
GET /modeler/process/{id}/data
Returns the raw diagram bytes (BPMN or DMN XML) as application/octet-stream.
Create Diagram from File Upload
POST /modeler/process/create
Uploads a .bpmn or .dmn file and saves it as a new diagram.
Form Parameters:
| Parameter | Required | Description |
|---|---|---|
file |
Yes | Multipart file upload (.bpmn or .dmn) |
overwrite |
Yes | true to overwrite an existing diagram: from 3.0.0 the one with the file’s process key in the folder named, before that one with the same name |
folderId |
Yes | The folder to file the diagram in. Required from 3.0.0 |
Save Diagram (form data)
POST /modeler/process/save
Creates or updates a diagram from form-encoded data.
Form Parameters: name, processkey, description, active, type, diagram (multipart file), folderId
folderId names the folder the diagram is filed in and is required from 3.0.0: a diagram lives in exactly one folder, and none is chosen for the caller.
Save Diagram (JSON body)
POST /modeler/process/save/object
Creates or updates a diagram from a JSON body. If the entity’s id matches an existing record it is updated; otherwise a new record is created.
Request Body: ProcessDiagramEntity JSON object. A new diagram needs its folderId from 3.0.0; an update leaves the diagram where it is when the field is absent.
Update Diagram
POST /modeler/process/update
Updates an existing diagram by ID with new metadata and XML.
Form Parameters: id, name, processkey, description, active, type, diagram (multipart file)
Find Diagram by Name
POST /modeler/process/find-by-name/data
Returns the raw diagram bytes for the diagram with the given name. Names are not unique; when several diagrams have it, the one changed last among those the caller may see is returned.
Query Parameters: name
Find Diagram by Process Key
POST /modeler/process/find-by-key/data
Returns the raw diagram bytes for the diagram with the given process key.
GET /modeler/process/find-by-key
Returns the ProcessDiagramEntity for the diagram with the given process key.
Query Parameters (both):
| Parameter | Required | Description |
|---|---|---|
key |
Yes | The process key |
folderId |
No | The folder to look in. Available from 3.0.0 |
A process key is unique within a folder, not across folders (from 3.0.0). With folderId, the diagram in that folder is returned. Without it, the one changed last among the diagrams the caller may see; a diagram in a project hidden from the caller is never returned.
Response: 200 OK, or 404 Not Found when there is none.
Check Whether Another Diagram Has the Key
GET /modeler/process/key-in-use
Available from 3.0.0.
Query Parameters:
| Parameter | Required | Description |
|---|---|---|
key |
Yes | The process key |
id |
No | The diagram to leave out, when it is saved |
Response: true when a diagram other than the one given has the key, in any folder and any project, including those hidden from the caller, else false. The answer names none of them. The engine keeps one process definition per key, so deploying either adds a new version to what the other deployed; the modeler warns about it at deploy time.
Delete Diagram
DELETE /modeler/process/delete/{id}
Permanently deletes the diagram with the given ID.
Move Diagram to a Folder
POST /modeler/process/{id}/move
Available from 3.0.0.
Body:
| Field | Required | Description |
|---|---|---|
folderId |
Yes | The folder to file the diagram in |
The diagram keeps its id and its process key, so deployments made from it and links to it still resolve.
Response: 200 OK — the moved ProcessDiagramEntity. 400 Bad Request when no folder is named, or when the folder already holds a diagram with the same process key (from 3.0.0). 404 Not Found when the diagram or the folder does not exist.
Copy Diagram into a Folder
POST /modeler/process/{id}/copy
Available from 3.0.0.
Body:
| Field | Required | Description |
|---|---|---|
folderId |
Yes | The folder to put the copy in |
processkey |
No | The process key of the copy; the key of the original when absent. Required before 3.0.0 |
name |
No | Name of the copy; the name of the original when absent |
From 3.0.0 a process key is unique within a folder, so a copy into another folder may keep the key of the original. Before 3.0.0 a copy needed a key of its own.
Response: 200 OK — the created copy. 400 Bad Request when the folder already holds a diagram with the key.
Deployment
Deploy Diagram by File
POST /modeler/deployment/create
Deploys an uploaded diagram file directly to the CIB seven engine.
Form Parameters: deployment-name, deployment-source, deploy-changed-only, file (multipart)
Deploy Diagram by ID
POST /modeler/deployment/create/{id}
Retrieves a stored diagram by its database ID and deploys it to the engine.
Path Parameters: id (diagram database ID)
Deploy Diagram by Key (Reduce)
POST /modeler/deployment/create/reduce
Retrieves a stored diagram by process key and deploys it.
Form Parameters: deploymentName (process key), file, folderId (optional, available from 3.0.0: the folder of the diagram)
Without folderId, the diagram changed last among those the caller may edit is taken (from 3.0.0), as a process key may repeat across folders.
Check Deployment Connectivity
GET /modeler/deployment
Checks that the authenticated user has access to the deployment endpoint. Returns 200 OK if authorized.
Start Process
POST /modeler/deployment/start/{key}
Starts a new instance of the deployed process definition identified by key.
Path Parameters: key (process definition key)
Request Body: JSON map of process variables
Sessions
Open Session
POST /modeler/session/save
Records that the current user has opened a diagram or form for editing.
Form Parameters: type (diagram or form), id (diagram or form ID), diagram (current XML snapshot)
Close Session
POST /modeler/session/close
Closes one or more editing sessions for the current user.
Form Parameters: sessionId (comma-separated list), type (diagram or form)
Check Diagram Session
GET /modeler/process/session/check/{id}
Checks whether another user currently has the diagram open.
Path Parameters: id (diagram ID)
Response:
message value |
Meaning |
|---|---|
NO_SESSION |
No one else has this diagram open |
SAME_USER |
The current user already has it open |
SESSION_FOUND |
Another user has it open — response includes userId and openedAt |
Check Form Session
GET /modeler/form/session/check/{id}
Same as above but for forms.
Forms
A write refuses a value longer than its column with 400 Bad Request: formId holds 100 characters and description 150.
List Forms
GET /modeler/forms
Returns a paginated list of saved forms.
Query Parameters: firstResult, maxResults, keyword
Get Form Schema by ID
GET /modeler/form/{id}/data
Returns the form JSON schema as application/json.
Save Form
POST /modeler/form/save
Creates a new form with the given ID and schema.
Form Parameters: formid, form_schema (multipart JSON file), folderId
folderId names the folder the form is filed in and is required from 3.0.0.
Update Form
POST /modeler/form/update
Updates an existing form.
Form Parameters: id, formid, form_schema (multipart JSON file)
Delete Form
DELETE /modeler/form/delete/{id}
Permanently deletes the form and its session records.
Find Form by Form Id
GET /modeler/form/find-by-formid
Returns the FormEntity with the given form id.
Query Parameters:
| Parameter | Required | Description |
|---|---|---|
formId |
Yes | The form id |
folderId |
No | The folder to look in. Available from 3.0.0 |
A form id is unique within a folder, not across folders (from 3.0.0). With folderId, the form in that folder is returned. Without it, the one changed last among the forms the caller may see.
Response: 200 OK, or 404 Not Found when there is none.
Find All Forms by Form Id
GET /modeler/form/find-all-by-formid
Available from 3.0.0.
Query Parameters: formId
Response: 200 OK — the forms with this form id the caller may see, the one changed last first. A form reference in a diagram may match several of them.
Check Whether Another Form Has the Form Id
GET /modeler/form/key-in-use
Available from 3.0.0.
Query Parameters:
| Parameter | Required | Description |
|---|---|---|
formId |
Yes | The form id |
id |
No | The form to leave out, when it is saved |
Response: true when a form other than the one given has the form id, in any folder and any project, including those hidden from the caller, else false. The answer names none of them.
Move Form to a Folder
POST /modeler/form/{id}/move
Available from 3.0.0.
Body:
| Field | Required | Description |
|---|---|---|
folderId |
Yes | The folder to file the form in |
The form keeps its id and its form id.
Response: 200 OK — the moved FormEntity. 400 Bad Request when the folder already holds a form with the same form id (from 3.0.0).
Copy Form into a Folder
POST /modeler/form/{id}/copy
Available from 3.0.0.
Body:
| Field | Required | Description |
|---|---|---|
folderId |
Yes | The folder to put the copy in |
formId |
No | The form id of the copy; the form id of the original when absent. Required before 3.0.0 |
From 3.0.0 a form id is unique within a folder, so a copy into another folder may keep the form id of the original. Before 3.0.0 a copy needed a form id of its own.
Response: 200 OK — the created copy. 400 Bad Request when the folder already holds a form with the form id.
Folders
Available from 3.0.0. Folders organize stored diagrams and forms; every model is filed in exactly one. A folder without a parent is at the top level, which holds folders only — a model is never stored there.
List Folders
GET /modeler/folders
Returns every folder, each carrying the parentId of the folder holding it, so one call is enough to build the whole tree. The list is empty when every folder has been deleted; listing creates nothing, not even the caller’s own folder (see Get Own Folder).
Response: 200 OK — array of FolderEntity objects. Each carries userFolder, which is true for the folder of a user: a folder at the top level named after the user who created it.
Get Folder
GET /modeler/folders/{id}
Response: 200 OK — the FolderEntity. 404 Not Found when there is none with that id.
Get Folder Contents
GET /modeler/folders/{id}/contents
Counts what the folder holds through its whole subtree, for a confirmation before deleting it.
Response: 200 OK — { "folders": 2, "diagrams": 7, "forms": 1 }
Get Own Folder
POST /modeler/folders/user-folder
Returns the caller’s own folder, the folder at the top level named after the caller’s user ID, and creates it on the first call. The modeler calls it when its start page opens, so a user gets a folder on the first visit rather than at login. A folder at the top level that already carries the user ID is returned as it is.
A user’s folder cannot be renamed, moved or deleted except by an administrator, a user granted the All permission on the System resource.
Response: 200 OK — { "folder": { ... }, "manageUserFolders": false }
| Field | Description |
|---|---|
folder |
The caller’s folder, a FolderEntity |
manageUserFolders |
Whether the caller may rename, move and delete the folders of users |
Get Access per Project
GET /modeler/folders/access
Available from 3.0.0. What the caller may do in each project they can see, so a client offers only that. In the community edition projects is empty, which means everything is allowed. The enterprise edition lists every project the caller can see, the open ones with restricted: false.
Response: 200 OK
{
"projects": {
"8d7f3c1e-...": { "role": "VIEWER", "restricted": true, "edit": false, "manageMembers": false }
},
"movesBetweenProjects": false
}
| Field | Description |
|---|---|
projects |
Per project id: the caller’s role there (PROJECT_ADMIN, EDITOR, VIEWER, or null), whether the project is restricted to its members, whether the caller may edit in it, and whether they may manage its members |
movesBetweenProjects |
Whether a folder or a model may be moved from one project into another. false in the enterprise edition |
Create Folder
POST /modeler/folders
Body:
| Field | Required | Description |
|---|---|---|
name |
Yes | Name of the folder, unique among the folders beside it |
parentId |
No | The folder to create it in; created at the top level when absent |
Response: 200 OK — the created folder. 400 Bad Request when the name is empty, longer than 255 characters, or already taken in that place.
Rename or Move Folder
PUT /modeler/folders/{id}
Body: send name, parentId, or both.
| Field | Description |
|---|---|
name |
The new name |
parentId |
The folder to move it into; null moves it to the top level |
The folder keeps its id, so everything below it stays reachable. A folder cannot be moved into itself or into one of its own subfolders. Sending both fields applies them together: if the move is refused, the folder is not renamed either.
Response: 200 OK — the updated folder. 400 Bad Request when the name is taken or the move would put the folder inside itself. 403 Forbidden when the folder is the folder of a user and the caller is not an administrator.
Delete Folder
DELETE /modeler/folders/{id}
Deletes the folder with everything below it: subfolders, diagrams and forms. This cannot be undone — call the contents endpoint first and confirm with the user. Deployed processes are unaffected.
Response: 200 OK — what was removed, in the shape the contents endpoint returns. 403 Forbidden when the folder is the folder of a user and the caller is not an administrator.
Projects with members
From 3.0.0 the enterprise edition answers every folder, diagram and form endpoint according to the caller’s role in the project concerned, see Project Members. Lists leave out the projects the caller may not see. Reading needs only to see the project, changing and deploying needs Editor, and renaming or deleting a project needs Project Admin. A request beyond the role is answered with 403 Forbidden. Moving a folder or a model into another project, or a project into a folder, is answered with 400 Bad Request.
Project Members (Enterprise Edition)
Available from 3.0.0. The members of a project, a folder at the top level. {projectId} is the id of that folder; any other folder is answered with 400 Bad Request. Reading the members needs only to see the project, so in an open project everyone may; everything else needs Project Admin, or the All permission on the System resource. Giving a project without members its first member needs that permission.
List Members
GET /modeler/projects/{projectId}/members
Response: 200 OK — array of members:
| Field | Description |
|---|---|
id |
Id of the membership, used to change or remove it |
memberType |
USER or GROUP |
memberId |
The user ID or the group ID |
role |
PROJECT_ADMIN, EDITOR or VIEWER |
Add Member
POST /modeler/projects/{projectId}/members
Body: { "memberType": "USER", "memberId": "john", "role": "EDITOR" }
Response: 200 OK — { "member": { ... }, "known": true }. known is false when the caller could not look the user or group up in the engine, so nothing confirms it exists; the member is added all the same. 400 Bad Request when a field is missing or the user or group is a member already.
Change Role
PUT /modeler/projects/{projectId}/members/{memberId}
Body: { "role": "VIEWER" }
Response: 200 OK — the member. 400 Bad Request when it would leave the project without a Project Admin.
Remove Member
DELETE /modeler/projects/{projectId}/members/{memberId}
Response: 200 OK. 400 Bad Request when it would leave the project without a Project Admin.
Search Users and Groups
GET /modeler/projects/{projectId}/member-candidates?search=jo&type=USER
Users or groups to add as members. type is required and names what is searched, USER or GROUP; a search without it is answered with 400 Bad Request. A user is found when the term is their exact user ID or part of their first or last name; a group when it is the exact group ID or part of the group’s name. At least two characters are needed. The engine is asked with the caller’s rights, so the answer holds only the users and groups the caller may read, and is empty for a caller who may read none.
Response: 200 OK — array of { "memberType": "USER", "id": "john", "name": "John Doe" }, at most ten.
Element Templates
The element templates the modeler offers, see Element Templates. {id} is the id of the stored template, not the id inside its JSON, which the request body calls templateId.
The plain listing needs an authenticated user only, because the cockpit’s diagram viewer loads it to draw template icons. Every other endpoint needs the modeler ACCESS permission like the rest of this page.
Request body of a template:
{
"name": "Send Email",
"templateId": "com.example.send-email",
"description": "Sends an email through the mail connector",
"content": "{ \"id\": \"com.example.send-email\", \"name\": \"Send Email\", ... }",
"active": true
}
content is the template JSON as a string.
| Endpoint | Description |
|---|---|
GET /modeler/element-templates |
All templates, active and inactive |
GET /modeler/element-templates/{id} |
One template. 404 Not Found when there is none |
POST /modeler/element-templates |
Creates a template from the request body |
PUT /modeler/element-templates/{id} |
Replaces a template with the request body |
PATCH /modeler/element-templates/{id} |
Changes the fields named in the body, a JSON map. 204 No Content when nothing changed |
DELETE /modeler/element-templates/{id} |
Deletes a template |
POST /modeler/element-templates/{id}/duplicate |
Stores a copy of a template |
POST /modeler/element-templates/bulk-delete |
Deletes the templates whose ids the body lists. Answers { "deleted": [...], "failed": [...], "totalRequested": 3, "totalDeleted": 2 } |
PATCH /modeler/element-templates/bulk-update-visibility |
Activates or deactivates several templates: { "templateIds": [...], "active": false }. 400 Bad Request without both fields |
GET /modeler/element-templates/search |
Templates matching all parameters given: name, creator, templateId and description match in part, active exactly |
GET /modeler/element-templates/filter |
Templates filtered by activeOnly (default true) and createdBy (exact, ignoring case) |
POST /modeler/element-templates/validate |
Checks a request body without storing it. Answers { "valid": false, "errors": ["Template ID already exists"] } |
POST /modeler/element-templates/import |
Stores the templates of an array of request bodies. Answers { "imported": [...], "failed": [...], "totalRequested": 2, "totalImported": 2 }, where failed names the templateId of each one that was not stored |
GET /modeler/element-templates/export |
The templates whose ids templateIds lists, or all; only active ones with activeOnly=true |
GET /modeler/element-templates/statistics |
{ "total": 12, "active": 10, "inactive": 2, "byCreator": { "john": 4, "System": 8 } } |
Snapshots (Enterprise Edition)
The saved states of a diagram or form, see Snapshots & Comparison.
| Endpoint | Description |
|---|---|
GET /modeler/process/history/{id} |
The snapshots of a diagram, as ProcessDiagramEntity objects |
GET /modeler/form/history/{id} |
The snapshots of a form, as FormEntity objects. Available from 3.0.0 |
Both list at most cibseven.webclient.modeler.history.maxResults snapshots. They need permission to see the model’s project, and answer with an empty array when the model does not exist, so the history of a deleted model is not shown.
Chat (Enterprise Edition)
Enterprise Feature
Chat endpoints are only available in the enterprise edition when both cibseven.webclient.modeler.enabled: true and cibseven.webclient.modeler.chat.enabled: true.
Chat endpoints are mounted under a separate base path: {basePath}/chat.
Base URL: {basePath}/chat
Get Message History
GET /chat/{roomId}/history
Returns chat messages for a room in reverse chronological order (newest first).
Path Parameters:
| Parameter | Description |
|---|---|
roomId |
Composite room identifier — see Real-time Chat |
Query Parameters:
| Parameter | Required | Default | Description |
|---|---|---|---|
limit |
No | 100 |
Maximum number of messages to return |
before |
No | — | ISO-8601 datetime — return only messages created before this timestamp (for pagination) |
elementId |
No | — | Filter messages by the BPMN element ID they are attached to |
Response: 200 OK — Array of message objects including id, roomId, userId, displayName, content, createdAt, editedAt, and optionally elementId. Soft-deleted messages are excluded.
Send Message
POST /chat/{roomId}
Creates a new message in the room. This endpoint is the primary way to send messages in the long-polling transport. In WebSocket mode, messages can also be published over STOMP (see Real-time Chat).
Path Parameters:
| Parameter | Description |
|---|---|
roomId |
Composite room identifier |
Request Body:
| Field | Required | Description |
|---|---|---|
content |
Yes | Message text (must not be blank) |
elementId |
No | BPMN element ID to attach the message to a specific element |
Response: 200 OK — The created message object.
Get Room Presence
GET /chat/{roomId}/presence
Returns the set of users currently active in the room. In the long-polling transport, presence is backed by the database and reflects users who have polled within the last ~60 seconds. In the WebSocket transport, it reflects users currently subscribed to the room’s WebSocket topic.
Path Parameters:
| Parameter | Description |
|---|---|
roomId |
Composite room identifier |
Response: 200 OK — Array of presence objects:
| Field | Description |
|---|---|
userId |
Authenticated user ID |
displayName |
User’s display name |
Long-Poll for Events
GET /chat/{roomId}/poll?since={cursor}
Long-polling endpoint used by the longpolling transport. The server holds the request for up to ~25 seconds and returns early when new events are available. The client immediately re-polls after each response.
Calling this endpoint also records a presence heartbeat for the authenticated user.
Path Parameters:
| Parameter | Description |
|---|---|
roomId |
Composite room identifier |
Query Parameters:
| Parameter | Required | Description |
|---|---|---|
since |
No | Opaque cursor returned by the previous poll. Omit on the first poll to establish a baseline — the server returns an empty event list and the current cursor. |
Response: 200 OK
| Field | Description |
|---|---|
cursor |
Opaque server-owned timestamp. Pass back as since on the next poll. |
events |
Array of change events since the cursor. Empty if nothing changed during the hold. Each event has an op field (create, update, or delete) and a message object. |
presence |
Current presence snapshot for the room — same format as Get Room Presence. |
Edit Message
PUT /chat/{roomId}/{messageId}
Replaces the text of a message. Only its author may edit it. The request body is the one of Send Message; only content is used, and it must not be blank.
Response: 200 OK — The edited message object, with editedAt set. The other users of the room receive an update event.
Delete Message
DELETE /chat/{roomId}/{messageId}
Deletes a message. Only its author may delete it. The message is kept in the database marked as deleted, and no longer returned by Get Message History. The other users of the room receive a delete event.
Leave Room
DELETE /chat/{roomId}/presence
Removes the caller from the presence of the room at once, instead of when the last poll ages out. Used by the longpolling transport, which has no disconnect to notice; with the websocket transport it does nothing. Available from 3.0.0.
BPMN AI Agent (Enterprise Edition)
Enterprise Feature
The agent endpoints exist only in the enterprise edition with cibseven.webclient.modeler.ai.enabled: true. See BPMN AI Agent.
The agent endpoints are mounted under {basePath}/agent. They are the interface between the agent panels of the modeler and the server; they need an authenticated user and a valid license.
Base URL: {basePath}/agent
| Endpoint | Description |
|---|---|
GET /agent/config |
The defaultModel and the models configured under cibseven.webclient.modeler.ai, for the model selector. Provider settings and API keys are not part of the answer |
POST /agent/chat/stream |
Runs one request of the agent and streams its progress as server-sent events, see below |
POST /agent/chat/cancel/{sessionId} |
Stops the running request of a chat session. The model call under way still completes, the remaining steps are skipped, and the stream ends with a cancelled event. 204 No Content, also when nothing runs |
Stream a Chat Request
POST /agent/chat/stream?folderId={folderId}
The caller must be allowed to change the models of the folder, see Project Members, and the engine must have its webclient tables, see Enable / Disable. The folderId parameter is available from 3.0.0.
Request Body (main fields):
| Field | Description |
|---|---|
message |
What the user asked |
sessionId |
Chat session chosen by the client; also the ID to cancel the request with |
model |
The value of one of the configured models; the default model when absent |
mode |
ask, plan or edit |
artifact |
bpmn (default) or form. form is available from 3.0.0, for the Form AI Agent |
currentBpmnXml / currentFormSchema |
The diagram or the form schema as it is in the editor |
files |
Attachments, each with name, mimeType and the content as Base64 in data |
Response: 200 OK, text/event-stream. The events are phase, delta, reasoning_delta, tool_call, usage, and one closing event: done with the result (for example the changed XML), error, or cancelled. A model that is not configured is reported as an error event with the code ModelNotAllowedException, not as an HTTP error.