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

# Get Mastodon account relationships

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



## OpenAPI

````yaml openapi.json POST /api/v1/mastodon/users/relationships
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/relationships:
    post:
      tags:
        - Mastodon
      summary: Get Mastodon account relationships
      description: |-
        Get Mastodon account relationships
        Requires API key scope: `mastodon:read`.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                channelId:
                  type: string
                  description: Mastodon channel ID
                  example: ch_md123
                accountIds:
                  type: array
                  items:
                    type: string
                  minItems: 1
              required:
                - channelId
                - accountIds
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MastodonUserRelationshipsResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    MastodonUserRelationshipsResponse:
      type: object
      properties:
        data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/MastodonRelationship'
        success:
          type: boolean
        error:
          type: string
      required:
        - data
        - success
    MastodonRelationship:
      type: object
      properties:
        id:
          type: string
        following:
          type: boolean
        showing_reblogs:
          type: boolean
        notifying:
          type: boolean
        languages:
          type: array
          items:
            type: string
        followed_by:
          type: boolean
        blocking:
          type: boolean
        blocked_by:
          type: boolean
        muting:
          type: boolean
        muting_notifications:
          type: boolean
        requested:
          type: boolean
        domain_blocking:
          type: boolean
        endorsed:
          type: boolean
        note:
          type: string
      required:
        - id
        - following
        - showing_reblogs
        - notifying
        - followed_by
        - blocking
        - blocked_by
        - muting
        - muting_notifications
        - requested
        - domain_blocking
        - endorsed
        - note
  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.