create_integration
Create an integration for OpenAI, Anthropic, Azure, AWS Bedrock, Vertex AI, or custom hosts. Configure API keys, regions, secret mappings, and pricing multipliers to power workspace providers.
Instructions
Create an AI-provider integration that becomes the source for workspace providers. ai_provider_id identifies the backend; provider-specific fields configure Azure, Bedrock, Vertex, or custom hosts. For workspace-scoped integrations, create_default_provider controls automatic provider creation. key is write-only, but secret_mappings can resolve it or configuration fields from Secret References at runtime. pricing_adjustments apply negotiated discounts or markups to cost accounting. Use update_integration_models and update_integration_workspaces after creation; returns the new integration id and slug.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | API key for the provider (if required) | |
| name | Yes | Human-readable name for the integration | |
| slug | No | URL-friendly identifier (auto-generated from name if not provided) | |
| aws_region | No | AWS region (for AWS Bedrock) | |
| api_version | No | API version (for Azure OpenAI) | |
| custom_host | No | Custom base URL for the provider | |
| description | No | Optional description of the integration | |
| workspace_id | No | Workspace ID for workspace-scoped integrations | |
| resource_name | No | Resource name (for Azure OpenAI) | |
| vertex_region | No | GCP region (for Vertex AI) | |
| ai_provider_id | Yes | ID of the AI provider (e.g., 'openai', 'anthropic', 'azure-openai', 'aws-bedrock', 'vertex-ai') | |
| deployment_name | No | Deployment name (for Azure OpenAI) | |
| secret_mappings | No | Unique runtime Secret Reference mappings; mapping key allows the key field to be omitted | |
| aws_access_key_id | No | AWS access key ID (for AWS Bedrock) | |
| vertex_project_id | No | GCP project ID (for Vertex AI) | |
| pricing_adjustments | No | Negotiated discount or markup multipliers for cost accounting | |
| aws_secret_access_key | No | AWS secret access key (for AWS Bedrock) | |
| default_provider_slug | No | Custom slug for the automatically created workspace provider | |
| create_default_provider | No | Create a provider automatically for a workspace-scoped integration; defaults to true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |