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

# [SC2] Create Social Post

> Creates a complete LinkedIn post with hook, body, CTA, hashtags, and optional AI-generated image sized for LinkedIn.



## OpenAPI

````yaml /api-reference/v1/v1.1.0_openapi.json post /action/social_post_creator_generate_post_action
openapi: 3.0.0
info:
  version: 1.1.0
  title: AI Actions - Get Data
  description: API specifications for 'Get Data' category AI actions.
  license:
    name: MIT
servers:
  - url: https://api-lr.agent.ai/v1
security:
  - bearerAuth: []
paths:
  /action/social_post_creator_generate_post_action:
    post:
      tags:
        - Social Content Team
      summary: '[SC2] Create Social Post'
      description: >-
        Creates a complete LinkedIn post with hook, body, CTA, hashtags, and
        optional AI-generated image sized for LinkedIn.
      operationId: socialPostCreatorGeneratePostAction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                topic:
                  type: string
                  description: What is this post about? Be specific for best results.
                post_format:
                  type: string
                  enum:
                    - text
                    - image
                  default: text
                image_style:
                  type: string
                  enum:
                    - conceptual
                    - data_stat
                    - quote_card
                    - infographic
                  description: Only applies when format is Image Post.
                  default: conceptual
                image_aspect_ratio:
                  type: string
                  enum:
                    - portrait
                    - square
                  description: Portrait takes up more feed space on mobile.
                  default: portrait
                key_points:
                  type: string
                  x-ui: textarea
                  description: Any specific data, anecdote, or angle to include.
                cta_intent:
                  type: string
                  enum:
                    - engage
                    - visit_link
                    - follow
                    - dm
                  default: engage
                link_url:
                  type: string
                  description: >-
                    Only used when CTA goal is Visit Link. Placed in first
                    comment, not post body.
                content_pillar:
                  type: string
                  description: Which content pillar this post maps to.
                brand_voice:
                  type: string
                  enum:
                    - professional_authoritative
                    - conversational_relatable
                    - bold_opinionated
                    - warm_supportive
                    - witty_playful
                    - educational_helpful
                brand_primary_color:
                  type: string
                  description: >-
                    Hex code (e.g. #1d4ed8). Used as the dominant color in
                    generated images.
                brand_secondary_color:
                  type: string
                  description: >-
                    Hex code (e.g. #f59e0b). Used as accent color in generated
                    images.
                brand_logo_url:
                  type: string
                  description: >-
                    S3 or public URL to brand logo (PNG/SVG). Used in quote
                    cards and infographics.
                output_variable_name:
                  type: string
                  description: Variable name for the result.
                  default: social_post
                  pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
              required:
                - topic
                - post_format
                - output_variable_name
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '401':
          description: Unauthorized - invalid or missing bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActionResponse'
components:
  schemas:
    ActionResponse:
      type: object
      properties:
        status:
          type: integer
          format: int32
          description: HTTP status code of the action response
        response:
          type: object
          description: Response data from the action
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from your account
        ([https://agent.ai/user/integrations#api](https://agent.ai/user/integrations#api))

````