2026.48 Unique API / SDK Changes

15 min read

Unique API Documentation: Check out the documentation to learn more about how Unique API Swagger works and where to access it: https://unique-ch.atlassian.net/wiki/x/Q4A5ZQ.

Unique API

Rollout — Proxies

TECH From .48, the new Unique API is rolled out for the Proxies batch. This is the last planned batch.

  • Proxies — /openai-proxy, /anthropic-proxy, /cursor-proxy.

  • Also in this batch: POST /openai/chat/completions, including calls that send a company id and no user.

  • Also in this batch: POST /magic-table/{tableId}/run/claim, POST /magic-table/{tableId}/run/heartbeat, and POST /magic-table/{tableId}/run/release.

  • The base URL does not change. Integrations continue to work at https://gateway.unique.app/public/chat/{resource} — no client action is required.

Behaviour changes to expect on these resources

  • 403 Forbidden — RBAC is now enforced. Calls from users without the required role are rejected.

  • 400 Bad Request — stricter request validation. Payloads that do not match the new contract now fail.

  • 422 — internal errors return a clear, accurate message instead of a generic failure.

Full rollout order, per-domain resource lists and the complete set of behaviour changes: Unique API Version 2026.03.01.

New endpoints

  • TECH POST /space/{spaceId}/copy copies a space in one call, keeping its modules, settings, additional models, alert, chat upload, title, subtitle, goals, prompts and scope rules. The caller gets Use, Upload and Manage access to the copy; the source's access entries are not copied. An optional unique name sets the copy's name, and with duplicate-as-draft enabled the copy is a draft.

  • TECH DELETE /magic-table/{tableId}/row/{rowId} permanently deletes one Agentic Table row, and GET /magic-table/{tableId}/rows returns its rowId. Rows in a fully locked review status, final-review rows and the header row are rejected; rows on a completed sheet can be deleted.

  • TECH EXPERIMENTAL GET, PATCH and DELETE /projects/{projectId}/memory read, create or replace, and delete the calling user's memory of a project they own. API only; requires Projects.

  • TECH EXPERIMENTAL POST /search/project-chats (relevance search with highlights), POST /search/project-chats/chunks (one chat in order, paginated) and POST /search/project-chats/recent (newest activity first) search the earlier chats of a project the caller owns. They return empty results while project chat indexing is off for the company.

  • TECH Message assessments accept an optional contentId on POST /public/chat/message-assessment and PATCH /public/chat/message-assessment/:messageId, so a generated file can carry its own assessment. One assessment is kept per message, type and contentId; assessment[] on message reads carries it too (null for the message itself).

  • TECH Sheet lists take assignedToCaller to return only sheets assigned to the signed-in user. With includeAssignees, a caller who can do more than answer gets every person assigned to a live question; a caller who can only answer gets themselves and their groups.

Behavior change: deleting the Agentic Table header row is now also rejected on the existing GraphQL delete and on hard delete. includeAssignees leaves out anyone assigned only on the header row.

Proxies and chat completions

  • TECH A context overflow on the OpenAI Responses and Anthropic proxies reaches clients in the form each API documents. A streamed Responses request that overflows before the stream opens returns 200 with a response.failed event (code context_length_exceeded) instead of 400.

  • TECH Anthropic proxy requests that LiteLLM refuses with 400 or 403 return that status instead of 422, with the upstream error type and code and a closed message instead of LiteLLM's error text. The proxy's own rejection of a hosted tool or of mcp_servers returns 400 instead of 422.

  • TECH Chat completions return systemFingerprint and numeric usage.completionTokens, usage.promptTokens and usage.totalTokens, plus usage.promptTokensDetails and usage.completionTokensDetails when the provider reports them, with the same names as the 2023-12-06 API.

  • TECH OpenAI proxy container file uploads follow the size limit the deployment configures (50 MB if unset); larger uploads return 413.

  • TECH Azure model calls always use the OpenAI v1 endpoint. Versioned Azure requests are served through it, and any model value in the request is replaced with the authorized deployment.

Changes to existing endpoints

  • TECH Space responses include the optional efforts list ([{ value, label }]) on switchableLanguageModels, and create and update requests accept it, so reading a space and writing it back keeps reasoning efforts. Version 2026-03-01 previously rejected efforts with 400. A list must not be empty, and each value and label must be a non-empty string.

  • TECH DELETE /public/content/:contentId works for users without a knowledge-write role when the content is in a folder they can write to or in one of their chats, and for services acting on a user's behalf. Content the caller cannot write to returns 404, and server errors read Could not delete content <id>.

  • TECH Managing folder access requires permission to manage folder access; the deprecated folder-access GraphQL mutations are removed.

  • TECH A quoted numeric value in a metadata equality filter (for example "412031870") is compared as text. Pass an unquoted number to match number-valued metadata. A contains filter on such a field no longer fails.

  • TECH GET /v1/folder and GET /v1/folder/:scopeId use the default skip 0, take 100 and depth 20 when a value is not a plain number, including repeated keys and bracket syntax.

  • TECH Webhook deliveries answered with 429 or 5xx are retried up to five times over about one minute, so the endpoint can receive the same event again.

  • TECH Completing an Agentic Table sheet and saving its rows to the answer library succeeds while the sheet is idle.

  • TECH The OpenAPI documents (/unique-api/openapi.json and /public/openapi.json) change slightly with the NestJS 12 upgrade: nullable object references declare type: object, some path parameters show an example or default, message is required in MagicTableBulkCellEntriesResponseDto, and SEARCH is no longer listed on the proxy paths. Operation IDs, routes and bodies are unchanged.

HTML apps (window.unique)

  • TECH window.unique.ui.toast shows a message in Unique's toast, naming the app, with one optional button such as Undo, and resolves whether the user pressed it.

  • TECH window.unique.on follows the current chat under the chat: ["read"] grant: chat.updated lists what to read again (messages, references, knowledge), chat.status reports turn start and end, and chat.current() returns the status. No event carries content.

  • TECH app.download saves Word, Excel, PowerPoint, PDF, CSV, JSON, Markdown or text files up to 10 MB as a browser download, without a manifest grant. Pages without a manifest ask the user first; inline chat previews cannot save files.

  • TECH window.unique.knowledge.create() uploads a file the user picked into a granted folder, named by path or id, and returns its first ingestion state. window.unique.knowledge.info({ contentId }) returns a file's id, name and ingestionStatus.

  • TECH window.unique.agenticTable.sheets.list() returns the user's access per sheet (READ, ANSWER, WRITE, MANAGE), assigned and approved counts per assignee, and how many matching sheets are overdue or due this week in the user's time zone.

Behavior change: on a chat whose chat service returns assignees without the new counts, assignees is now [].

SDK

TECH Changes in the ai repository packages for 2026.48.

unique_sdk and unique-cli

  • unique_sdk.ProjectMemory reads, writes and deletes the memory of a project the user owns (retrieve, modify, delete and _async variants). modify takes the markdown document and an optional state; without state the stored state is kept. Requires Projects for the user.

  • unique-cli search takes further queries with -q and runs up to 8 concurrently, showing each chunk once and stopping at about 100,000 tokens. In an agent workspace it refuses more than 100 calls per minute.

  • unique-cli agentic-table delete-row permanently deletes one Agentic Table row by its row id.

  • unique-cli read records each document it returns in .unique/read-refs.jsonl, so the generated-file check can judge files against documents read in full.

  • Fixed: unique-cli search with several queries shows every query's results. The bundled unique-cli-uploaded-search and unique-cli-mcp skills describe attached documents and chat-wide [mcpsourceN] numbers correctly.

unique_toolkit and Orchestrator

  • Chat and Agentic Table events expose the chat UI language as payload.ui_language; ui_language(event) from unique_toolkit.app.ui_language returns a UiLanguage (en, de, fr), falling back to English.

  • build_unique_ai takes keyword-only evaluation_factories. A factory evaluation named hallucination replaces the built-in hallucination check.

  • New models: litellm:gemini-4-hydrogen and litellm:vertex-gemini-4-hydrogen (reasoning effort defaults to medium; xhigh not supported yet), and GPT 6.2 Astra and GPT 6.2 Sol on Azure and LiteLLM, which leave out temperature, top_p, logprobs and top_logprobs.

  • EXPERIMENTAL Activity Records building blocks: a CloudEvents event model, size limits and truncation, an outbox store with a migration entry point (activity-records extra), a non-blocking relay with Prometheus metrics, and a RabbitMQ sender (activity-records-amqp extra) plus a logging sender for tests.

  • Fixed: the hallucination check finds every cited source, including [source 7], [source_7], [7], [source: 1, 2] and [**7**]. Custom reference_pattern settings keep working.

  • Fixed: the default Code Execution prompts include PDF layout rules so generated PDFs keep every word on the page. Spaces with their own toolDescriptionForSystemPrompt keep it until it is reset.

  • Fixed: follow-up questions apply additionalLlmOptions from followUpQuestionsConfig to every LLM call, including language detection.

  • Changed: the internal search and web search evaluation check lists say the hallucination entry is obsolete when the space uses the Hallucination check setting.

  • Security: the minimum Pillow version is raised to a patched release.

uqadm

  • uqadm space upsert and uqadm space migrate take --no-access to keep the destination's access rights and --with-mcp-servers to copy MCP server bindings. uqadm space export --no-access, uqadm space diff --ignore-access and uqadm kb sync --no-inherit-access are new; scope rules are never copied.

  • uqadm kb sync --skip-ingestion stores files without ingesting them, for code and skills that are read as files.

  • Fixed: uqadm kb rm --recursive removes the whole tree, prints each deleted item with a count, and exits non-zero when something could not be deleted.

 

Unique API

Rollout — Proxies

TECH From .48, the new Unique API is rolled out for the Proxies batch. This is the last planned batch.

  • Proxies — /openai-proxy, /anthropic-proxy, /cursor-proxy.

  • Also in this batch: POST /openai/chat/completions, including calls that send a company id and no user.

  • Also in this batch: POST /magic-table/{tableId}/run/claim, POST /magic-table/{tableId}/run/heartbeat, and POST /magic-table/{tableId}/run/release.

  • The base URL does not change. Integrations continue to work at https://gateway.unique.app/public/chat/{resource} — no client action is required.

Behaviour changes to expect on these resources

  • 403 Forbidden — RBAC is now enforced. Calls from users without the required role are rejected.

  • 400 Bad Request — stricter request validation. Payloads that do not match the new contract now fail.

  • 422 — internal errors return a clear, accurate message instead of a generic failure.

Full rollout order, per-domain resource lists and the complete set of behaviour changes: Unique API Version 2026.03.01.

New endpoints

  • TECH POST /space/{spaceId}/copy copies a space in one call, keeping its modules, settings, additional models, alert, chat upload, title, subtitle, goals, prompts and scope rules. The caller gets Use, Upload and Manage access to the copy; the source's access entries are not copied. An optional unique name sets the copy's name, and with duplicate-as-draft enabled the copy is a draft.

  • TECH DELETE /magic-table/{tableId}/row/{rowId} permanently deletes one Agentic Table row, and GET /magic-table/{tableId}/rows returns its rowId. Rows in a fully locked review status, final-review rows and the header row are rejected; rows on a completed sheet can be deleted.

  • TECH EXPERIMENTAL GET, PATCH and DELETE /projects/{projectId}/memory read, create or replace, and delete the calling user's memory of a project they own. API only; requires Projects.

  • TECH EXPERIMENTAL POST /search/project-chats (relevance search with highlights), POST /search/project-chats/chunks (one chat in order, paginated) and POST /search/project-chats/recent (newest activity first) search the earlier chats of a project the caller owns. They return empty results while project chat indexing is off for the company.

  • TECH Message assessments accept an optional contentId on POST /public/chat/message-assessment and PATCH /public/chat/message-assessment/:messageId, so a generated file can carry its own assessment. One assessment is kept per message, type and contentId; assessment[] on message reads carries it too (null for the message itself).

  • TECH Sheet lists take assignedToCaller to return only sheets assigned to the signed-in user. With includeAssignees, a caller who can do more than answer gets every person assigned to a live question; a caller who can only answer gets themselves and their groups.

Behavior change: deleting the Agentic Table header row is now also rejected on the existing GraphQL delete and on hard delete. includeAssignees leaves out anyone assigned only on the header row.

Proxies and chat completions

  • TECH A context overflow on the OpenAI Responses and Anthropic proxies reaches clients in the form each API documents. A streamed Responses request that overflows before the stream opens returns 200 with a response.failed event (code context_length_exceeded) instead of 400.

  • TECH Anthropic proxy requests that LiteLLM refuses with 400 or 403 return that status instead of 422, with the upstream error type and code and a closed message instead of LiteLLM's error text. The proxy's own rejection of a hosted tool or of mcp_servers returns 400 instead of 422.

  • TECH Chat completions return systemFingerprint and numeric usage.completionTokens, usage.promptTokens and usage.totalTokens, plus usage.promptTokensDetails and usage.completionTokensDetails when the provider reports them, with the same names as the 2023-12-06 API.

  • TECH OpenAI proxy container file uploads follow the size limit the deployment configures (50 MB if unset); larger uploads return 413.

  • TECH Azure model calls always use the OpenAI v1 endpoint. Versioned Azure requests are served through it, and any model value in the request is replaced with the authorized deployment.

Changes to existing endpoints

  • TECH Space responses include the optional efforts list ([{ value, label }]) on switchableLanguageModels, and create and update requests accept it, so reading a space and writing it back keeps reasoning efforts. Version 2026-03-01 previously rejected efforts with 400. A list must not be empty, and each value and label must be a non-empty string.

  • TECH DELETE /public/content/:contentId works for users without a knowledge-write role when the content is in a folder they can write to or in one of their chats, and for services acting on a user's behalf. Content the caller cannot write to returns 404, and server errors read Could not delete content <id>.

  • TECH Managing folder access requires permission to manage folder access; the deprecated folder-access GraphQL mutations are removed.

  • TECH A quoted numeric value in a metadata equality filter (for example "412031870") is compared as text. Pass an unquoted number to match number-valued metadata. A contains filter on such a field no longer fails.

  • TECH GET /v1/folder and GET /v1/folder/:scopeId use the default skip 0, take 100 and depth 20 when a value is not a plain number, including repeated keys and bracket syntax.

  • TECH Webhook deliveries answered with 429 or 5xx are retried up to five times over about one minute, so the endpoint can receive the same event again.

  • TECH Completing an Agentic Table sheet and saving its rows to the answer library succeeds while the sheet is idle.

  • TECH The OpenAPI documents (/unique-api/openapi.json and /public/openapi.json) change slightly with the NestJS 12 upgrade: nullable object references declare type: object, some path parameters show an example or default, message is required in MagicTableBulkCellEntriesResponseDto, and SEARCH is no longer listed on the proxy paths. Operation IDs, routes and bodies are unchanged.

GraphQL

  • TECH Removed: ingestion createScopeAccess and deleteScopeAccess. Use createScopeAccesses and deleteScopeAccesses.

  • TECH messageCreate, messageCreateSync and messageUpdateData reject a previousMessage from another chat with MESSAGE_NOT_FOUND, and reject any previousMessage operation other than connect by id, or any messages value, as a bad request.

  • TECH mcpServerCreate and refreshMcpServerTools return 502 with a correlation id when the server cannot be reached, 409 while another connection attempt for the same server runs, and 503 when the connection lock cannot be taken.

  • TECH Oversized query documents are rejected before resolvers on all GraphQL APIs. Alias, depth and complexity limits are logged by default and can be enforced per deployment.

HTML apps (window.unique)

  • TECH window.unique.ui.toast shows a message in Unique's toast, naming the app, with one optional button such as Undo, and resolves whether the user pressed it.

  • TECH window.unique.on follows the current chat under the chat: ["read"] grant: chat.updated lists what to read again (messages, references, knowledge), chat.status reports turn start and end, and chat.current() returns the status. No event carries content.

  • TECH app.download saves Word, Excel, PowerPoint, PDF, CSV, JSON, Markdown or text files up to 10 MB as a browser download, without a manifest grant. Pages without a manifest ask the user first; inline chat previews cannot save files.

  • TECH window.unique.knowledge.create() uploads a file the user picked into a granted folder, named by path or id, and returns its first ingestion state. window.unique.knowledge.info({ contentId }) returns a file's id, name and ingestionStatus.

  • TECH window.unique.agenticTable.sheets.list() returns the user's access per sheet (READ, ANSWER, WRITE, MANAGE), assigned and approved counts per assignee, and how many matching sheets are overdue or due this week in the user's time zone.

Behavior change: on a chat whose chat service returns assignees without the new counts, assignees is now [].

SDK

TECH Changes in the ai repository packages for 2026.48.

unique_sdk and unique-cli

  • unique_sdk.ProjectMemory reads, writes and deletes the memory of a project the user owns (retrieve, modify, delete and _async variants). modify takes the markdown document and an optional state; without state the stored state is kept. Requires Projects for the user.

  • unique-cli search takes further queries with -q and runs up to 8 concurrently, showing each chunk once and stopping at about 100,000 tokens. In an agent workspace it refuses more than 100 calls per minute.

  • unique-cli agentic-table delete-row permanently deletes one Agentic Table row by its row id.

  • unique-cli read records each document it returns in .unique/read-refs.jsonl, so the generated-file check can judge files against documents read in full.

  • Fixed: unique-cli search with several queries shows every query's results. The bundled unique-cli-uploaded-search and unique-cli-mcp skills describe attached documents and chat-wide [mcpsourceN] numbers correctly.

unique_toolkit and Orchestrator

  • Chat and Agentic Table events expose the chat UI language as payload.ui_language; ui_language(event) from unique_toolkit.app.ui_language returns a UiLanguage (en, de, fr), falling back to English.

  • build_unique_ai takes keyword-only evaluation_factories. A factory evaluation named hallucination replaces the built-in hallucination check.

  • New models: litellm:gemini-4-hydrogen and litellm:vertex-gemini-4-hydrogen (reasoning effort defaults to medium; xhigh not supported yet), and GPT 6.2 Astra and GPT 6.2 Sol on Azure and LiteLLM, which leave out temperature, top_p, logprobs and top_logprobs.

  • EXPERIMENTAL Activity Records building blocks: a CloudEvents event model, size limits and truncation, an outbox store with a migration entry point (activity-records extra), a non-blocking relay with Prometheus metrics, and a RabbitMQ sender (activity-records-amqp extra) plus a logging sender for tests.

  • Fixed: the hallucination check finds every cited source, including [source 7], [source_7], [7], [source: 1, 2] and [**7**]. Custom reference_pattern settings keep working.

  • Fixed: the default Code Execution prompts include PDF layout rules so generated PDFs keep every word on the page. Spaces with their own toolDescriptionForSystemPrompt keep it until it is reset.

  • Fixed: follow-up questions apply additionalLlmOptions from followUpQuestionsConfig to every LLM call, including language detection.

  • Changed: the internal search and web search evaluation check lists say the hallucination entry is obsolete when the space uses the Hallucination check setting.

  • Security: the minimum Pillow version is raised to a patched release.

uqadm

  • uqadm space upsert and uqadm space migrate take --no-access to keep the destination's access rights and --with-mcp-servers to copy MCP server bindings. uqadm space export --no-access, uqadm space diff --ignore-access and uqadm kb sync --no-inherit-access are new; scope rules are never copied.

  • uqadm kb sync --skip-ingestion stores files without ingesting them, for code and skills that are read as files.

  • Fixed: uqadm kb rm --recursive removes the whole tree, prints each deleted item with a count, and exits non-zero when something could not be deleted.

Last updated