post__ai_llm
⚠️ TEST ENVIRONMENT ONLY
POST /ai/llm
Create AI LLM Configuration
Create a new AI/LLM provider configuration for your workspace. This endpoint allows you to configure connections to various AI and Large Language Model providers.
Supported AI Providers:
OPENAI: OpenAI (GPT-4, GPT-3.5, etc.)GOOGLE: Google AI (Gemini, PaLM, etc.)ANTHROPIC: Anthropic (Claude models)AWS: Amazon Bedrock and AWS AI servicesOTHER: Custom or other AI providers
Key Features:
Centralized AI provider credential management
Support for multiple AI providers per workspace
Encrypted storage of API keys and secrets
Integration with Flashback repositories for AI-powered features
Security:
API keys and secrets are encrypted before storage
Credentials are never returned in API responses (only masked values)
Workspace-level access controls apply
Validation:
Configuration name must be unique within your workspace
Endpoint URL format is validated
Credentials can be validated after creation using the validate endpoint
TypeScript Client Library
Code Samples
Body parameter
Parameters
body
body
object
true
none
» name
body
string
true
Human-readable name for the AI LLM configuration
» aiType
body
string
true
Type of AI provider
» endpoint
body
string
true
API endpoint URL for the AI provider
» key
body
string
false
Access key or API key (optional, provider-dependent)
» secret
body
string
true
Secret key or API secret for authentication
» workspaceId
body
string
true
Workspace ID this configuration belongs to
Enumerated Values
» aiType
OPENAI
» aiType
» aiType
ANTHROPIC
» aiType
AWS
» aiType
OTHER
Example responses
200 Response
Responses
Response Schema
Status Code 200
» success
boolean
false
none
Operation success status
» aiLlmId
string
false
none
Unique identifier for the created AI LLM config
» message
string
false
none
Success message
Status Code 400
» success
boolean
false
none
none
» message
string
false
none
none
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?