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

# Get a list of trainings for sharing

In a post can be shared only **public** trainings passed or started by the current API user.

To retrieve the list of these trainings, you can call `getTrainingsForSharing` query.

The query accepts the same arguments as `getCatalogData` and can be [paginated](/OpignoEnterpriseAPI/PaginatingCatalogItems),
[sorted](/OpignoEnterpriseAPI/SortingCatalogItems) and [filtered](/OpignoEnterpriseAPI/FilteringCatalogItems) in the same way.
It also re turns exactly the same structure as `getCatalogData`.

<CodeGroup>
  ```filename GraphQL theme={null}
    query getTrainingsForSharing {
      getTrainingsForSharing(first: 2) {
        edges {
          node {
            id
            training {
              title
              image {
                alt
                title
                url
              }
            }
          }
        }
        pageInfo {
          hasNextPage
          startCursor
          endCursor
        }
      }
    }
  ```

  ```File Query result [expandable] theme={null}
  {
    "data": {
      "getTrainingsForSharing": {
        "edges": [
          {
            "node": {
              "id": "91",
              "training": {
                "title": "4 new act train ing",
                "image": [
                  {
                    "alt": null,
                    "title": "iStock-1354989842.jpg",
                    "url": "http://opigno4-project.docksal.site:8080/sites/default/files/2025-05/iStock-1354989842.jpg"
                  }
                ]
              }
            }
          },
          {
            "node": {
              "id": "44",
              "training": {
                "title": "Advanced Leadership Techniques",
                "image": []
              }
            }
          }
        ],
        "pageInfo": {
          "hasNextPage": true,
          "startCursor": "TzozMzoiRHJ1cGFsXG9waWdub19hcGlcV3JhcHBlcnNcQ3Vyc29yIjo0OntzOjE0OiIAKgBiYWNraW5nVHlwZSI7czo5OiJvcGlnbm9fbHAiO3M6MTI6IgAqAGJhY2tpbmdJZCI7aTo5MTtzOjEwOiIAKgBzb3J0S2V5IjtzOjU6IlRJVExFIjtzOjEyOiIAKgBzb3J0VmFsdWUiO3M6MTk6IjQgbmV3IGFjdCB0cmFpbiBpbmciO30=",
          "endCursor": "TzozMzoiRHJ1cGFsXG9waWdub19hcGlcV3JhcHBlcnNcQ3Vyc29yIjo0OntzOjE0OiIAKgBiYWNraW5nVHlwZSI7czo5OiJvcGlnbm9fbHAiO3M6MTI6IgAqAGJhY2tpbmdJZCI7aTo0NDtzOjEwOiIAKgBzb3J0S2V5IjtzOjU6IlRJVExFIjtzOjEyOiIAKgBzb3J0VmFsdWUiO3M6MzA6IkFkdmFuY2VkIExlYWRlcnNoaXAgVGVjaG5pcXVlcyI7fQ=="
        }
      }
    }
  }
  ```
</CodeGroup>
