get__ai_llm
⚠️ TEST ENVIRONMENT ONLY
GET /ai/llm
List AI LLM Configurations
Retrieve a list of all AI/LLM provider configurations accessible to you. This endpoint returns configurations based on your workspace access permissions.
Query Filtering:
Optionally filter by
workspaceIdto get configurations for a specific workspaceWithout filters, returns all configurations across your accessible workspaces
Important Notes:
API secrets are never returned in responses (only masked/null values)
Results include associated repository information if configurations are linked to repos
Only returns configurations from workspaces you have access to
TypeScript Client Library
public getAiLlms = async (workspaceId?: string): Promise<GetAiLlmsResponse> => {
const queryParams = new URLSearchParams();
if (workspaceId) {
queryParams.append('workspaceId', workspaceId);
}
return this.makeRequest<GetAiLlmsResponse>(
`ai/llm${queryParams.toString() ? `?${queryParams.toString()}` : ''}`,
'GET',
null
);
};Code Samples
Parameters
workspaceId
query
string
false
Filter configurations by workspace ID
Example responses
200 Response
Responses
Response Schema
Status Code 200
» success
boolean
false
none
Operation success status
» aiLlms
[object]
false
none
Array of AI LLM configurations
»» id
string
false
none
Unique identifier for the configuration
»» orgId
string
false
none
Organization ID
»» workspaceId
string
false
none
Workspace ID
»» userId
string
false
none
User ID who created the configuration
»» name
string
false
none
Configuration name
»» aiType
string
false
none
AI provider type (OPENAI, GOOGLE, etc.)
»» endpoint
string
false
none
API endpoint URL
»» key
string
false
none
Access key (always null for security)
»» createdAt
string
false
none
ISO 8601 timestamp
»» repos
[object]
false
none
Associated repositories (optional)
»»» id
string
false
none
Repository ID
»»» name
string
false
none
Repository name
»»» createdAt
string
false
none
Repository creation timestamp
Status Code 403
» success
boolean
false
none
none
» message
string
false
none
none
Status Code 500
» success
boolean
false
none
none
» message
string
false
none
none
To perform this operation, you must be authenticated by means of one of the following methods: BearerAuth
Last updated
Was this helpful?