> ## Documentation Index
> Fetch the complete documentation index at: https://smithery.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get connection

> Get details for a specific connection. Requires service token with connections:read scope.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/smithery/openapi.documented.yml get /connect/{namespace}/{connectionId}
openapi: 3.1.0
info:
  title: Smithery Platform API
  description: >-
    API for the Smithery platform — discover, deploy, and manage MCP (Model
    Context Protocol) servers. Provides endpoints for browsing the server
    registry, managing deployments, creating scoped access tokens, and
    connecting to MCP servers.
  version: 1.0.0
servers:
  - url: https://api.smithery.ai
security:
  - bearerAuth: []
tags:
  - name: servers
    description: >-
      Browse the MCP server registry, manage server configuration, and handle
      deployments
  - name: skills
    description: Discover and search reusable prompt-based skills for MCP servers
  - name: tools
    description: Search for MCP tools across all registered servers
paths:
  /connect/{namespace}/{connectionId}:
    get:
      tags:
        - connect
      summary: Get connection
      description: >-
        Get details for a specific connection. Requires service token with
        connections:read scope.
      operationId: getSmithery.run:namespace:connectionId
      parameters:
        - schema:
            type: string
          in: path
          name: namespace
          required: true
        - schema:
            type: string
          in: path
          name: connectionId
          required: true
      responses:
        '200':
          description: Connection details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Connection'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Connection not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Connection:
      type: object
      properties:
        connectionId:
          type: string
          description: Connection ID (auto-generated or developer-defined)
          example: clever-dolphin-a9X3
        name:
          type: string
          description: Human-readable name
        transport:
          description: Connection transport
          type: string
          enum:
            - http
            - uplink
        mcpUrl:
          anyOf:
            - type: string
            - type: 'null'
          description: MCP server URL. Null for uplink connections.
        metadata:
          anyOf:
            - type: object
              propertyNames:
                type: string
              additionalProperties: {}
            - type: 'null'
        mock:
          $ref: '#/components/schemas/MockConfig'
          description: >-
            Mock-mode config: `{enabled: true, scenario?}` when LLM-simulated,
            absent otherwise.
        iconUrl:
          anyOf:
            - type: string
            - type: 'null'
        createdAt:
          description: ISO 8601 timestamp
          type: string
        status:
          $ref: '#/components/schemas/ConnectionStatus'
          description: Last known connection status
        serverInfo:
          $ref: '#/components/schemas/ServerInfo'
          description: Server information from MCP initialization (name, version)
      required:
        - connectionId
        - name
        - mcpUrl
        - metadata
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: string
          example: not_found
        message:
          type: string
          example: Resource not found
      required:
        - error
        - message
      additionalProperties: false
    MockConfig:
      type: object
      properties:
        enabled:
          type: boolean
          description: Turn mock mode on for this connection.
        scenario:
          description: >-
            Natural-language starting-state for the simulator (threaded into the
            LLM system prompt so generated data is consistent with the scenario
            across calls).
          example: >-
            Slack workspace with an active #community-ops channel containing
            recent event-planning messages, plus 50 Airtable candidate records
            with mixed tenure and interests.
          type: string
      required:
        - enabled
      additionalProperties: false
      id: MockConfig
    ConnectionStatus:
      oneOf:
        - type: object
          properties:
            state:
              type: string
              const: connected
          required:
            - state
          additionalProperties: false
          title: ConnectionStatusConnected
        - type: object
          properties:
            state:
              type: string
              const: disconnected
          required:
            - state
          additionalProperties: false
          title: ConnectionStatusDisconnected
        - type: object
          properties:
            state:
              type: string
              const: auth_required
            setupUrl:
              description: Hosted Smithery URL for completing setup and OAuth
              type: string
              format: uri
            authorizationUrl:
              description: Deprecated compatibility alias for setupUrl
              deprecated: true
              type: string
              format: uri
          required:
            - state
          additionalProperties: false
          title: ConnectionStatusAuthRequired
        - type: object
          properties:
            state:
              type: string
              const: input_required
            setupUrl:
              description: Hosted Smithery URL for completing setup in the browser
              type: string
              format: uri
            http:
              $ref: '#/components/schemas/CredentialProfileHttp'
            missing:
              type: object
              properties:
                headers:
                  type: array
                  items:
                    type: string
                query:
                  type: array
                  items:
                    type: string
              required:
                - headers
                - query
              additionalProperties: false
          required:
            - state
            - http
            - missing
          additionalProperties: false
          title: ConnectionStatusInputRequired
        - type: object
          properties:
            state:
              type: string
              const: error
            message:
              type: string
              description: Error message
          required:
            - state
            - message
          additionalProperties: false
          title: ConnectionStatusError
    ServerInfo:
      type: object
      properties:
        name:
          type: string
        title:
          type: string
        icons:
          type: array
          items:
            type: object
            properties:
              src:
                type: string
              mimeType:
                type: string
              sizes:
                type: array
                items:
                  type: string
              theme:
                type: string
                enum:
                  - light
                  - dark
            required:
              - src
            additionalProperties: false
        version:
          type: string
        websiteUrl:
          type: string
        description:
          type: string
      required:
        - name
        - version
      additionalProperties: false
    CredentialProfileHttp:
      type: object
      properties:
        headers:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            $ref: '#/components/schemas/HttpInputField'
        query:
          type: object
          propertyNames:
            type: string
          additionalProperties:
            $ref: '#/components/schemas/HttpInputField'
      additionalProperties: false
      id: CredentialProfileHttp
    HttpInputField:
      type: object
      properties:
        label:
          type: string
        description:
          type: string
        required:
          type: boolean
      required:
        - label
      additionalProperties: false
      id: HttpInputField
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Smithery API key as Bearer token

````