LLM
Workspaces

Trigger an LLM-based task for a workspace

Initiates an LLM-powered task. The behavior and execution flow vary depending on the type field in the request body.

post/workspaces/{workspace_id}/llm

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/llm
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

workspace_idinteger required

Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

Example:4

Request body

type'rename_columns' | 'generate_dataset' | 'generate_summary' | 'optimise_pipeline' required

Type of LLM operation to perform

Example request

{
  "type": "generate_summary",
  "params": {
    "object_id": 245,
    "object_type": "dataview",
    "mode": "llm"
  }
}

Response

Document created, URL follows

Example response

{
  "job": {
    "response": {
      "value": {
        "response": {
          "object": "some object"
        }
      }
    }
  }
}

Changes

No recorded changes to this operation across all 3 revisions of this API.