Skip to main content
DELETE
/
api
/
servers
/
{server_id}
Delete MCP server
curl --request DELETE \
  --url https://{organization_id}.platform.barndoor.ai/api/servers/{server_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Salesforce Production",
  "slug": "salesforce",
  "connection_status": "connected",
  "provider": "salesforce",
  "url": "https://api.salesforce.com/mcp"
}

Documentation Index

Fetch the complete documentation index at: https://docs.barndoor.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT token obtained through Auth0 OAuth 2.0 flow with PKCE.

The token should be included in the Authorization header: Authorization: Bearer <your-jwt-token>

Use the Barndoor SDK's loginInteractive() function to obtain tokens automatically.

Path Parameters

server_id
string<uuid>
required

Server UUID

Response

Server deleted successfully

id
string<uuid>
required

Unique identifier for the server

Example:

"123e4567-e89b-12d3-a456-426614174000"

name
string
required

Human-readable name of the server

Example:

"Salesforce Production"

slug
string
required

URL-friendly identifier used in API paths

Pattern: ^[a-z0-9-]+$
Example:

"salesforce"

connection_status
enum<string>
required

Current connection status:

  • available: Server is available but not connected
  • pending: Connection is in progress or credentials missing
  • connected: Server is connected and ready to use
  • error: Connection failed or encountered an error
Available options:
available,
pending,
connected,
error
Example:

"connected"

provider
string | null

Third-party provider name

Example:

"salesforce"

url
string<uri> | null

MCP base URL from the server directory

Example:

"https://api.salesforce.com/mcp"