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

# Like an X post

> Likes a tweet via Posttu's Twitter REST API (POST /api/v1/twitter/posts/like) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/twitter/posts/like
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/twitter/posts/like:
    post:
      tags:
        - Twitter
      summary: Like an X post
      description: |-
        Likes a tweet.
        Requires API key scope: `twitter:write`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwitterTweetActionInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TwitterLikeResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TwitterTweetActionInput:
      type: object
      properties:
        channelId:
          type: string
          description: Twitter channel ID
          example: ch_tw123
        tweetId:
          type: string
          description: Tweet ID
      required:
        - channelId
        - tweetId
    TwitterLikeResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          type:
            - object
            - 'null'
          properties:
            message:
              type: string
            status:
              type: number
            data:
              type: string
          required:
            - message
            - status
            - data
          description: The TwitterClientResult<string>.
      required:
        - success
        - data
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.