Unqork documentation is available in two workspaces: UnqorkAI for the latest AI-first platform, and legacy Unqork for previous versions. Use the drop-down near the logo to switch.

API Debugger

Prev Next

The API Debugger lets Creators send requests to any Unqork API and inspect the results without publishing. Use it to verify logic, check data changes, and trace component execution.

The API Debugger is part of the Dev Overlay Toolbar, the collapsible panel at the bottom of the UnqorkAI platform. To open it, select Debugger from the tool selector in the toolbar and expand the toolbar using the expand icon or keyboard shortcut. The API Debugger is available in all environments.

Execute With

The Execute with control in the session bar sets which session the API Debugger uses to run a request. It persists across refreshes.

Mode Description
Designer Uses the Designer session, which is the account the Creator used to sign in to Designer. No Express sign-in required. Works for all designer accounts, including SSO Creators.
Express Uses the Express session, which is the account the Creator used to sign in to Express. Picks up an existing session from another open tab automatically. If the Creator is not signed in to Express, selecting Express opens an Express tab for sign-in.

Designer Mode

Designer mode was the original API Debugger authentication method and continues to work the same way. In Designer mode, module executes run through the designer endpoint using the authenticated designer session. No Express sign-in is needed; SSO Creators and all standard designer accounts can execute.

Designer mode works for designer endpoints. It also works for two Express endpoints, Execute Module and Execute via Proxy, which accept a Designer session for debugging by impersonating an Express role. Other Express endpoints do not accept a Designer session, so use Express mode to call them.

The Run as selector lists available Express roles and controls which role the request impersonates on Execute Module and Execute via Proxy requests. It defaults to Administrator. After execution, the Ran as indicator in the Response panel displays the role the server applied. Environment permissions and production-mode settings can cause the server to ignore the role header; the indicator always reflects the role that ran.

If the selected role lacks designer access, designer-only API endpoints might refuse the request. Select a role with the required access, or switch to Express to run as a real Express account.

Express Mode

Express mode runs requests through the Express endpoint using the active Express session. Selecting Express automatically picks up any existing Express session from the browser, including one from another open tab. If no session exists, a sign-in tab opens immediately. Any method of signing in to Express works, in any browser tab. The debugger detects the active session, so the sign-in tab it opens is optional.

The session bar displays different states depending on the current sign-in status:

State Session bar Action
Signing in "Waiting for sign-in in the other tab…" Reopen Tab brings the sign-in tab to the front if it moved behind the window
Signed in Express identity and role information Switch Express User opens the Express sign-in page to sign in as a different user
Session ended "Your Express session ended." Sign in again opens a new sign-in tab

The Execute button is blocked while the session is ended. The debugger does not fall back to Designer mode automatically when a session ends. A deliberate sign-in choice prevents executions from running under an unintended identity.

Creators who use Express SSO can sign in through whichever method they normally use. The debugger detects the active Express session and uses it, so the sign-in tab that opens from the debugger doesn't need to be the way they sign in.

Role display in Express mode

For creator accounts and Express roles with Designer Access, a Run as selector displays the available Express roles for impersonation. The Ran as indicator in the Response panel displays the role the server applied after execution. For standard Express accounts, real roles are listed inline with no impersonation selector, because requests run as the account's actual role.

To return to Designer mode, select Designer in the Execute with control. No additional sign-in is required.

Express endpoints require the designer hostname to be added to the Allowed Origins List (CORS) in Environment Administration. The Execute Module and Execute via Proxy endpoints are exempt. When the hostname is not configured, the session bar displays a CORS warning with a link to open Environment Administration.

Internal Tab

The API Debugger on the Internal tab with Execute Module selected, showing the request controls, the request settings tabs, and the result tabs.

The Server Internal tab sends a request to an internal API endpoint. The available endpoints are the internal Unqork APIs.

Control Description
ListTree Browse all routes Opens the All routes panel, which lists every available API route. Selecting a route pre-fills the HTTP method and URL.
Search APIs Searches the available endpoints by name. Selecting an endpoint pre-fills the HTTP method and URL.
HTTP Method The HTTP method for the request.
URL The endpoint URL. Pre-fills when an endpoint is selected.
Play Execute Sends the request and populates the result tabs below.
Execute Options Collapsible section for additional execution settings. Displays only when the selected endpoint is Execute Module.

Execute Options control how the module processes the request. The section includes the following settings:

Setting Description
Submission ID An optional submission ID to use as the basis for the execution. Leave empty to begin with a new submission.
Save When checked, this setting persists the submitted data to the submission after execution.
Validate When checked, this setting runs validation against the module schema during execution.
Load Submission Data First When checked, this setting populates the request with data from the existing submission before applying test data.

Request Settings Tabs

The Internal tab includes the following settings tabs for the request.

Tab Description
Docs Displays the API documentation for the selected endpoint. Click Copy link to copy a link that opens the API Debugger on this tab for the endpoint.
Params Adds query parameters to the request URL as key-value pairs.
Headers Adds HTTP headers to the request.
Body Builds the JSON body to send with the request.

The Body tab provides two modes for building the request body.

Mode Description
Key-Value Build the request body using a visual key-value editor. Use groups to create nested JSON objects.
Raw JSON Enter the request body as a raw JSON string.
Control Description
Trash2 Clear Removes all fields and groups from the body builder.
Plus Add Adds a new key-value field. Inside a group, the field is nested under that group. At the top level, the field is added to the root of the body.
FolderPlus Add Group Adds a new named group that creates a nested JSON object in the request body.

Groups can be expanded or collapsed with the toggle at the left of the group row. Each group displays a field count and its own Add and Add Group controls for nesting content inside it. To delete a group, click the Trash2 icon on the group row.

Result Tabs

After clicking Execute, the results display in the tabs at the bottom of the panel. The result header displays the HTTP status code, response time, and a Clear button to reset the panel.

The Response tab displays for every endpoint. The following tabs display only for the Execute Module and Execute via Proxy endpoints:

Tab Description
Response The HTTP response status and the full JSON response body. Use the Copy button to copy the body to the clipboard.
Event Log Every event that occurred during the execution, in order. Each event displays its type (START, SET, and so on), the affected field, its timestamp, and the time since the previous event.
Data Changes Every submission data field that changed value during the execution. Expand any entry to see the before and after values.
Timeline A timing breakdown of the execution as a waterfall chart, color-coded by event type: Execute, Async, Data, Trigger, and Watcher.
Execution Chain The trigger relationships between components. Displays which component triggered each subsequent step.

Use Group by step on the Event Log, Data Changes, and Timeline tabs to organize results by execution step. Select Collapse all to collapse all expanded entries.

To use the Event Log and Timeline tabs to find slow steps, see Finding Slow Steps.

To inspect a past execution, select Debug Execution in Service Log Details on the Service Logs Dashboard. The module opens with that execution's request and results loaded. To open an execution directly, use this URL with the Service Log ID from Service Log Details: https://{environmentName}.unqork.io/ide/builder/workspaces/{workspaceId}/modules/{moduleId}?serviceLogId={serviceLogId}.

Testing a Module

Use the Internal tab to send a test request directly to a module's API endpoint. Creators can inspect the full execution without going through the production application.

To test a module:

  1. In the Dev Overlay Toolbar at the bottom of the Module Builder, select Debugger from the tool selector and expand the toolbar.
  2. Select the Internal tab.
  3. Use ListTree Browse all routes or the Search APIs field to find the module endpoint to test. The HTTP method and URL populate automatically.
  4. Optionally expand Execute Options to configure how the execution runs. For the available settings, see Internal Tab.
  5. Configure the request body, headers, and parameters using the request settings tabs.
  6. Click Execute.
  7. Review the results in the result tabs at the bottom of the panel.

Finding Slow Steps

Use the results to find where an execution spends its time.

  1. Check the response time in the result header for the total duration of the request.
  2. On the Timeline tab, look for the longest bars. Each step header displays its number of events and its duration, so the slowest step stands out. Hover over a bar to see the component, the event type, and the bar's offset and duration. For a component that runs asynchronously, the Execute bar covers the whole run, from beginning to end.
  3. On the Event Log tab, check the time after each event, like +120ms. It is the time since the previous event. Gray means under 100 ms, yellow means 100 ms or more, and red means 500 ms or more. An event with a yellow or red time came after a long gap.
  4. Select Group by step to compare steps. A step is one cycle of the execution engine. Components queued by triggers run in later steps, so a long chain of triggers produces many steps.

Changelog

Date Change
2026-11-23 Merged Testing with the API Debugger into this article: added the Testing a Module section and the Execute Options settings, expanded the Result Tabs descriptions, and added a note on opening a past execution by Service Log ID.
2026-11-13 Added the Copy link button to the Docs tab.
2026-10-19 Applied team feedback: removed the External tab, moved Execute With first, renamed Search APIs to Browse all routes, clarified the Designer and Express sessions and the Execute Module and Execute via Proxy endpoints, described which result tabs display for which endpoints, and linked to the new slow-step guidance.
2026-10-06 Added Execute With section: Designer and Express modes, Run as selector, Ran as indicator, and CORS requirement.
2026-09-12 Renamed Debugger to API Debugger; updated description to reflect reach across all Unqork APIs.
2026-08-06 Updated access : Debugger moved from Explorer panel Utilities to the Dev Overlay Toolbar. Available in all environments.
2026-07-01 Restored Docs tab to Request Settings. Fixed Explorer link text. Updated screenshots.
2026-06-30 Moved from tools-dropdown/debugger to module-builder/debugger. Updated nav path: Debugger is now accessible from the Explorer panel under Utilities, not the Definition drop-down.
2026-05-27 Initial publication.