Create a new room
const url = 'https://api-dev.mindflow.io/v1/organizations/%24CURRENT_ORGANIZATION_ID/environments/%24CURRENT_ENVIRONMENT_ID/rooms';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","userPrompt":"example","model":{"modelId":"gpt-4o","vendorId":"openai","name":"example"},"status":"ENABLED"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api-dev.mindflow.io/v1/organizations/%24CURRENT_ORGANIZATION_ID/environments/%24CURRENT_ENVIRONMENT_ID/rooms \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "userPrompt": "example", "model": { "modelId": "gpt-4o", "vendorId": "openai", "name": "example" }, "status": "ENABLED" }'Creates a chat room or a structured room. Pass blueprintId (and optional properties) to create a room of that catalog class.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Opaque id of the organization that owns the resource. In a playbook step this can be filled from the current organization when the caller leaves it unset.
Example
ORGA-57b858ed-ec60-4507-b2ef-ea58244ac742ID of the organization.
Opaque id of an environment. In a playbook step this can be filled from the current environment when the caller leaves it unset.
Example
ENVI-57b858ed-ec60-4507-b2ef-ea58244ac742Environment to create the room in.
Request Bodyrequired
Section titled “Request Bodyrequired”Create a classic AI chat room (not a structured case).
object
Display name of the room.
The initial user prompt for the room.
The LLM that answers in the room. Pick a model from the LLM catalog (listOrganizationModels) and pass its
modelId, vendorId, and name unchanged.
object
Catalog model id, for example gpt-5.1-2025-11-13 or amazon.nova-pro-v1:0.
Vendor that hosts modelId. Send the vendorId the catalog returns for that model.
Display name of the model.
Lifecycle state of the room in the platform.
Create an Incidents case (incident-ir-v0 blueprint). Selecting this option shows the case property form.
object
The initial user prompt for the room.
The LLM that answers in the room. Pick a model from the LLM catalog (listOrganizationModels) and pass its
modelId, vendorId, and name unchanged.
object
Catalog model id, for example gpt-5.1-2025-11-13 or amazon.nova-pro-v1:0.
Vendor that hosts modelId. Send the vendorId the catalog returns for that model.
Display name of the model.
Lifecycle state of the room in the platform.
Catalog blueprint for this case class.
Operational case for investigating and responding to a security incident
object
Short, searchable name for the incident
One-line summary shown under the title
Where the case sits in the incident-response lifecycle
Combined impact and urgency for how analysts should work this case
Incident type tags
Analyst or on-call owner currently responsible. Persist the Mindflow organization user id (USER-…). Call Platform Users listUsers to discover candidates (userId, name, email). Email or exact display name is accepted only when it uniquely matches one org member; otherwise the request is rejected.
Target time for the next response milestone
What happened, impact, assets involved, and current hypothesis
When this incident was created
When this incident was last updated
Environments linked to this case (0..n). Empty means Global.
Create a Changes case (change-mgmt-v0 blueprint). Selecting this option shows the case property form.
object
The initial user prompt for the room.
The LLM that answers in the room. Pick a model from the LLM catalog (listOrganizationModels) and pass its
modelId, vendorId, and name unchanged.
object
Catalog model id, for example gpt-5.1-2025-11-13 or amazon.nova-pro-v1:0.
Vendor that hosts modelId. Send the vendorId the catalog returns for that model.
Display name of the model.
Lifecycle state of the room in the platform.
Catalog blueprint for this case class.
Track a planned infrastructure or application change through approval and execution
object
Short summary of the change
One-line summary shown under the title
Where the change sits in the approval and delivery workflow
Residual risk if the change fails or causes outage
Standard ITIL-style change category
Systems impacted while the change is applied
Engineer responsible for executing the change. Persist the Mindflow organization user id (USER-…). Call Platform Users listUsers to discover candidates (userId, name, email). Email or exact display name is accepted only when it uniquely matches one org member; otherwise the request is rejected.
Target date for completing the change
What will change, why it is needed, how it is applied, and how to roll it back
When this change request was created
When this change request was last updated
Environments linked to this case (0..n). Empty means Global.
Create a Vulnerabilities case (vulnerability-v0 blueprint). Selecting this option shows the case property form.
object
The initial user prompt for the room.
The LLM that answers in the room. Pick a model from the LLM catalog (listOrganizationModels) and pass its
modelId, vendorId, and name unchanged.
object
Catalog model id, for example gpt-5.1-2025-11-13 or amazon.nova-pro-v1:0.
Vendor that hosts modelId. Send the vendorId the catalog returns for that model.
Display name of the model.
Lifecycle state of the room in the platform.
Catalog blueprint for this case class.
Vulnerability found by a scan: affected and excluded servers, policy-driven priority, plan, and remediation tracking through scan proof
object
Short, searchable name for the vulnerability
One-line summary shown under the title
Where the case sits in the vulnerability lifecycle
Combined impact and urgency for how analysts should work this case
Type, CVE, known exploitation (KEV), and exposure
CVE identifier (for example CVE-2021-44228).
Published base CVSS score from threat intel, from 0 to 10 (for example “10.0”).
Listed in the CISA KEV catalog or reported as exploited by CERT-FR.
At least one vulnerable server is reachable from the internet (CMDB).
Servers affected per the scan and CMDB, exposed ones first (for example “SRV-LNX-01, SRV-LNX-02 (exposed); SRV-LNX-04”).
Servers seen by the scan but not in scope, with the reason (for example “SRV-LNX-08: 5.2.5 outside the affected range”).
Teams and owners of the fixes, with their ticket (for example “Customer apps — Nadia Benali, TCK-4801”).
Mitigation deadline set by policy.
Fix deadline set by policy.
Change request created by the plan in the Changes database (for example “CHG-9652 — log4j-core 2.17.1”).
Analyst or on-call owner currently responsible. Persist the Mindflow organization user id (USER-…). Call Platform Users listUsers to discover candidates (userId, name, email). Email or exact display name is accepted only when it uniquely matches one org member; otherwise the request is rejected.
Target time for the next response milestone
What was found, impact, assets involved, and current remediation plan
When this vulnerability was created
When this vulnerability was last updated
Environments linked to this case (0..n). Empty means Global.
Create an AI usage case (usage-ai-v0 blueprint). Selecting this option shows the case property form.
object
The initial user prompt for the room.
The LLM that answers in the room. Pick a model from the LLM catalog (listOrganizationModels) and pass its
modelId, vendorId, and name unchanged.
object
Catalog model id, for example gpt-5.1-2025-11-13 or amazon.nova-pro-v1:0.
Vendor that hosts modelId. Send the vendorId the catalog returns for that model.
Display name of the model.
Lifecycle state of the room in the platform.
Catalog blueprint for this case class.
Use of an AI tool or agent spotted in the estate: agent qualification, CISO decision, evidence, and follow-up
object
Short, searchable name for the AI usage case
One-line summary shown under the title
Where the case sits in the AI usage review lifecycle
Combined impact and urgency for how analysts should work this case
Signal nature, source, and sensitivities (AI Act, personal account, executive, outside the EU)
Name of the tool, module, or agent involved, as it appears in the source (for example “Otter.ai”, “Copilot Studio agent HR Assistant”).
Employee or team behind the usage, with their role (for example “Claire Martin, CFO”). This is not a Mindflow user: do not store a USER- id.
Estate tool that observed the usage.
Account used with the tool.
Highest classification level of data passed to the tool, based on evidence.
Usage class under the AI Act; “Prohibited practice” means Article 5 — approval is refused by policy.
Catalog tool to propose instead, with its conditions (for example “DeepL Pro, corporate account”).
Reassessment date for an approved usage (90 days after approval).
Analyst or on-call owner currently responsible. Persist the Mindflow organization user id (USER-…). Call Platform Users listUsers to discover candidates (userId, name, email). Email or exact display name is accepted only when it uniquely matches one org member; otherwise the request is rejected.
Target time for the next response milestone
What was detected, data involved, evidence, and the decision rationale
When this AI usage case was created
When this AI usage case was last updated
Environments linked to this case (0..n). Empty means Global.
Responses
Section titled “Responses”Room created. The body is the new room.
A chat room or a structured case room (incident, change, vulnerability, AI usage). Structured case rooms carry
blueprintId and properties; chat rooms carry model.
object
Unique identifier of the room.
Opaque id of the organization that owns the resource. In a playbook step this can be filled from the current organization when the caller leaves it unset.
Opaque id of an environment. In a playbook step this can be filled from the current environment when the caller leaves it unset.
Display name of the room. For a structured case, the case title.
Lifecycle state of the room in the platform.
Blueprint that defines the case properties (for example incident-ir-v0). Chat rooms omit it.
Blueprint-defined room fields (shape matches the blueprint JSON Schema).
object
Environments linked to a structured case (0..n). Empty means Global (org-wide). Chat rooms omit this field.
The LLM that answers in the room. Pick a model from the LLM catalog (listOrganizationModels) and pass its
modelId, vendorId, and name unchanged.
object
Catalog model id, for example gpt-5.1-2025-11-13 or amazon.nova-pro-v1:0.
Vendor that hosts modelId. Send the vendorId the catalog returns for that model.
Display name of the model.
The timestamp when the room was created.
The timestamp when the room was last updated.
The timestamp of the last room activity.
Example
{ "organizationId": "$CURRENT_ORGANIZATION_ID", "environmentId": "$CURRENT_ENVIRONMENT_ID", "status": "ENABLED", "blueprintId": "incident-ir-v0", "environmentIds": [ "$CURRENT_ENVIRONMENT_ID" ], "model": { "modelId": "gpt-4o", "vendorId": "openai" }}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
The request was invalid. Common causes include:
- Invalid timestamp format.
- Using
cursorwithbeforeorafter. - Missing
limitwhen usingbeforeorafter. - Invalid field names in the
fieldsparameter.
See the error response for specific details about what went wrong.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always BAD_REQUEST on this response. Read detail for which value to change, then send a corrected request.
Example
{ "type": "about:blank", "title": "Bad Request", "status": 400, "detail": "The request body or query is invalid.", "code": "BAD_REQUEST"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Authentication failed. The request lacks valid credentials or the provided credentials are invalid.
Ensure you have:
- A valid API key or token.
- Proper authentication headers.
- Required permissions.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always MISSING_OR_INVALID_TOKEN on this response. Branch on this value, not on detail.
Example
{ "type": "about:blank", "title": "Unauthorized", "status": 401, "detail": "The bearer token is missing or invalid.", "code": "MISSING_OR_INVALID_TOKEN"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
The requested resource was not found.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always NOT_FOUND on this response. The resource is not available to this caller.
Example
{ "type": "about:blank", "title": "Not Found", "status": 404, "detail": "The resource was not found.", "code": "NOT_FOUND"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Too many requests. The request rate limit has been exceeded.
Please wait until the rate limit window resets before making additional requests.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always RATE_LIMIT_EXCEEDED on this response. Wait Retry-After seconds before retrying.
Example
{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "The request rate limit has been exceeded.", "code": "RATE_LIMIT_EXCEEDED"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.
Internal server error. The server encountered an unexpected condition that prevented it from fulfilling the request.
Please try again later or contact support if the problem persists.
object
URI reference identifying the problem type. When absent, “about:blank” per RFC 9457 Section 3.1.1.
Short, human-readable summary of the problem type (RFC 9457 Section 3.1.3).
HTTP status code for this occurrence (advisory; same as response status) (RFC 9457 Section 3.1.2).
Human-readable explanation specific to this occurrence (RFC 9457 Section 3.1.4).
URI reference identifying the specific occurrence (RFC 9457 Section 3.1.5).
Always INTERNAL_ERROR on this response. Retry later. Do not retry a create in a tight loop.
Example
{ "type": "about:blank", "title": "Internal Server Error", "status": 500, "detail": "The request could not be completed.", "code": "INTERNAL_ERROR"}Headers
Section titled “Headers”Example
1000Maximum number of requests allowed in the current window. Present when this response is rate limited.
Example
42Number of requests still allowed in the current window. 0 means the next call can return 429 until the window resets.
Example
2026-03-20T15:31:00.000ZTime when the current window resets, as ISO 8601 UTC. After this time, X-RateLimit-Remaining starts over.
Example
30HTTP Retry-After value in seconds. Wait at least this long before retrying a 429 response.
Example
*CORS Access-Control-Allow-Origin value. Origin allowed to read this response from a browser. * means any origin may read it.