2026.08 Public API / SDK Changes
2 min read
Public API
New Endpoints
tech PATCH Update Content Ingestion State - API to update the ingestion state of a content item. Requires write access to the content.
Path Params:
contentId(required) - The ID of the content to update
Body Params:
ingestionState(required) - The ingestion state to set. Valid values:QUEUED,FINISHED,RETRYING,RE_INGESTING,RE_EMBEDDING, etc.
Example
curl --location --request PATCH 'https://api.uat1.unique.app/v1/content/<content-id>/ingestion-state' \
--header 'x-user-id: <user-id>' \
--header 'x-company-id: <company-id>' \
--header 'Authorization: Bearer <api-key>' \
--header 'x-app-id: <app-id>' \
--header 'x-api-version: 2023-12-06' \
--header 'Content-Type: application/json' \
--data '{
"ingestionState": "QUEUED"
}'tech GET Get User By ID - API to get user information by User ID
Path Params:
userId(required) - The ID of the user
Body Params:
-
Example
curl --location --request GET 'https://api.uat1.unique.app/v1/users/<user-id>' \
--header 'x-user-id: <user-id>' \
--header 'x-company-id: <company-id>' \
--header 'Authorization: Bearer <api-key>' \
--header 'x-app-id: <app-id>' \
--header 'x-api-version: 2023-12-06'Updated Endpoints
tech POST Create Folder Structure - Enhanced to support creating folders using relative paths from a parent scope, in addition to full paths from root.
Body Params:
paths(optional) - An array of full paths starting from root. Each path must start with/. Either this orparentScopeId+relativePathsmust be provided.
Example:
["/path/to/folder", "/another-folder"]
parentScopeId(optional) - Parent scope ID to create folders under. Must be provided together withrelativePaths.
Example:
"scope_fctg9an96pixkij6da9rwaiw"
relativePaths(optional) - An array of relative paths to create underparentScopeId. Each path must not start with/and cannot be empty. Must be provided together withparentScopeId.
Example:
["subject/date", "another-folder"]
inheritAccess(optional) - Whether to inherit access from the parent folder. Defaults totrue.
Example:
true
Validation Rules:
Either
pathsOR (parentScopeId+relativePaths) must be provided, but not both.
If
parentScopeIdis provided,relativePathsis required and the other way around.
Example
curl --location --request POST 'https://api.uat1.unique.app/v1/folder' \
--header 'x-user-id: <user-id>' \
--header 'x-company-id: <company-id>' \
--header 'Authorization: Bearer <api-key>' \
--header 'x-app-id: <app-id>' \
--header 'x-api-version: 2023-12-06' \
--header 'Content-Type: application/json' \
--data '{
"parentScopeId": "scope_fctg9an96pixkij6da9rwaiw",
"relativePaths": ["subject/2024", "subject/2025", "archive"],
"inheritAccess": true
}'SDK
New Functions
tech Update Ingestion State - Re-queue content for ingestion or update its processing state. Useful for re-processing failed content or triggering re-ingestion after updates.
Example
unique_sdk.Content.update_ingestion_state(
user_id=user_id,
company_id=company_id,
contentId="cont_abc123",
ingestionState="QUEUED",
)tech Get User by ID - Retrieve a specific user by their ID. Useful when you already know the user ID and need to fetch their details without filtering through a list.
Example
user = unique_sdk.User.get_by_id(
user_id=user_id,
company_id=company_id,
target_user_id="351283829975023795", # The ID of the user to retrieve
)Updated Functions
tech Create Folders by Scope - Create folder structures using a parent scope ID and relative paths, without needing to know the full folder path. Useful when you already have a folder ID and want to create subfolders relative to it.
Example
result = unique_sdk.Folder.create_paths(
user_id=user_id,
company_id=company_id,
parentScopeId="scope_fctg9an96pixkij6da9rwaiw", # Parent folder ID
relativePaths=[
"subject/date", # Creates: <parent_path>/subject/date
"another-folder" # Creates: <parent_path>/another-folder
],
)Author |
|
|---|