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

# Unfollow a Mastodon account

> Unfollow a Mastodon account via Posttu's Mastodon REST API (POST /api/v1/mastodon/users/unfollow) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/mastodon/users/unfollow
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/mastodon/users/unfollow:
    post:
      tags:
        - Mastodon
      summary: Unfollow a Mastodon account
      description: |-
        Unfollow a Mastodon account
        Requires API key scope: `mastodon:write`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                channelId:
                  type: string
                  description: Mastodon channel ID
                  example: ch_md123
                userId:
                  type: string
                  description: Mastodon account ID
              required:
                - channelId
                - userId
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MastodonUserUnfollowResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MastodonUserUnfollowResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/MastodonAccount'
        success:
          type: boolean
        error:
          type: string
      required:
        - data
        - success
    MastodonAccount:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
        username:
          type: string
        acct:
          type: string
        display_name:
          type: string
        locked:
          type: boolean
        bot:
          type: boolean
        created_at:
          type: string
        note:
          type: string
        url:
          type: string
        avatar:
          type: string
        avatar_static:
          type: string
        header:
          type: string
        header_static:
          type: string
        followers_count:
          type: number
        following_count:
          type: number
        statuses_count:
          type: number
        last_status_at:
          type:
            - string
            - 'null'
        emojis:
          type: array
          items: {}
        fields:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              value:
                type: string
              verified_at:
                type:
                  - string
                  - 'null'
            required:
              - name
              - value
              - verified_at
      required:
        - id
        - username
        - acct
        - display_name
        - locked
        - bot
        - created_at
        - note
        - url
        - avatar
        - avatar_static
        - header
        - header_static
        - followers_count
        - following_count
        - statuses_count
        - last_status_at
      additionalProperties: {}
  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.