# nihsny vihsn 1418 updatte

<div>tes fo dublicate </div>

# api auth

<div id="bkmrk-external-system-inte" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #f8fafc; color: #1e293b; line-height: 1.6; padding: 24px; border-radius: 12px;"><div style="background: #ffffff; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; padding: 24px; margin-bottom: 24px;">## External System Integration

 BzCtrl provides a native API ecosystem allowing external operational systems to create **Incidents** and **Tasks** seamlessly. This guarantees that issues and required actions are flagged automatically right within internal workflows, ensuring seamless lifecycle tracking and audit readiness directly inside BzCtrl.

<div style="background-color: #eff6ff; border-left: 4px solid #3b82f6; padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 14px; color: #1e40af;"> **🎯 Key Value:** Eliminates manual human data entry by automating object instantiation via native background triggers contextually context-linked to upstream third-party user interfaces. </div> </div>### Integration Lifecycle Architecture

<div style="background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05);"><div style="background: #f1f5f9; padding: 14px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e2e8f0;"> <span style="background: #64748b; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;">1</span> **Identity Authentication &amp; Authorization Request** <span style="margin-left: auto; background-color: #10b981; color: white; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 11px; letter-spacing: 0.05em;">POST</span> </div><div style="padding: 20px;"> <table class="e-rte-table" style="width: 100%; border-collapse: collapse; margin-bottom: 16px;"> <tbody><tr style="border-bottom: 1px solid #f1f5f9;"> <td style="padding: 8px 0; font-size: 14px; font-weight: 600; color: #475569; width: 120px;">ACC (Staging)</td> <td style="padding: 8px 0; font-size: 14px; font-family: monospace; color: #6366f1;">https://acc.bzctrl.com/bzctrl-core-api/oauth/token</td> </tr> <tr> <td style="padding: 8px 0; font-size: 14px; font-weight: 600; color: #475569;">Production</td> <td style="padding: 8px 0; font-size: 14px; font-family: monospace; color: #6366f1;">https://bzctrl.com/bzctrl-core-api/oauth/token</td> </tr> </tbody></table>

<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px;"><div> <span style="font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; display: block; margin-bottom: 6px;">Payload Schema (x-www-form-urlencoded)</span> ```
grant_type=<span style="color: #60a5fa;">password</span>&username=<span style="color: #a78bfa;">example@example.com</span>&password=<span style="color: #a78bfa;">Ex@mpl3!</span>
```

 </div><div> <span style="font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; display: block; margin-bottom: 6px;">Response Identity Metadata (200 OK)</span> ```
{
  <span style="color: #f43f5e;">"access_token"</span>: <span style="color: #10b981;">"xxxxxxxxxx"</span>,
  <span style="color: #f43f5e;">"token_type"</span>: <span style="color: #10b981;">"Bearer"</span>,
  <span style="color: #f43f5e;">"expires_in"</span>: <span style="color: #fb923c;">3600</span>
}
```

 </div> </div> </div> </div><div style="background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 32px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05);"><div style="background: #f1f5f9; padding: 14px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e2e8f0;"> <span style="background: #64748b; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;">2</span> **Object Instantiation (Create Incident or Task)** <span style="margin-left: auto; background-color: #10b981; color: white; padding: 2px 8px; border-radius: 4px; font-weight: 700; font-size: 11px; letter-spacing: 0.05em;">POST</span> </div><div style="padding: 20px;"> <table class="e-rte-table" style="width: 100%; border-collapse: collapse; margin-bottom: 16px;"> <tbody><tr style="border-bottom: 1px solid #f1f5f9;"> <td style="padding: 8px 0; font-size: 14px; font-weight: 600; color: #475569; width: 120px;">ACC (Staging)</td> <td style="padding: 8px 0; font-size: 14px; font-family: monospace; color: #6366f1;">https://acc.bzctrl.com/bzctrl-core-api/api/v1/task/add-task</td> </tr> <tr> <td style="padding: 8px 0; font-size: 14px; font-weight: 600; color: #475569;">Production</td> <td style="padding: 8px 0; font-size: 14px; font-family: monospace; color: #6366f1;">https://www.bzctrl.com/bzctrl-core-api/api/v1/task/add-task</td> </tr> </tbody></table>

<div style="background-color: #fff7ed; border-left: 4px solid #f97316; padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: 13px; color: #9a3412; margin-bottom: 20px; font-weight: 500;"> ⚠️ Authentication Guard: You must supply the token received from step 1 inside the HTTP Request Header as: `Authorization: Bearer {access_token}` </div><div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px;"><div> <span style="font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; display: block; margin-bottom: 6px;">Application JSON Payload</span> ```
{
  <span style="color: #f43f5e;">"todoType"</span>: <span style="color: #10b981;">"TASK"</span>,
  <span style="color: #f43f5e;">"domainWorkSpace"</span>: <span style="color: #10b981;">"VTT-NLD-TML-FIN"</span>,
  <span style="color: #f43f5e;">"title"</span>: <span style="color: #10b981;">"Sample Title"</span>,
  <span style="color: #f43f5e;">"description"</span>: <span style="color: #10b981;">"Detailed tracking logs"</span>,
  <span style="color: #f43f5e;">"impact"</span>: <span style="color: #10b981;">"HIGH"</span>,
  <span style="color: #f43f5e;">"likelihood"</span>: <span style="color: #10b981;">"MEDIUM"</span>,
  <span style="color: #f43f5e;">"status"</span>: <span style="color: #10b981;">"TODO"</span>,
  <span style="color: #f43f5e;">"priority"</span>: <span style="color: #10b981;">"HIGH"</span>,
  <span style="color: #f43f5e;">"assignee"</span>: <span style="color: #10b981;">"user@vtti.com"</span>,
  <span style="color: #f43f5e;">"reporter"</span>: <span style="color: #10b981;">"user@vtti.com"</span>,
  <span style="color: #f43f5e;">"orderID"</span>: <span style="color: #10b981;">"SO-777"</span>
}
```

 </div><div> <span style="font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; display: block; margin-bottom: 6px;">Response Payload</span> ```
{
  <span style="color: #f43f5e;">"title"</span>: <span style="color: #10b981;">"Potential Customs claim"</span>,
  <span style="color: #f43f5e;">"taskType"</span>: <span style="color: #10b981;">"INCIDENT"</span>,
  <span style="color: #f43f5e;">"description"</span>: <span style="color: #10b981;">"Process non-conformance"</span>,
  <span style="color: #f43f5e;">"taskLink"</span>: <span style="color: #38bdf8;">"https://www.bzctrl.com/app/#/todo/IMP"</span>,
  <span style="color: #f43f5e;">"tags"</span>: [<span style="color: #10b981;">"SO 777"</span>]
}
```

 </div> </div><div style="background: #f0fdf4; border: 1px solid #bbf7d0; padding: 12px 16px; border-radius: 8px; margin-top: 16px; font-size: 13.5px; color: #166534;"> 💡 **Deep Linking Strategy:** The generated `taskLink` value should be saved into your custom relational databases or mapped directly to actions via inline UI redirection workflows like `window.open(response.taskLink)`. </div> </div> </div>### UI/UX Configuration &amp; Business Requirements

<div style="font-size: 12.5px; color: #64748b; margin-bottom: 12px; background: #fff; padding: 10px 14px; border-radius: 6px; border: 1px solid #e2e8f0; display: inline-block;"> <span style="margin-right: 12px;">**\*** Mandatory Field</span> <span style="margin-right: 12px; font-style: italic;">Italic - End User Input</span> <span>CAPITAL - Immutable System Generated Values</span> </div><div style="width: 100%; overflow-x: auto; background: #ffffff; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);"> <table class="e-rte-table" style="width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: left; min-width: 800px;"> <thead> <tr style="background-color: #f8fafc; border-bottom: 2px solid #e2e8f0;"> <th style="padding: 14px 16px; font-weight: 700; color: #334155; width: 14%;">Context Scope</th> <th style="padding: 14px 16px; font-weight: 700; color: #334155; width: 15%;">Payload Key</th> <th style="padding: 14px 16px; font-weight: 700; color: #334155; width: 18%;">Value / Format</th> <th style="padding: 14px 16px; font-weight: 700; color: #334155; width: 53%;">Functional Rules &amp; Integration Comments</th> </tr> </thead> <tbody style="color: #475569;"> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">todoType\*</td> <td style="padding: 12px 16px; font-weight: 600; color: #6366f1;">INCIDENT</td> <td style="padding: 12px 16px;">System type flag. Consumers may toggle manually to `TASK` or leave fixed as an explicit constant.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">domain\*</td> <td style="padding: 12px 16px; font-family: monospace; font-size:12.5px;">IMP-NLD-EXA-SWA</td> <td style="padding: 12px 16px;">The overarching functional domain route assigned to the integrated customer client portfolio.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">workspace\*</td> <td style="padding: 12px 16px; font-family: monospace; font-size:12.5px;">SWA</td> <td style="padding: 12px 16px;">Target workspace configuration context mapped securely underneath the organizational master domain profile.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">title\*</td> <td style="padding: 12px 16px; font-style: italic; color: #64748b;">Free text input</td> <td style="padding: 12px 16px;">Explicit user-facing text field. Defines the summary header of the target issue or event item.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">description\*</td> <td style="padding: 12px 16px; font-style: italic; color: #64748b;">Free text input</td> <td style="padding: 12px 16px;">Rich operational notes detailing context logs. Allows external users to offer clear scope narratives.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">result</td> <td style="padding: 12px 16px; font-style: italic; color: #64748b;">Free text input</td> <td style="padding: 12px 16px;"><span style="color: #94a3b8; font-style: italic;">Optional.</span> Capture resolution details or expected metric outcomes when running actions explicitly.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">financialImpact</td> <td style="padding: 12px 16px; font-style: italic; color: #64748b;">Numeric format</td> <td style="padding: 12px 16px;">Evaluated in **EUR (€)** currency. Raw integer values are automatically mapped inside the dashboard.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">impact</td> <td style="padding: 12px 16px; font-style: italic; color: #3b82f6;">High, Medium, Low</td> <td style="padding: 12px 16px;"><span style="color: #94a3b8; font-style: italic;">Optional.</span> Dropdown matrix mapping determining risk classifications inside the enterprise architecture.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">likelihood</td> <td style="padding: 12px 16px; font-style: italic; color: #3b82f6;">High, Medium, Low</td> <td style="padding: 12px 16px;"><span style="color: #94a3b8; font-style: italic;">Optional.</span> Probability index calculation variable used to define priority sort orders.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">status\*</td> <td style="padding: 12px 16px; font-style: italic; color: #10b981;">In Progress</td> <td style="padding: 12px 16px;">Defaults to `In Progress`. If marked as `Done`, due date triggers match runtime transactions automatically.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">priority</td> <td style="padding: 12px 16px; font-style: italic; color: #3b82f6;">High, Medium, Low</td> <td style="padding: 12px 16px;"><span style="color: #94a3b8; font-style: italic;">Optional.</span> Escalation index classification used by teams to structure internal workflows.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">assignee\*</td> <td style="padding: 12px 16px; color: #0f172a;">user@example.com</td> <td style="padding: 12px 16px;">Target action worker identity address. Usually identical to the reporting manager account parameters.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">reporter\*</td> <td style="padding: 12px 16px; color: #0f172a;">user@example.com</td> <td style="padding: 12px 16px;">Active communication email address of the authenticated authoring agent who opened the file.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">orderID\*</td> <td style="padding: 12px 16px; font-style: italic; color: #64748b;">ServiceOrder #</td> <td style="padding: 12px 16px;">Mapped directly into BzCtrl metadata engines as an searchable **Index Tag** attribute flag.</td> </tr> <tr style="border-bottom: 1px solid #e2e8f0;"> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">LRN</td> <td style="padding: 12px 16px; font-style: italic; color: #64748b;">LRN String</td> <td style="padding: 12px 16px;"><span style="color: #94a3b8; font-style: italic;">Optional.</span> If accessible, provides secondary lookup search capabilities in internal trace tables.</td> </tr> <tr> <td style="padding: 12px 16px;"><span style="background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;">INCIDENT, TASK</span></td> <td style="padding: 12px 16px; font-family: monospace; font-weight: 600; color: #0f172a;">reminderDate</td> <td style="padding: 12px 16px; font-style: italic; color: #64748b;">YYYY-MM-DD</td> <td style="padding: 12px 16px;"><span style="color: #94a3b8; font-style: italic;">Optional.</span> Sets a date for a tracking alert event or task push notification trigger.</td> </tr> </tbody> </table>

 </div></div>

# incidence

<div id="bkmrk-%60%60%60html">```html </div> <span>Add Task API Documentation</span>

 <span>After receiving the access token from the OAuth API, use the Add Task API to create a new Task or Incident.</span>

 <span>ACC Endpoint</span>

 [ https://acc.bzctrl.com/bzctrl-core-api/api/v1/task/add-task ](https://acc.bzctrl.com/bzctrl-core-api/api/v1/task/add-task)

 <button style="padding:8px 14px;cursor:pointer;"> Copy URL </button>

 <span>Production Endpoint</span>

 [ https://www.bzctrl.com/bzctrl-core-api/api/v1/task/add-task ](https://www.bzctrl.com/bzctrl-core-api/api/v1/task/add-task)

 <button style="padding:8px 14px;cursor:pointer;"> Copy URL </button>

 <span>Request Method</span>

 <span>POST</span>

 <span>Required Headers</span>

 <span> Content-Type: application/json  
 Authorization: Bearer {access\_token} </span>

 <span>Sample Request Body</span>

 <span> {  
 "todoType":"TASK",  
 "domainWorkSpace":"VTT-NLD-TML-FIN",  
 "title":"title",  
 "description":"description",  
 "result":"result",  
 "financialImpact":"123",  
 "impact":"HIGH",  
 "likelihood":"MEDIUM",  
 "status":"TODO",  
 "priority":"HIGH",  
 "assignee":"rge@vtti.com",  
 "reporter":"user@vtti.com",  
 "category":\["Customs","Fetsa"\],  
 "subCategory":\["high"\],  
 "lrn":"test",  
 "orderID":"tag",  
 "reminderDate":"2024-09-27"  
 } </span>

 <span>Field Reference</span>

 <span>**domainWorkSpace** - Workspace value from URL (Example: VTT-BEL-ATP)</span>

 <span>**todoType** - TASK, INCIDENT (must be uppercase)</span>

 <span>**status** - TODO, INPROGRESS, DONE</span>

 <span>**priority** - LOW, MEDIUM, HIGH</span>

 <span>**impact** - LOW, MEDIUM, HIGH</span>

 <span>**likelihood** - LOW, MEDIUM, HIGH</span>

 <span>**assignee** - Valid email address (Example: rge@vtti.com)</span>

 <span>**reporter** - Valid email address (Example: user@vtti.com)</span>

 <span>**reminderDate** - Format YYYY-MM-DD</span>

 <span>Allowed Values</span>

 <span> todoType: TASK, INCIDENT  
  
 status: TODO, INPROGRESS, DONE  
  
 priority: LOW, MEDIUM, HIGH  
  
 impact: LOW, MEDIUM, HIGH  
  
 likelihood: LOW, MEDIUM, HIGH </span>

 <span>Sample Response</span>

 <span> {  
 "title":"Potential Customs claim",  
 "taskType":"INCIDENT",  
 "description":"Operation started without proper approvals",  
 "taskLink":"https://www.bzctrl.com/app/#/todo/IMP-NLD-EXA-SWA-03",  
 "tags":\["SO 777"\]  
 } </span>

 <span>Note: The access token received from the OAuth Token API must be included in the Authorization header using the Bearer scheme.</span>

<div id="bkmrk-%60%60%60">``` </div>