---
reference:
  curl:
    - key: get_connection
      id: get_connection
      url: /reference/sso/connection/get
      title: '/connections/:id'
      type: GET
      parameters:
        - (connection.id)
      returns:
        - (connection)
  dotnet:
    - key: GetConnection
      id: get_connection
      url: /reference/sso/connection/get
      title: ssoService.GetConnection()
      parameters:
        - key: id
          type: string
          description: (connection.id)
        - (cancellationToken)
      returns:
        - key: Task<Connection>
          description: (connection.self)
  ruby:
    - key: get_connection
      id: get_connection
      url: /reference/sso/connection/get
      title: SSO.get_connection()
      parameters:
        - (Connection.id)
      returns:
        - (Connection)
  php:
    - key: getConnection
      id: get_connection
      url: /reference/sso/connection/get
      title: $sso->getConnection()
      parameters:
        - key: connection
          type: string
          description: (connection.id)
      returns:
        - (Connection)
  python:
    - key: get_connection
      id: get_connection
      url: /reference/sso/connection/get
      title: sso.get_connection()
      parameters:
        - key: connection_id
          type: str
          description: (connection.id)
      returns:
        - (Connection)
  js:
    - key: getConnection
      id: get_connection
      url: /reference/sso/connection/get
      title: sso.getConnection()
      parameters:
        - (Connection.id)
      returns:
        - (Connection)
  go:
    - key: GetConnection
      id: get_connection
      url: /reference/sso/connection/get
      title: sso.GetConnection()
      parameters:
        - (ctx)
        - key: opts
          type: sso.GetConnectionOpts
          expanded: true
          properties:
            - key: Connection
              type: string
              description: (connection.id)
      returns:
        - key: connection
          type: sso.Connection
          description: (connection.self)
        - (err)
  java:
    - key: getConnection
      id: get_connection
      url: /reference/sso/connection/get
      title: sso.getConnection()
      parameters:
        - (Connection.id)
      returns:
        - (Connection)
originalPath: .tmp-workos-clone/packages/docs/content/reference/sso/connection/get.mdx
---

## Get a Connection

Get the details of an existing connection.

<CodeBlock referenceId="get_connection">
  <CodeBlockTab title="Request" file="get-connection-request" />
  <CodeBlockTab title="Response" file="get-connection-response" />
</CodeBlock>
