> ## 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.

# Repurpose article/text for social platforms



## OpenAPI

````yaml /api-reference/ai-cms/openapi-TAGTEST.json post /ai/repurpose
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/repurpose:
    post:
      tags:
        - AI Automation
      summary: Repurpose article/text for social platforms
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              oneOf:
                - required:
                    - articleId
                - required:
                    - text
              properties:
                articleId:
                  type: string
                  description: Existing article id
                text:
                  type: string
                  description: Raw content (use instead of articleId)
                platforms:
                  type: array
                  items:
                    type: string
                    enum:
                      - linkedin
                      - twitter
                      - telegram
                      - instagram
                language:
                  type: string
                  example: en
                tone:
                  type: string
                  enum:
                    - professional
                    - friendly
                    - casual
                    - technical
                length:
                  type: string
                  enum:
                    - short
                    - medium
                    - long
      responses:
        '200':
          description: Platform-specific social outputs
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Envelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/RepurposeResult'
        '406':
          description: Validation failed
components:
  schemas:
    Envelope:
      type: object
      properties:
        success:
          type: boolean
        statusCode:
          type: integer
        message:
          type: string
        data:
          type:
            - object
            - 'null'
      required:
        - success
        - statusCode
        - message
        - data
    RepurposeResult:
      type: object
      properties:
        articleId:
          type:
            - string
            - 'null'
        platforms:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/RepurposedOutput'
        aiGenerationId:
          type: string
        tokens:
          $ref: '#/components/schemas/Tokens'
    RepurposedOutput:
      type: object
      properties:
        title:
          type: string
        summary:
          type: string
        content:
          type: string
        hashtags:
          type: array
          items:
            type: string
        cta:
          type: string
    Tokens:
      type: object
      required:
        - used
        - remaining
        - limit
      properties:
        used:
          type: integer
        remaining:
          type: integer
        limit:
          type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````