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

# List End User Connections

> ListEndUserConnections returns all the Connections for the given End User.

The result may be filtered by `hub_connector_id` to only return connections for a specific Hub Connector.




## OpenAPI

````yaml get /hubs/{hub_id}/users/{user_id}/connections
openapi: 3.1.0
info:
  title: Versori Embedded API
  version: 0.0.1
  license:
    name: UNLICENSED
    identifier: UNLICENSED
  description: V1 API for managing embedded integrations
servers:
  - description: Production
    url: https://platform.versori.com/api/embedded/v1
  - description: Staging
    url: https://platform-staging.versori.com/api/embedded/v1/
  - description: Development
    url: http://localhost:8950/embedded/v1
security: []
tags:
  - name: Hubs
  - name: End Users
  - name: Connectors
  - name: Integrations
  - name: Connections
  - name: Embedded
  - name: Miscellaneous
  - name: Internal
paths:
  /hubs/{hub_id}/users/{user_id}/connections:
    parameters:
      - $ref: '#/components/parameters/hub_id'
      - $ref: '#/components/parameters/user_id'
      - $ref: '#/components/parameters/identifier_type'
    get:
      tags:
        - Connections
      summary: List End User Connections
      description: >
        ListEndUserConnections returns all the Connections for the given End
        User.


        The result may be filtered by `hub_connector_id` to only return
        connections for a specific Hub Connector.
      operationId: ListEndUserConnections
      parameters:
        - $ref: '#/components/parameters/first'
        - $ref: '#/components/parameters/before'
        - $ref: '#/components/parameters/after'
        - name: hub_connector_id
          in: query
          description: >
            Search is a string that is used to filter the list of Connections.
            The search string is matched against the

            name.
          schema:
            type: array
            items:
              type: string
          explode: false
          x-go-type-skip-optional-pointer: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndUserConnectionsPage'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    hub_id:
      name: hub_id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/ULID'
    user_id:
      description: >
        UserID references an End User in the Hub. 


        Most APIs support setting this value to either the internal Versori
        identifier or their external ID as 

        determined by the organisation. The `identifier_type` query parameter is
        used to indicate which type of ID is

        being used.
      name: user_id
      in: path
      required: true
      schema:
        type: string
    identifier_type:
      name: identifier_type
      in: query
      description: >
        IdentifierType indicates whether the `user_id` path parameter is a
        internal identifier created by Versori, or an 

        external identifier. If the value is `external`, some endpoints also
        require the `hub` query parameter to

        identify the correct Hub.
      required: false
      schema:
        type: string
        enum:
          - internal
          - external
        default: external
    first:
      name: first
      in: query
      required: false
      schema:
        type: integer
        default: 20
    before:
      name: before
      in: query
      required: false
      schema:
        type: string
    after:
      name: after
      in: query
      required: false
      schema:
        type: string
  schemas:
    EndUserConnectionsPage:
      description: ConnectorConnectionPage defines a page of Connection summaries.
      type: object
      allOf:
        - $ref: '#/components/schemas/PageInfo'
        - type: object
          properties:
            connections:
              type: array
              items:
                $ref: '#/components/schemas/ConnectionSummary'
              x-go-type-skip-optional-pointer: true
    Error:
      type: object
      properties:
        code:
          type: string
          description: Code is a machine-readable error code.
        message:
          type: string
          description: Message is a human-readable error message.
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ErrorField'
          x-go-type-skip-optional-pointer: true
        details:
          type: string
          x-go-type-skip-optional-pointer: true
      required:
        - code
        - message
    ULID:
      type: string
      format: ulid
      x-go-type: ulid.ULID
      x-go-type-skip-optional-pointer: true
      x-go-type-import:
        path: versori.dev/vergo/ulid
    PageInfo:
      type: object
      properties:
        totalCount:
          type: integer
        next:
          type: string
          x-go-type-skip-optional-pointer: true
        prev:
          type: string
          x-go-type-skip-optional-pointer: true
      required:
        - totalCount
    ConnectionSummary:
      description: ConnectionSummary defines a summary of an Connection.
      type: object
      properties:
        id:
          type: string
          format: ulid
          description: >
            ID is the unique identifier of the Connection. Typically this is
            only used internally and most (if not all)

            public-facing APIs will use the `name` in combination with the
            Connector's `id` instead.
          x-go-name: ID
          x-go-type: ulid.ULID
          x-go-type-import:
            path: versori.dev/vergo/ulid
        name:
          type: string
          description: Name is the name of the Connection.
        createdAt:
          type: string
          format: date-time
          description: CreatedAt is the time the Connection was created.
        updatedAt:
          type: string
          format: date-time
          description: UpdatedAt is the time the Connection was last updated.
      required:
        - id
        - name
        - createdAt
        - updatedAt
    ErrorField:
      description: ErrorField denotes a field which has an error.
      type: object
      properties:
        field:
          type: string
          description: >
            Field is the name of the field which has an error, this may be a
            path to a nested field, including array

            elements. The format of this field is of the form:
            "field1.field2[0].field3"
        message:
          type: string
          description: Message is the error message for this specific field.
      required:
        - field
        - message

````