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

# Create an app install connection

> Creates an embed or link connection on a manual app install, scoped to a set of
clients or a company. All targeted clients must belong to the same company. Requires
internal-user privileges.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/installs/{installId}/connections
openapi: 3.0.0
info:
  contact: {}
  title: Assembly API
  version: 0.0.1
servers:
  - url: https://api.assembly.com
security: []
paths:
  /v1/installs/{installId}/connections:
    post:
      tags:
        - Installs
      summary: Create an app install connection
      description: >-
        Creates an embed or link connection on a manual app install, scoped to a
        set of

        clients or a company. All targeted clients must belong to the same
        company. Requires

        internal-user privileges.
      operationId: create-app-connection
      parameters:
        - description: Unique identifier of the manual app install
          in: path
          name: installId
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/app_instance.AppConnectInput'
        description: Connection to create
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/appConnection.AppConnection'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Invalid request body, install type, link, company, or client set
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Missing or invalid API key
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: App install not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: A matching connection already exists or could not be created
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Unexpected server error
      security:
        - APIKeyHeader: []
components:
  schemas:
    app_instance.AppConnectInput:
      properties:
        autoSizeEmbed:
          description: >-
            AutoSizeEmbed controls whether an embed connection auto-sizes its
            iframe; defaults to true.
          example: true
          type: boolean
        clientIds:
          description: >-
            ClientIDs are the clients the connection should be scoped to; all
            must belong to the same company.
          example:
            - 550e8400-e29b-41d4-a716-446655440000
            - 7c9e6679-7425-40de-944b-e07fc1f90ae7
          items:
            type: string
          type: array
        companyId:
          description: >-
            CompanyID scopes the connection to a company; required when no
            clients are provided.
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
          format: uuid
          type: string
        content:
          description: >-
            Content is the embed code (for embed connections) or the destination
            URL (for link connections).
          example: https://app.example.com/embed
          type: string
        membershipType:
          description: >-
            MembershipType overrides how the connection's membership is
            interpreted (individual, group, or company).
          enum:
            - individual
            - group
            - company
          example: company
          type: string
        type:
          allOf:
            - $ref: '#/components/schemas/app_instance.AppConnectionType'
          description: Type is the kind of connection to create.
          enum:
            - embed
            - link
          example: link
      required:
        - content
        - type
      type: object
    appConnection.AppConnection:
      properties:
        clientIds:
          description: external facing root fields
          items:
            type: string
          nullable: true
          type: array
        companyId:
          nullable: true
          type: string
        content:
          type: string
        createdAt:
          type: string
        creatorId:
          type: string
        data:
          type: string
        domainMetadata:
          $ref: '#/components/schemas/appConnection.AppConnectionFields'
        id:
          type: string
        identityId:
          type: string
        installId:
          type: string
        membershipType:
          $ref: '#/components/schemas/appConnection.AppConnectionMembershipType'
        object:
          type: string
        previousAttributes:
          additionalProperties: true
          type: object
        ref:
          type: string
        type:
          $ref: '#/components/schemas/appConnection.AppConnectionType'
        updatedAt:
          type: string
      type: object
    dispatcher.Error:
      properties:
        code:
          type: string
        data: {}
        message:
          type: string
      type: object
    app_instance.AppConnectionType:
      enum:
        - embed
        - link
      type: string
      x-enum-varnames:
        - AppConnectionEmbed
        - AppConnectionLink
    appConnection.AppConnectionFields:
      properties:
        autoSizeEmbed:
          type: boolean
        companyId:
          type: string
        embedCode:
          type: string
        embedLink:
          type: string
        embedlyData:
          $ref: '#/components/schemas/embedly.OEmbedResponse'
        extensionConfigId:
          type: string
        memberIDs:
          additionalProperties:
            type: boolean
          type: object
      type: object
    appConnection.AppConnectionMembershipType:
      enum:
        - individual
        - group
        - company
      type: string
      x-enum-varnames:
        - Individual
        - Group
        - Company
    appConnection.AppConnectionType:
      enum:
        - embed
        - link
      type: string
      x-enum-varnames:
        - AppConnectionEmbed
        - AppConnectionLink
    embedly.OEmbedResponse:
      properties:
        author_name:
          type: string
        author_url:
          type: string
        cache_age:
          type: integer
        description:
          type: string
        height:
          type: integer
        html:
          type: string
        provider_name:
          type: string
        provider_url:
          type: string
        thumbnail_height:
          type: integer
        thumbnail_url:
          type: string
        thumbnail_width:
          type: integer
        title:
          type: string
        type:
          type: string
        url:
          type: string
        version:
          type: string
        width:
          type: integer
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-KEY
      type: apiKey

````