Skip to main content

WorkflowSub2ApiLLMCredentialCatalogResponse

errCodeintegerrequired
Constant value: 0
errMessagestringrequired
Constant value:
data objectrequired
credentials object[]required
  • Array [
  • idstringrequired

    Stable configuration ID based on Sub2API group ID.

    Possible values: Value must match regular expression ^sub2api:[1-9][0-9]*$

    namestringrequired
    platformstringrequired

    Possible values: [openai, anthropic]

    providerTypestringrequired

    Possible values: [openai-responses, anthropic]

    modelsstring[]required

    Possible values: >= 1

    modelDetails object[]required

    Models that are consistent with the models order display information and capabilities; unknown models have capabilities that are both false.

    Possible values: >= 1

  • Array [
  • idstringrequired

    Possible values: non-empty

    namestringrequired

    Possible values: non-empty

    capabilities objectrequired
    visionbooleanrequired
    webSearchbooleanrequired
    reasoningbooleanrequired
    toolCallingbooleanrequired
  • ]
  • proxyPathstringrequired
    Constant value: /api/auth/sub2api/llm-proxy/v1
    credentialTokenstringrequired

    One hour HMAC signing agent credential, not real Sub2API Key; caller must not persist or output.

    Possible values: Value must match regular expression ^wfllm_

    expiresAtstring<date-time>required
  • ]
  • warnings object[]required

    A desensitized warning that does not contain the real key, upstream URL, or inner exception body.

  • Array [
  • idstringrequired
    namestringrequired
    codestringrequired

    Possible values: [unsupported_platform, models_unavailable, models_empty]

  • ]
  • fetchedAtstring<date-time>required
    WorkflowSub2ApiLLMCredentialCatalogResponse
    {
    "errCode": 0,
    "errMessage": "string",
    "data": {
    "credentials": [
    {
    "id": "string",
    "name": "string",
    "platform": "openai",
    "providerType": "openai-responses",
    "models": [
    "string"
    ],
    "modelDetails": [
    {
    "id": "string",
    "name": "string",
    "capabilities": {
    "vision": true,
    "webSearch": true,
    "reasoning": true,
    "toolCalling": true
    }
    }
    ],
    "proxyPath": "/api/auth/sub2api/llm-proxy/v1",
    "credentialToken": "string",
    "expiresAt": "2024-07-29T15:51:28.071Z"
    }
    ],
    "warnings": [
    {
    "id": "string",
    "name": "string",
    "code": "unsupported_platform"
    }
    ],
    "fetchedAt": "2024-07-29T15:51:28.071Z"
    }
    }