Gets the directory of server AI credentials available to the current user
GET/api/auth/sub2api/llm-credentials
This function returns the configuration that has been opened, the group is valid, the user key is active, and the subscription group has active subscription. credentials Follow the provider usage preferences saved by the current user. Configurations that are invalid, disabled, model empty, or model read failed will be skipped, and subsequent valid items will remain in relative order. Read-only Sub2API details follow the short-term cache and bounded stale-if-error strategy; 502 is returned when there is no cache or when the pocket window has expired and the upstream is unavailable. Sub2API determines available models, and Workflow Server supplements vision, networking, inference, and tool invocation capabilities with a built-in catalog of versioned models; unknown models do not declare capabilities. The response contains the one-hour short-term proxy credentials, but does not contain the real Sub2API Key. Only account sessions with user identity, account API Key or Server runtime capability are available; Administrator Key without user identity returns 403.
Responses
- 200
- 401
- 403
- 502
- 503
Returns the available configuration, model, proxy path, short credentials, and desensitized warning.
workflow-code standard error response.
workflow-code standard error response.
workflow-code standard error response.
workflow-code standard error response.