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

# Adapt Content Endpoint

> Adapt content for multiple target platforms.

Rewrites the input text to match each platform's character limits,
tone conventions, and hashtag norms. Returns validation results per platform.



## OpenAPI

````yaml /openapi.json post /api/v1/content/adapt
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/content/adapt:
    post:
      tags:
        - Content Adaptation
        - Content Adaptation
      summary: Adapt Content Endpoint
      description: >-
        Adapt content for multiple target platforms.


        Rewrites the input text to match each platform's character limits,

        tone conventions, and hashtag norms. Returns validation results per
        platform.
      operationId: adapt_content_endpoint_api_v1_content_adapt_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdaptContentRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties:
                  $ref: '#/components/schemas/AdaptedContentResponse'
                type: object
                title: Response Adapt Content Endpoint Api V1 Content Adapt Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AdaptContentRequest:
      properties:
        text:
          type: string
          maxLength: 50000
          minLength: 1
          title: Text
          description: Original content to adapt
        source_platform:
          type: string
          title: Source Platform
          description: Platform the content was written for
        target_platforms:
          items:
            type: string
          type: array
          maxItems: 6
          minItems: 1
          title: Target Platforms
          description: Platforms to adapt for
        brand_voice:
          anyOf:
            - type: string
              maxLength: 5000
            - type: 'null'
          title: Brand Voice
          description: Optional brand voice guidelines
      type: object
      required:
        - text
        - source_platform
        - target_platforms
      title: AdaptContentRequest
    AdaptedContentResponse:
      properties:
        platform:
          type: string
          title: Platform
        text:
          type: string
          title: Text
        hashtags:
          items:
            type: string
          type: array
          title: Hashtags
        char_count:
          type: integer
          title: Char Count
        char_limit:
          type: integer
          title: Char Limit
        is_valid:
          type: boolean
          title: Is Valid
        validation_warnings:
          items:
            type: string
          type: array
          title: Validation Warnings
      type: object
      required:
        - platform
        - text
        - hashtags
        - char_count
        - char_limit
        - is_valid
        - validation_warnings
      title: AdaptedContentResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````