# Barndoor Developer Documentation ## Docs - [Get Agent Counts](https://docs.barndoor.ai/api-reference/agents/counts/getAgentCounts.md): Get counts of agents grouped by type (internal vs external). - [Delete Agent by Id](https://docs.barndoor.ai/api-reference/agents/deleteAgent.md): Unregister an agent from Barndoor. - [GET Agent by Id](https://docs.barndoor.ai/api-reference/agents/getAgent.md): Get details of a specific agent by ID, including its application directory configuration. - [List Agents](https://docs.barndoor.ai/api-reference/agents/listAgents.md): List registered agents with pagination. - [Register Agent](https://docs.barndoor.ai/api-reference/agents/registerAgent.md): Register a new agent with Barndoor. - [Delete connection](https://docs.barndoor.ai/api-reference/connections/deleteConnection.md): Delete the current user's connection to this server. - [Get Connection Status](https://docs.barndoor.ai/api-reference/connections/getConnectionStatus.md): Get the user's connection status for a specific server. Used to poll connection status during OAuth flows. - [Initiate OAuth connection](https://docs.barndoor.ai/api-reference/connections/initiateConnection.md): Initiate OAuth connection flow for a server. Returns an authorization URL that the user should visit to complete the OAuth flow. - [Barndoor API Reference](https://docs.barndoor.ai/api-reference/introduction.md) - [MCP server proxy endpoint](https://docs.barndoor.ai/api-reference/mcp/proxyMcpRequest.md): Proxies MCP JSON-RPC requests to third-party servers with automatic authentication. - [Clone Policy](https://docs.barndoor.ai/api-reference/policies/clonePolicy.md): Clone an existing policy, creating a new policy with the same configuration but with a modified name (appending " Copy") and DRAFT status. - [Create or Update Policy](https://docs.barndoor.ai/api-reference/policies/createPolicy.md) - [Disable Restriction](https://docs.barndoor.ai/api-reference/policies/disableRestriction.md) - [Enable Restriction](https://docs.barndoor.ai/api-reference/policies/enableRestriction.md) - [Get Filter Definitions](https://docs.barndoor.ai/api-reference/policies/getFilterDefinitions.md): Return filter categories for the policies list UI. - [Get Policies Summary](https://docs.barndoor.ai/api-reference/policies/getPoliciesSummary.md): Return summary counts of policies by status. - [Get Policy](https://docs.barndoor.ai/api-reference/policies/getPolicy.md) - [List Policies](https://docs.barndoor.ai/api-reference/policies/listPolicies.md) - [List Policy Revisions](https://docs.barndoor.ai/api-reference/policies/listPolicyRevisions.md): List all revisions for a given policy with pagination. - [Reload Policy Cache](https://docs.barndoor.ai/api-reference/policies/reloadCache.md) - [Update Policy](https://docs.barndoor.ai/api-reference/policies/updatePolicy.md) - [Validate Policy](https://docs.barndoor.ai/api-reference/policies/validatePolicy.md): Validate a policy before creation or update. Checks for duplicate names and overlapping MCP server/agent combinations. When exclude_policy_id is provided (edit mode), that policy is excluded from validation. - [Create MCP Server](https://docs.barndoor.ai/api-reference/servers/createServer.md): Create a new MCP server instance from a server directory template. - [Delete Server by Id](https://docs.barndoor.ai/api-reference/servers/deleteServer.md): Delete an MCP server and all associated connections. - [Get Server by Id](https://docs.barndoor.ai/api-reference/servers/getServer.md): Get detailed information about a specific MCP server. Returns extended information including MCP URL if available. - [List MCP servers](https://docs.barndoor.ai/api-reference/servers/listServers.md): List all MCP servers available to the caller's organization. Returns paginated results with server details including connection status. - [Update MCP Server](https://docs.barndoor.ai/api-reference/servers/updateServer.md): Update an existing MCP server's configuration. - [SSE server proxy endpoint](https://docs.barndoor.ai/api-reference/sse/proxySSERequest.md): Server-Sent Events proxy endpoint for real-time streaming communication with third-party servers. - [Adding Your Agents](https://docs.barndoor.ai/how-tos/add-an-agent.md): Step-by-step guide for adding an agent in Barndoor. - [Registering MCP Servers](https://docs.barndoor.ai/how-tos/add-an-mcp-server.md): Step-by-step guide to register a new MCP server in Barndoor. - [Connecting Accounts to Barndoor](https://docs.barndoor.ai/how-tos/connected-accounts.md): Step-by-step guide for connecting external accounts (like Salesforce) in Barndoor. - [Connect AI clients to Barndoor](https://docs.barndoor.ai/how-tos/connecting-barndoor-to-agents.md): Step-by-Step: Connect your ToolIQ universal endpoint to your MCP Servers for Claude, ChatGPT, and other AI clients - [Connect your IdP](https://docs.barndoor.ai/how-tos/idp-setup.md): Set up SSO login and automatically provision user roles using any OIDC / SAML 2.0 compatible IdP - [IP Whitelisting](https://docs.barndoor.ai/how-tos/ip-whitelisting.md): Configure your firewall to allow Barndoor MCP traffic - [Managing Policies](https://docs.barndoor.ai/how-tos/manage-policies.md): Step-by-step guide to validate, create, activate, update, clone, and audit policies with the v2 API. - [Trial Guide](https://docs.barndoor.ai/how-tos/trial-guide.md): Complete guide to set up and configure your Barndoor platform from start to finish - [Introduction](https://docs.barndoor.ai/index.md): Welcome to Barndoor Documentation. Explore guides, tutorials, SDKs, code samples, reference docs, and more. - [Mcp servers](https://docs.barndoor.ai/mcp-servers/index.md) - [CrewAI](https://docs.barndoor.ai/sdks/examples/crewAI.md) - [General](https://docs.barndoor.ai/sdks/examples/general.md) - [Barndoor SDKs](https://docs.barndoor.ai/sdks/introduction.md): The Barndoor SDKs empowers developers to connect to governed Model Context Protocol (MCP) servers, enabling seamless interaction with platforms like Salesforce, Notion, and GitHub. Whether you're building AI-driven applications with OpenAI or performing direct API calls, the SDK simplifies authentic… - [Python](https://docs.barndoor.ai/sdks/python.md) - [Typescript](https://docs.barndoor.ai/sdks/typescript.md) ## OpenAPI Specs - [openapi](https://docs.barndoor.ai/api-reference/openapi.yml) ## Optional - [Barndoor.ai](https://barndoor.ai) - [AI Tools Directory](https://barndoor.ai/ai-tools/) - [Blog](https://barndoor.ai/blog/)