Skip to content

Get LLM Configuration



GET /api/v1/llm_cfg/{appid}/get

Overview

Retrieve the details of a specific LLM application by its appId, used for editing backfilling and single-item queries.

Route Parameters

Parameter Name Type Required Description
appid string Y The appId of the LLM application

Parameter Additional Notes

Interface Description

Retrieve the details of a single LLM application based on the path parameter appid.

Return Description

  1. Returns the complete configuration object.
  2. clientToken returns the actual token string, not the internal token UUID.
  3. ifTokenExpired=true indicates that the currently bound token has expired or been deleted.

Common Uses

  1. Read the original configuration before editing.
  2. External systems query a single application by appId.
  3. Check if the token currently bound to an application is still available.

Error Semantics

  1. If the appid does not exist, typically returns ft.NotFoundLlmSet or ft.InvalidLlmAppuuid.

Request Example

curl 'https://openapi.truewatch.com/api/v1/llm_cfg/llm_app_demo/get' \
  -H 'Content-Type: application/json' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --compressed

Response

{
    "code": 200,
    "content": {
        "appId": "llm_app_demo",
        "createAt": 1690813059,
        "creator": "acnt_xxxx32",
        "deleteAt": -1,
        "id": 1,
        "jsonContent": {
            "name": "Langfuse Prod",
            "type": "Langfuse",
            "site": "https://cloud.langfuse.com",
            "extend": {
                "service": "prod"
            }
        },
        "status": 0,
        "updateAt": 1690813059,
        "updator": "acnt_xxxx32",
        "uuid": "llm_app_demo",
        "workspaceUUID": "wksp_xxxx32",
        "clientToken": "token_xxx",
        "ifTokenExpired": false
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-68EEEB4A-9ABC-4DDB-A72B-40F07F2699A5"
}