Skip to main content
GET
/
api
/
servers
/
{server_id}
/
connection
Get connection status
curl --request GET \
  --url https://{organization_id}.mcp.barndoor.ai/api/servers/{server_id}/connection \
  --header 'Authorization: Bearer <token>'
{
  "status": "connected"
}

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

Connection status

status
enum<string>
required

Current connection status

Available options:
available,
pending,
connected,
error
Example:

"connected"