2025.32 Public API / SDK Changes — Unique AI Documentation

2025.32 Public API / SDK Changes

Public API Copy link to this section

New Endpoints

techPOST Run Agent- API to modify a call to a standard agent before it is executed.

Example

curl --location 'https://gateway.<your-app>.unique.app/public/chat/agent/run' \
--header 'x-user-id: <your-user-id>' \
--header 'x-company-id: <your-company-id>' \
--header 'Authorization: Bearer <your-api-key>' \
--header 'x-app-id: <your-app-id>' \
--header 'x-api-version: 2023-12-06' \
--header 'Content-Type: application/json' \
--data '{
      "moduleType": "internal",
      "payload": {
        "name": "UniqueAi",
        "description": "desc",
        "configuration": {},
        "chatId": "<your-chat-id>",
        "assistantId": "<your-assistant-id",
        "userMessage": {
          "id": "<your-user-message-id>",
          "text": "Tell me a story",
          "createdAt": "2025-07-31T09:52:43.167Z",
          "originalText": "Tell me a story",
          "language": "Ennglish"
        },
        "assistantMessage": {
          "id": "<your-assistant-message-id>",
          "createdAt": "2025-07-31T09:52:43.167Z"
        },
        "assistant": { "name": "Unique AI" },
        "toolParameters": {
        },
        "userMetadata": {
        }
      }
    }'

| Author | |