Skip to main content
GET
/
api
/
servers
/
{server_id}
Get server details
curl --request GET \
  --url https://{organization_id}.mcp.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"
}

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
required

Server UUID or slug

Response

Server details

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

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"