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

# Share form

> Share a form with contacts by email. Publishes the form (anyone with its link can open it) and sends invitation emails



## OpenAPI

````yaml /api-reference/cx/swagger.json post /library/forms/{form}/_share
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /library/forms/{form}/_share:
    post:
      tags:
        - library
      summary: Share form
      description: >-
        Share a form with contacts by email. Publishes the form (anyone with its
        link can open it) and sends invitation emails
      parameters:
        - description: Form ID
          name: form
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pkg_routes_library_forms.ShareRequest'
        description: Share request with email addresses
        required: true
      responses:
        '200':
          description: Share result
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/pkg_routes_library_forms.ShareFormResponse
        '400':
          description: Bad request - invalid form ID or request body
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_library_forms.ShareRequest:
      type: object
      properties:
        emails:
          description: ID
          type: array
          items:
            type: string
    pkg_routes_library_forms.ShareFormResponse:
      type: object
      properties:
        ok:
          type: boolean
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.