Optional additional authentication data for the connector.













Beta Connectors Endpoints
(beta) Connectors API - manage your connectors












Examples
Real world code examples
List all connectors.
GET /v1/connectors#
List all your custom connectors with keyset pagination and filters.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.list({});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.list({});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/connectors \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"items": [
{
"created_at": "2025-12-17T10:25:07.818693Z",
"description": "My resource description.",
"id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
"modified_at": "2025-12-17T10:41:03.469341Z",
"name": "My resource",
"owner_type": "1",
"private_tool_execution": false,
"visibility": "shared_global"
}
],
"pagination": {
"page_size": "1000"
}
}{
"items": [
{
"created_at": "2025-12-17T10:25:07.818693Z",
"description": "My resource description.",
"id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
"modified_at": "2025-12-17T10:41:03.469341Z",
"name": "My resource",
"owner_type": "1",
"private_tool_execution": false,
"visibility": "shared_global"
}
],
"pagination": {
"page_size": "1000"
}
}Create a new connector.
POST /v1/connectors#
Create a new MCP connector. You can customize its visibility, url and auth type.
Public create schema for MCP connectors.
Standalone model that excludes internal-only fields (hosted_internally,
mistral_integration, private_tool_execution, auth_scheme, locale,
github_app_data) and restricts visibility to :class:PublicResourceVisibility
(no shared_global).
headers#
Optional organization-level headers to be sent with the request to the mcp server.
icon_url#
The optional url of the icon you want to associate to the connector.
The name of the connector. Should be 64 char length maximum, alphanumeric, only underscores/dashes.
oauth2_server_metadata#
Custom superset of RFC 8414 OAuth 2.0 Authorization Server Metadata.
Stored at connector creation time (provided for HTTP connectors, discovered via .well-known for MCP). Mirrors the shape of .well-known/oauth-authorization-server responses.
oauth2_server_metadata_url#
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_prompt#
Optional system prompt for the connector.
title#
Optional human-readable title for the connector.
visibility#
Visibility options available to public API callers.
Excludes shared_global which is reserved for system-owned connectors.
201
Successful Response
active#
connection_config#
connection_credentials#
connection_preferences#
creator_id#
execution_env#
Credentials-free projection of ExecutionEnv for the public /connectors/mistral response.
icon_url#
is_authenticated#
locale#
mistral#
Default Value: false
owner_id#
protocol#
server#
server_card#
supported_auth_methods#
system_prompt#
system_prompt_route#
title#
tools#
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.create({
name: "<value>",
description: "unibody usually despite slushy wherever reward stingy from",
server: "https://royal-majority.net/",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.create({
name: "<value>",
description: "unibody usually despite slushy wherever reward stingy from",
server: "https://royal-majority.net/",
});
console.log(result);
}
run();
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
connector = client.beta.connectors.create(
name="company_docs",
description="Company documentation MCP connector",
server="https://mcp.example.com",
)
print(connector.id)
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
connector = client.beta.connectors.create(
name="company_docs",
description="Company documentation MCP connector",
server="https://mcp.example.com",
)
print(connector.id)
curl https://api.mistral.ai/v1/connectors \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"description": "My resource description.",
"name": "My resource",
"server": "https://mcp.example.com"
}'curl https://api.mistral.ai/v1/connectors \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"description": "My resource description.",
"name": "My resource",
"server": "https://mcp.example.com"
}'201
{
"created_at": "2025-12-17T10:25:07.818693Z",
"description": "My resource description.",
"id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
"modified_at": "2025-12-17T10:41:03.469341Z",
"name": "My resource",
"owner_type": "1",
"private_tool_execution": false,
"visibility": "shared_global"
}{
"created_at": "2025-12-17T10:25:07.818693Z",
"description": "My resource description.",
"id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
"modified_at": "2025-12-17T10:41:03.469341Z",
"name": "My resource",
"owner_type": "1",
"private_tool_execution": false,
"visibility": "shared_global"
}Get the auth URL for a connector.
GET /v1/connectors/{connector_id_or_name}/auth_url#
Get the OAuth2 authorization URL for a connector to initiate user authentication.
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.getAuthUrl({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.getAuthUrl({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
auth_url = client.beta.connectors.get_auth_url(
connector_id_or_name="company_docs",
credentials_name="production",
)
print(auth_url.auth_url)
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
auth_url = client.beta.connectors.get_auth_url(
connector_id_or_name="company_docs",
credentials_name="production",
)
print(auth_url.auth_url)
curl "https://api.mistral.ai/v1/connectors/company_docs/auth_url?credentials_name=production" \
-H "Authorization: Bearer $MISTRAL_API_KEY"
curl "https://api.mistral.ai/v1/connectors/company_docs/auth_url?credentials_name=production" \
-H "Authorization: Bearer $MISTRAL_API_KEY"
200
{
"auth_url": "https://auth.example.com/oauth/authorize",
"ttl": 87
}{
"auth_url": "https://auth.example.com/oauth/authorize",
"ttl": 87
}Share a private connector to the current workspace.
PUT /v1/connectors/{connector_id}/share#
Transfers ownership of a private user-owned connector to the current workspace, making it available to all workspace members. This action is irreversible: once shared, the connector belongs to the workspace and can no longer be used privately across other workspaces. Any authentication flows that rely on the original owner's identity (e.g. OAuth on-behalf-of) will be affected and must be reconfigured after sharing. Only the connector's creator can call this endpoint. Requires the ShareConnectorToWorkspace workspace permission.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.share({
connectorId: "cf748b50-632b-46d6-98c3-b015086cb194",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.share({
connectorId: "cf748b50-632b-46d6-98c3-b015086cb194",
});
console.log(result);
}
run();
from mistralai.client import Mistral
import os
with Mistral(
api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:
res = mistral.beta.connectors.share(connector_id="cf748b50-632b-46d6-98c3-b015086cb194")
# Handle response
print(res)
from mistralai.client import Mistral
import os
with Mistral(
api_key=os.getenv("MISTRAL_API_KEY", ""),
) as mistral:
res = mistral.beta.connectors.share(connector_id="cf748b50-632b-46d6-98c3-b015086cb194")
# Handle response
print(res)
curl https://api.mistral.ai/v1/connectors/{connector_id}/share \
-X PUT \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id}/share \
-X PUT \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Activate a connector for an organization.
POST /v1/connectors/{connector_id}/organization/activate#
Enable a connector at the organization level so all members can use it.
exclude#
include#
requires_confirmation#
skip_confirmation#
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.activateForOrganization({
connectorId: "a91bb4ec-caab-4cf2-be03-84b8343f4643",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.activateForOrganization({
connectorId: "a91bb4ec-caab-4cf2-be03-84b8343f4643",
});
console.log(result);
}
run();
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.beta.connectors.activate_for_organization(
connector_id="019b2bd7-96e7-7219-8c0b-45a73da50088",
tool_configuration={
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"],
},
)
print(response.message)
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.beta.connectors.activate_for_organization(
connector_id="019b2bd7-96e7-7219-8c0b-45a73da50088",
tool_configuration={
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"],
},
)
print(response.message)
curl https://api.mistral.ai/v1/connectors/019b2bd7-96e7-7219-8c0b-45a73da50088/organization/activate \
-X POST \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"]
}'
curl https://api.mistral.ai/v1/connectors/019b2bd7-96e7-7219-8c0b-45a73da50088/organization/activate \
-X POST \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"]
}'
200
{
"message": "Example message."
}{
"message": "Example message."
}Deactivate a connector for an organization.
POST /v1/connectors/{connector_id}/organization/deactivate#
Disable a connector at the organization level.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deactivateForOrganization({
connectorId: "8f4c1089-2a37-44b3-a3c4-830ca7a0e439",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deactivateForOrganization({
connectorId: "8f4c1089-2a37-44b3-a3c4-830ca7a0e439",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id}/organization/deactivate \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id}/organization/deactivate \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Activate a connector for a workspace.
POST /v1/connectors/{connector_id}/workspace/activate#
Enable a connector at the workspace level so all members of the workspace can use it.
exclude#
include#
requires_confirmation#
skip_confirmation#
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.activateForWorkspace({
connectorId: "2adfa8af-3618-41a9-8980-e5ea1486e58e",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.activateForWorkspace({
connectorId: "2adfa8af-3618-41a9-8980-e5ea1486e58e",
});
console.log(result);
}
run();
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.beta.connectors.activate_for_workspace(
connector_id="019b2bd7-96e7-7219-8c0b-45a73da50088",
tool_configuration={
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"],
},
)
print(response.message)
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.beta.connectors.activate_for_workspace(
connector_id="019b2bd7-96e7-7219-8c0b-45a73da50088",
tool_configuration={
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"],
},
)
print(response.message)
curl https://api.mistral.ai/v1/connectors/019b2bd7-96e7-7219-8c0b-45a73da50088/workspace/activate \
-X POST \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"]
}'
curl https://api.mistral.ai/v1/connectors/019b2bd7-96e7-7219-8c0b-45a73da50088/workspace/activate \
-X POST \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"]
}'
200
{
"message": "Example message."
}{
"message": "Example message."
}Deactivate a connector for a workspace.
POST /v1/connectors/{connector_id}/workspace/deactivate#
Disable a connector at the workspace level.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deactivateForWorkspace({
connectorId: "15b00e98-a9e7-4582-b0fc-87d28c3dac04",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deactivateForWorkspace({
connectorId: "15b00e98-a9e7-4582-b0fc-87d28c3dac04",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id}/workspace/deactivate \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id}/workspace/deactivate \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Activate a connector for the current user.
POST /v1/connectors/{connector_id}/user/activate#
Enable a connector for the calling user only.
exclude#
include#
requires_confirmation#
skip_confirmation#
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.activateForUser({
connectorId: "cd4fb4d2-de68-451f-8f2a-57fe39b33d96",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.activateForUser({
connectorId: "cd4fb4d2-de68-451f-8f2a-57fe39b33d96",
});
console.log(result);
}
run();
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.beta.connectors.activate_for_user(
connector_id="019b2bd7-96e7-7219-8c0b-45a73da50088",
tool_configuration={
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"],
},
)
print(response.message)
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
response = client.beta.connectors.activate_for_user(
connector_id="019b2bd7-96e7-7219-8c0b-45a73da50088",
tool_configuration={
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"],
},
)
print(response.message)
curl https://api.mistral.ai/v1/connectors/019b2bd7-96e7-7219-8c0b-45a73da50088/user/activate \
-X POST \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"]
}'
curl https://api.mistral.ai/v1/connectors/019b2bd7-96e7-7219-8c0b-45a73da50088/user/activate \
-X POST \
-H "Authorization: Bearer $MISTRAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"include": ["search"],
"requires_confirmation": ["delete_document"],
"skip_confirmation": ["read_document"]
}'
200
{
"message": "Example message."
}{
"message": "Example message."
}Deactivate a connector for the current user.
POST /v1/connectors/{connector_id}/user/deactivate#
Disable a connector for the calling user only.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deactivateForUser({
connectorId: "99c6ed86-e6bb-40ed-b6ee-d22ba791a68f",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deactivateForUser({
connectorId: "99c6ed86-e6bb-40ed-b6ee-d22ba791a68f",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id}/user/deactivate \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id}/user/deactivate \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Call Connector Tool
POST /v1/connectors/{connector_id_or_name}/tools/{tool_name}/call#
Call a tool on an MCP connector.
Request body for calling an MCP tool.
arguments#
200
Successful Response
AdditionalProperties#
metadata#
Metadata wrapper for MCP tool call responses.
Nests MCP-specific fields under mcp_meta to avoid collisions with other
metadata keys (e.g. tool_call_result) in Harmattan's streaming deltas.
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.callTool({
toolName: "<value>",
connectorIdOrName: "<value>",
connectorCallToolRequest: {},
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.callTool({
toolName: "<value>",
connectorIdOrName: "<value>",
connectorCallToolRequest: {},
});
console.log(result);
}
run();
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
result = client.beta.connectors.call_tool(
connector_id_or_name="company_docs",
tool_name="search",
)
print(result)
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
result = client.beta.connectors.call_tool(
connector_id_or_name="company_docs",
tool_name="search",
)
print(result)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/tools/{tool_name}/call \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{}'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/tools/{tool_name}/call \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{}'200
{
"content": [
{
"text": "Example text.",
"type": "document"
}
]
}{
"content": [
{
"text": "Example text.",
"type": "document"
}
]
}List tools for a connector.
GET /v1/connectors/{connector_id_or_name}/tools#
List all tools available for an MCP connector.
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.listTools({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.listTools({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/tools \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/tools \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
[
{
"inputSchema": [
null
],
"name": "My resource"
}
][
{
"inputSchema": [
null
],
"name": "My resource"
}
]Get authentication methods for a connector.
GET /v1/connectors/{connector_id_or_name}/authentication_methods#
Get the authentication schema for a connector. Returns the list of supported authentication methods and their required headers.
200
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.getAuthenticationMethods({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.getAuthenticationMethods({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/authentication_methods \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/authentication_methods \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
nullnullList organization credentials for a connector.
GET /v1/connectors/{connector_id_or_name}/organization/credentials#
List all credentials configured at the organization level for a given connector.
200
Successful Response
connector_preset_credentials_for_auth#
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.listOrganizationCredentials({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.listOrganizationCredentials({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/organization/credentials \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/organization/credentials \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"credentials": null
}{
"credentials": null
}Create or update organization credentials for a connector.
POST /v1/connectors/{connector_id_or_name}/organization/credentials#
Create or update credentials at the organization level for a given connector.
Request to create or update non-OAuth2 credentials for a connector.
is_default#
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.
title#
Human-readable title for the credentials.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.createOrUpdateOrganizationCredentials({
connectorIdOrName: "<value>",
credentialsCreateOrUpdate: {
name: "<value>",
},
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.createOrUpdateOrganizationCredentials({
connectorIdOrName: "<value>",
credentialsCreateOrUpdate: {
name: "<value>",
},
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/organization/credentials \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "My resource"
}'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/organization/credentials \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "My resource"
}'200
{
"message": "Example message."
}{
"message": "Example message."
}List workspace credentials for a connector.
GET /v1/connectors/{connector_id_or_name}/workspace/credentials#
List all credentials configured at the workspace level for a given connector.
200
Successful Response
connector_preset_credentials_for_auth#
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.listWorkspaceCredentials({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.listWorkspaceCredentials({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/workspace/credentials \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/workspace/credentials \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"credentials": null
}{
"credentials": null
}Create or update workspace credentials for a connector.
POST /v1/connectors/{connector_id_or_name}/workspace/credentials#
Create or update credentials at the workspace level for a given connector.
Request to create or update non-OAuth2 credentials for a connector.
is_default#
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.
title#
Human-readable title for the credentials.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.createOrUpdateWorkspaceCredentials({
connectorIdOrName: "<value>",
credentialsCreateOrUpdate: {
name: "<value>",
},
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.createOrUpdateWorkspaceCredentials({
connectorIdOrName: "<value>",
credentialsCreateOrUpdate: {
name: "<value>",
},
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/workspace/credentials \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "My resource"
}'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/workspace/credentials \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "My resource"
}'200
{
"message": "Example message."
}{
"message": "Example message."
}List user credentials for a connector.
GET /v1/connectors/{connector_id_or_name}/user/credentials#
List all credentials configured at the user level for a given connector.
200
Successful Response
connector_preset_credentials_for_auth#
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.listUserCredentials({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.listUserCredentials({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/user/credentials \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/user/credentials \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"credentials": null
}{
"credentials": null
}Create or update user credentials for a connector.
POST /v1/connectors/{connector_id_or_name}/user/credentials#
Create or update credentials at the user level for a given connector.
Request to create or update non-OAuth2 credentials for a connector.
is_default#
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.
title#
Human-readable title for the credentials.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.createOrUpdateUserCredentials({
connectorIdOrName: "<value>",
credentialsCreateOrUpdate: {
name: "<value>",
},
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.createOrUpdateUserCredentials({
connectorIdOrName: "<value>",
credentialsCreateOrUpdate: {
name: "<value>",
},
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/user/credentials \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "My resource"
}'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/user/credentials \
-X POST \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "My resource"
}'200
{
"message": "Example message."
}{
"message": "Example message."
}Delete all user credentials for a connector.
DELETE /v1/connectors/{connector_id_or_name}/user/credentials#
Delete all credentials configured at the user level for a given connector.
200
Successful Response
Playground
Test the endpoints live
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/user/credentials \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/user/credentials \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Delete organization credentials for a connector.
DELETE /v1/connectors/{connector_id_or_name}/organization/credentials/{credentials_name}#
Delete credentials at the organization level for a given connector.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deleteOrganizationCredentials({
credentialsName: "<value>",
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deleteOrganizationCredentials({
credentialsName: "<value>",
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/organization/credentials/{credentials_name} \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/organization/credentials/{credentials_name} \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Delete workspace credentials for a connector.
DELETE /v1/connectors/{connector_id_or_name}/workspace/credentials/{credentials_name}#
Delete credentials at the workspace level for a given connector.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deleteWorkspaceCredentials({
credentialsName: "<value>",
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deleteWorkspaceCredentials({
credentialsName: "<value>",
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/workspace/credentials/{credentials_name} \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/workspace/credentials/{credentials_name} \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Delete user credentials for a connector.
DELETE /v1/connectors/{connector_id_or_name}/user/credentials/{credentials_name}#
Delete credentials at the user level for a given connector.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deleteUserCredentials({
credentialsName: "<value>",
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.deleteUserCredentials({
credentialsName: "<value>",
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/user/credentials/{credentials_name} \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}/user/credentials/{credentials_name} \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Get a connector.
GET /v1/connectors/{connector_id_or_name}#idOrName#
Get a connector by its ID or name.
200
Successful Response
active#
connection_config#
connection_credentials#
connection_preferences#
creator_id#
execution_env#
Credentials-free projection of ExecutionEnv for the public /connectors/mistral response.
icon_url#
is_authenticated#
locale#
mistral#
Default Value: false
owner_id#
protocol#
server#
server_card#
supported_auth_methods#
system_prompt#
system_prompt_route#
title#
tools#
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.get({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.get({
connectorIdOrName: "<value>",
});
console.log(result);
}
run();
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
connector = client.beta.connectors.get(
connector_id_or_name="company_docs",
fetch_customer_data=False,
fetch_connection_secrets=False,
)
print(connector.name)
import os
from mistralai import Mistral
client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])
connector = client.beta.connectors.get(
connector_id_or_name="company_docs",
fetch_customer_data=False,
fetch_connection_secrets=False,
)
print(connector.name)
curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}#idOrName \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'curl https://api.mistral.ai/v1/connectors/{connector_id_or_name}#idOrName \
-X GET \
-H 'Authorization: Bearer YOUR_APIKEY_HERE'200
{
"created_at": "2025-12-17T10:25:07.818693Z",
"description": "My resource description.",
"id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
"modified_at": "2025-12-17T10:41:03.469341Z",
"name": "My resource",
"owner_type": "1",
"private_tool_execution": false,
"visibility": "shared_global"
}{
"created_at": "2025-12-17T10:25:07.818693Z",
"description": "My resource description.",
"id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
"modified_at": "2025-12-17T10:41:03.469341Z",
"name": "My resource",
"owner_type": "1",
"private_tool_execution": false,
"visibility": "shared_global"
}Delete a connector.
DELETE /v1/connectors/{connector_id}#id#
Delete a connector by its ID.
200
Successful Response
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.delete({
connectorId: "5c3269fe-6a18-4216-b1fb-b093005874cd",
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.delete({
connectorId: "5c3269fe-6a18-4216-b1fb-b093005874cd",
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id}#id \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'curl https://api.mistral.ai/v1/connectors/{connector_id}#id \
-X DELETE \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json'200
{
"message": "Example message."
}{
"message": "Example message."
}Update a connector.
PATCH /v1/connectors/{connector_id}#id#
Update a connector by its ID.
headers#
New headers for your mcp connector.
icon_url#
The optional url of the icon you want to associate to the connector.
protocol#
Default Value: "mcp"
system_prompt#
Optional system prompt for the connector.
title#
Optional human-readable title for the connector.
200
Successful Response
active#
connection_config#
connection_credentials#
connection_preferences#
creator_id#
execution_env#
Credentials-free projection of ExecutionEnv for the public /connectors/mistral response.
icon_url#
is_authenticated#
locale#
mistral#
Default Value: false
owner_id#
protocol#
server#
server_card#
supported_auth_methods#
system_prompt#
system_prompt_route#
title#
tools#
Playground
Test the endpoints live
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.update({
connectorId: "81d30634-113f-4dce-a89e-7786be2d8693",
updateConnectorRequest: {},
});
console.log(result);
}
run();
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({
apiKey: "MISTRAL_API_KEY",
});
async function run() {
const result = await mistral.beta.connectors.update({
connectorId: "81d30634-113f-4dce-a89e-7786be2d8693",
updateConnectorRequest: {},
});
console.log(result);
}
run();
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)
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)
curl https://api.mistral.ai/v1/connectors/{connector_id}#id \
-X PATCH \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{}'curl https://api.mistral.ai/v1/connectors/{connector_id}#id \
-X PATCH \
-H 'Authorization: Bearer YOUR_APIKEY_HERE' \
-H 'Content-Type: application/json' \
-d '{}'200
{
"created_at": "2025-12-17T10:25:07.818693Z",
"description": "My resource description.",
"id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
"modified_at": "2025-12-17T10:41:03.469341Z",
"name": "My resource",
"owner_type": "1",
"private_tool_execution": false,
"visibility": "shared_global"
}{
"created_at": "2025-12-17T10:25:07.818693Z",
"description": "My resource description.",
"id": "019b2bd7-96e7-7219-8c0b-45a73da50088",
"modified_at": "2025-12-17T10:41:03.469341Z",
"name": "My resource",
"owner_type": "1",
"private_tool_execution": false,
"visibility": "shared_global"
}