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

# List the tenant's social publishing connections

> Returns every stored connection for the tenant. Only linkedin, telegram and twitter are supported. Secrets are stored encrypted and are always masked in the response (`abcd...wxyz`).



## OpenAPI

````yaml /api-reference/ai-cms/openapi-TAGTEST.json get /ai/social/connections
openapi: 3.1.0
info:
  title: Blog API
  version: 1.0.0
servers:
  - url: https://api.octaviatech.app/cms
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Tags
    description: Tag management endpoints
paths:
  /ai/social/connections:
    get:
      tags:
        - AI Automation
      summary: List the tenant's social publishing connections
      description: >-
        Returns every stored connection for the tenant. Only linkedin, telegram
        and twitter are supported. Secrets are stored encrypted and are always
        masked in the response (`abcd...wxyz`).
      responses:
        '200':
          description: OK (connections)
          content:
            application/json:
              example:
                success: true
                statusCode: 200
                message: Social connections loaded
                data:
                  - tenantId: '{{objectId}}'
                    provider: linkedin
                    isActive: true
                    config:
                      accessToken: AQV...XyZ
                      authorUrn: urn:li:organization:123456
                    updatedBy: '{{objectId}}'
                    updatedAt: '2025-10-01T12:00:00.000Z'
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/SocialConnectionList'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden (role not allowed)
        '500':
          description: Failed to load connections
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Envelope:
      type: object
      properties:
        success:
          type: boolean
        statusCode:
          type: integer
        message:
          type: string
        data:
          type:
            - object
            - 'null'
      required:
        - success
        - statusCode
        - message
        - data
    SocialConnectionList:
      type: object
      properties:
        connections:
          type: array
          items:
            $ref: '#/components/schemas/SocialConnection'
    SocialConnection:
      type: object
      properties:
        tenantId:
          type: string
        provider:
          type: string
          enum:
            - linkedin
            - twitter
            - telegram
        isActive:
          type: boolean
        config:
          type: object
          additionalProperties:
            type: string
        updatedBy:
          oneOf:
            - $ref: '#/components/schemas/ObjectId'
            - type: 'null'
        updatedAt:
          $ref: '#/components/schemas/DateTime'
    ObjectId:
      type: string
      pattern: ^[a-fA-F0-9]{24}$
    DateTime:
      type: string
      format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````