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

# Share Catalog

> Shares a catalog from the current project with another Peaka project. The target project gains read access to the catalog's schemas and tables. Provide the `targetProjectId` of the project you want to share the catalog with.

<span style={{display: "flex", gap: "10px", flexDirection: "row", alignItems: "center"}}>
  <img src="https://cdn.peaka.com/badges/partner-api-key-badge.png" />

  <img src="https://cdn.peaka.com/badges/project-api-key-badge.png" />
</span>


## OpenAPI

````yaml post /data/projects/{projectId}/catalogs/{catalogId}/share
openapi: 3.0.1
info:
  title: Peaka Gateway API
  description: Peaka Gateway API Documentation
  version: '1.0'
servers:
  - url: https://partner.peaka.studio/api/v1
    description: Default Server URL (US Zone)
  - url: https://partner.eu.peaka.studio/api/v1
    description: EU Zone
security:
  - bearerAuth: []
paths:
  /data/projects/{projectId}/catalogs/{catalogId}/share:
    post:
      tags:
        - Data -- Catalogs
      summary: Share Catalog
      description: >-
        Shares a catalog from the current project with another Peaka project.
        The target project gains read access to the catalog's schemas and
        tables. Provide the `targetProjectId` of the project you want to share
        the catalog with.
      operationId: shareCatalog
      parameters:
        - name: projectId
          in: path
          description: ID of the project
          required: true
          schema:
            type: string
          example: mtKDhe1U
        - name: catalogId
          in: path
          description: ID of the catalog
          required: true
          schema:
            type: string
          example: 846085284821991600
      requestBody:
        description: Share Request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CatalogShareRequestV2'
            example:
              targetProjectId: MQtMNNBY
        required: true
      responses:
        '200':
          description: Catalog shared successfully
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/SharedCatalogResponse'
              examples:
                Share Catalog Response:
                  description: Share Catalog Response
                  value:
                    sharedCatalogId: '555611268656923356'
components:
  schemas:
    CatalogShareRequestV2:
      type: object
      properties:
        targetProjectId:
          type: string
          description: Target Project ID
    SharedCatalogResponse:
      type: object
      properties:
        sharedCatalogId:
          type: string
          description: The ID of the shared catalog.
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        Use the Authorization header with the value 'Bearer <apiKey>' to
        authenticate. Partner API Keys have full access; Project API Keys are
        limited to their project scope. Learn more:
        https://docs.peaka.com/api-reference/authentication
      scheme: bearer
      bearerFormat: Api Key

````