Beta.Connectors

June 16, 2026 ยท View on GitHub

Overview

(beta) Connectors API - manage your connectors

Available Operations

create

Create a new MCP connector. You can customize its visibility, url and auth type.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.create(name="<value>", description="unibody usually despite slushy wherever reward stingy from", server="https://royal-majority.net/")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
namestr:heavy_check_mark:The name of the connector. Should be 64 char length maximum, alphanumeric, only underscores/dashes.
descriptionstr:heavy_check_mark:The description of the connector.
serverstr:heavy_check_mark:The url of the MCP server.
titleOptionalNullable[str]:heavy_minus_sign:Optional human-readable title for the connector.
icon_urlOptionalNullable[str]:heavy_minus_sign:The optional url of the icon you want to associate to the connector.
visibilityOptional[models.ResourceVisibility]:heavy_minus_sign:N/A
headersDict[str, Any]:heavy_minus_sign:Optional organization-level headers to be sent with the request to the mcp server.
auth_dataOptionalNullable[models.AuthData]:heavy_minus_sign:Optional additional authentication data for the connector.
oauth2_server_metadataOptionalNullable[models.ExtendedOAuthServerMetadata]:heavy_minus_sign:Optional OAuth2 authorization server metadata (authorization_endpoint, token_endpoint, etc.). When provided, skips .well-known discovery and uses these endpoints directly.
oauth2_server_metadata_urlOptionalNullable[str]:heavy_minus_sign:Optional URL to fetch OAuth2 authorization server metadata from (RFC 8414). When provided, the metadata is fetched from this URL and used instead of .well-known discovery. Mutually exclusive with oauth2_server_metadata.
system_promptOptionalNullable[str]:heavy_minus_sign:Optional system prompt for the connector.
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.Connector

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

list

List all your custom connectors with keyset pagination and filters.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.list(page_size=100)

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
query_filtersOptional[models.ConnectorsQueryFilters]:heavy_minus_sign:N/A
cursorOptionalNullable[str]:heavy_minus_sign:N/A
page_sizeOptional[int]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.PaginatedConnectors

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

get_auth_url

Get the OAuth2 authorization URL for a connector to initiate user authentication.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.get_auth_url(connector_id_or_name="<value>", github_installation_link=False)

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
app_return_urlOptionalNullable[str]:heavy_minus_sign:N/A
method_typeOptional[models.OutboundAuthenticationType]:heavy_minus_sign:Auth method type to use for the authorization URL. Required when the connector supports multiple interactive auth methods; otherwise the sole method is selected automatically. Use this to pick a specific method (e.g. 'oauth2' vs 'github_app').
credentials_nameOptionalNullable[str]:heavy_minus_sign:N/A
github_installation_linkOptional[bool]:heavy_minus_sign:Only valid with method_type=oauth2. When true, returns a GitHub App installation URL (https://github.com/apps//installations/new) if the connector has the proper configuration The Github application needs to have 'Request user authorization (OAuth) during installation' enabled to perform the proper auth loop.
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.AuthURLResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

activate_for_organization

Enable a connector at the organization level so all members can use it.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.activate_for_organization(connector_id="a91bb4ec-caab-4cf2-be03-84b8343f4643")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_idstr:heavy_check_mark:N/A
requires_confirmationOptionalNullable[models.RequiresConfirmation]:heavy_minus_sign:N/A
skip_confirmationOptionalNullable[models.SkipConfirmation]:heavy_minus_sign:N/A
includeList[str]:heavy_minus_sign:N/A
excludeList[str]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

deactivate_for_organization

Disable a connector at the organization level.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.deactivate_for_organization(connector_id="8f4c1089-2a37-44b3-a3c4-830ca7a0e439")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_idstr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

activate_for_workspace

Enable a connector at the workspace level so all members of the workspace can use it.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.activate_for_workspace(connector_id="2adfa8af-3618-41a9-8980-e5ea1486e58e")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_idstr:heavy_check_mark:N/A
requires_confirmationOptionalNullable[models.RequiresConfirmation]:heavy_minus_sign:N/A
skip_confirmationOptionalNullable[models.SkipConfirmation]:heavy_minus_sign:N/A
includeList[str]:heavy_minus_sign:N/A
excludeList[str]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

deactivate_for_workspace

Disable a connector at the workspace level.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.deactivate_for_workspace(connector_id="15b00e98-a9e7-4582-b0fc-87d28c3dac04")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_idstr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

activate_for_user

Enable a connector for the calling user only.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.activate_for_user(connector_id="cd4fb4d2-de68-451f-8f2a-57fe39b33d96")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_idstr:heavy_check_mark:N/A
requires_confirmationOptionalNullable[models.RequiresConfirmation]:heavy_minus_sign:N/A
skip_confirmationOptionalNullable[models.SkipConfirmation]:heavy_minus_sign:N/A
includeList[str]:heavy_minus_sign:N/A
excludeList[str]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

deactivate_for_user

Disable a connector for the calling user only.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.deactivate_for_user(connector_id="99c6ed86-e6bb-40ed-b6ee-d22ba791a68f")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_idstr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

call_tool

Call a tool on an MCP connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.call_tool(tool_name="<value>", connector_id_or_name="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
tool_namestr:heavy_check_mark:N/A
connector_id_or_namestr:heavy_check_mark:N/A
credentials_nameOptionalNullable[str]:heavy_minus_sign:N/A
argumentsDict[str, Any]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.ConnectorToolCallResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

list_tools

List all tools available for an MCP connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.list_tools(connector_id_or_name="<value>", page=1, page_size=100, refresh=False, pretty=False)

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
pageOptional[int]:heavy_minus_sign:N/A
page_sizeOptional[int]:heavy_minus_sign:N/A
refreshOptional[bool]:heavy_minus_sign:N/A
prettyOptional[bool]:heavy_minus_sign:Return a simplified payload with only name, description, annotations, and a compact inputSchema.
credentials_nameOptionalNullable[str]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.ResponseConnectorListToolsV1

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

get_authentication_methods

Get the authentication schema for a connector. Returns the list of supported authentication methods and their required headers.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.get_authentication_methods(connector_id_or_name="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

List[models.PublicAuthenticationMethod]

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

list_organization_credentials

List all credentials configured at the organization level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.list_organization_credentials(connector_id_or_name="<value>", fetch_default=False)

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
auth_typeOptionalNullable[models.OutboundAuthenticationType]:heavy_minus_sign:N/A
fetch_defaultOptional[bool]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.CredentialsResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

create_or_update_organization_credentials

Create or update credentials at the organization level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.create_or_update_organization_credentials(connector_id_or_name="<value>", name="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
namestr:heavy_check_mark:Name of the credentials. Use this name to access or modify your credentials.
is_defaultOptionalNullable[bool]:heavy_minus_sign:Controls whether this credential is the default for its auth method. On creation: if no credential exists yet for this auth method, the credential is automatically set as default when is_default is true or omitted; setting is_default to false is rejected because a default must exist. If other credentials already exist, setting is_default to true promotes this credential (demoting the previous default); false or omitted creates it as non-default. On update: true promotes this credential, false is rejected if it is currently the default (promote another credential first), omitted leaves the default status unchanged.
credentialsOptionalNullable[models.ConnectionCredentials]:heavy_minus_sign:The credential data (headers, bearer_token).
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

list_workspace_credentials

List all credentials configured at the workspace level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.list_workspace_credentials(connector_id_or_name="<value>", fetch_default=False)

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
auth_typeOptionalNullable[models.OutboundAuthenticationType]:heavy_minus_sign:N/A
fetch_defaultOptional[bool]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.CredentialsResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

create_or_update_workspace_credentials

Create or update credentials at the workspace level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.create_or_update_workspace_credentials(connector_id_or_name="<value>", name="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
namestr:heavy_check_mark:Name of the credentials. Use this name to access or modify your credentials.
is_defaultOptionalNullable[bool]:heavy_minus_sign:Controls whether this credential is the default for its auth method. On creation: if no credential exists yet for this auth method, the credential is automatically set as default when is_default is true or omitted; setting is_default to false is rejected because a default must exist. If other credentials already exist, setting is_default to true promotes this credential (demoting the previous default); false or omitted creates it as non-default. On update: true promotes this credential, false is rejected if it is currently the default (promote another credential first), omitted leaves the default status unchanged.
credentialsOptionalNullable[models.ConnectionCredentials]:heavy_minus_sign:The credential data (headers, bearer_token).
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

list_user_credentials

List all credentials configured at the user level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.list_user_credentials(connector_id_or_name="<value>", fetch_default=False)

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
auth_typeOptionalNullable[models.OutboundAuthenticationType]:heavy_minus_sign:N/A
fetch_defaultOptional[bool]:heavy_minus_sign:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.CredentialsResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

create_or_update_user_credentials

Create or update credentials at the user level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.create_or_update_user_credentials(connector_id_or_name="<value>", name="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
namestr:heavy_check_mark:Name of the credentials. Use this name to access or modify your credentials.
is_defaultOptionalNullable[bool]:heavy_minus_sign:Controls whether this credential is the default for its auth method. On creation: if no credential exists yet for this auth method, the credential is automatically set as default when is_default is true or omitted; setting is_default to false is rejected because a default must exist. If other credentials already exist, setting is_default to true promotes this credential (demoting the previous default); false or omitted creates it as non-default. On update: true promotes this credential, false is rejected if it is currently the default (promote another credential first), omitted leaves the default status unchanged.
credentialsOptionalNullable[models.ConnectionCredentials]:heavy_minus_sign:The credential data (headers, bearer_token).
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

delete_organization_credentials

Delete credentials at the organization level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.delete_organization_credentials(credentials_name="<value>", connector_id_or_name="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
credentials_namestr:heavy_check_mark:N/A
connector_id_or_namestr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

delete_workspace_credentials

Delete credentials at the workspace level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.delete_workspace_credentials(credentials_name="<value>", connector_id_or_name="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
credentials_namestr:heavy_check_mark:N/A
connector_id_or_namestr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

delete_user_credentials

Delete credentials at the user level for a given connector.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.delete_user_credentials(credentials_name="<value>", connector_id_or_name="<value>")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
credentials_namestr:heavy_check_mark:N/A
connector_id_or_namestr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

get

Get a connector by its ID or name.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.get(connector_id_or_name="<value>", fetch_user_data=False, fetch_customer_data=False)

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_id_or_namestr:heavy_check_mark:N/A
fetch_user_dataOptional[bool]:heavy_minus_sign:Fetch the user-level data associated with the connector (e.g. connection credentials).
fetch_customer_dataOptional[bool]:heavy_minus_sign:Fetch the customer data associated with the connector (e.g. customer secrets / config).
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.Connector

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

update

Update a connector by its ID.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.update(connector_id="81d30634-113f-4dce-a89e-7786be2d8693")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_idstr:heavy_check_mark:N/A
titleOptionalNullable[str]:heavy_minus_sign:Optional human-readable title for the connector.
nameOptionalNullable[str]:heavy_minus_sign:The name of the connector.
descriptionOptionalNullable[str]:heavy_minus_sign:The description of the connector.
icon_urlOptionalNullable[str]:heavy_minus_sign:The optional url of the icon you want to associate to the connector.
system_promptOptionalNullable[str]:heavy_minus_sign:Optional system prompt for the connector.
connection_configDict[str, Any]:heavy_minus_sign:Optional new connection config.
connection_secretsDict[str, Any]:heavy_minus_sign:Optional new connection secrets
serverOptionalNullable[str]:heavy_minus_sign:New server url for your mcp connector.
headersDict[str, Any]:heavy_minus_sign:New headers for your mcp connector.
auth_dataOptionalNullable[models.AuthData]:heavy_minus_sign:New authentication data for your mcp connector.
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.Connector

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*

delete

Delete a connector by its ID.

Example Usage

from mistralai.client import Mistral
import os


with Mistral(
    api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:

    res = mistral.beta.connectors.delete(connector_id="5c3269fe-6a18-4216-b1fb-b093005874cd")

    # Handle response
    print(res)

Parameters

ParameterTypeRequiredDescription
connector_idstr:heavy_check_mark:N/A
retriesOptional[utils.RetryConfig]:heavy_minus_sign:Configuration to override the default retry behavior of the client.

Response

models.MessageResponse

Errors

Error TypeStatus CodeContent Type
errors.HTTPValidationError422application/json
errors.SDKError4XX, 5XX*/*