> ## 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 Fansly media by IDs

> Fetches Fansly media items for the given media IDs via Posttu's Fansly REST API (POST /api/v1/fansly/media/get) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/fansly/media/get
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/fansly/media/get:
    post:
      tags:
        - Fansly
      summary: Get Fansly media by IDs
      description: |-
        Fetches Fansly media items for the given media IDs.
        Requires API key scope: `fansly:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FanslyMediaGetApiInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FanslyMediaGetResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    FanslyMediaGetApiInput:
      type: object
      properties:
        channelId:
          type: string
          description: Fansly channel ID
          example: ch_fansly123
        ids:
          type: array
          items:
            type: string
      required:
        - channelId
        - ids
    FanslyMediaGetResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/FanslyAccountMedia'
          description: The FanslyAccountMedia[].
      required:
        - success
        - data
    FanslyAccountMedia:
      type: object
      properties:
        id:
          type: string
        accountId:
          type: string
        mediaId:
          type: string
        previewId: {}
        permissionFlags:
          type: number
        price:
          type: number
        createdAt:
          type: number
        deletedAt: {}
        deleted:
          type: boolean
        permissions:
          type: object
          properties:
            permissionFlags:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  flags:
                    type: number
                  verificationFlags:
                    type:
                      - number
                      - 'null'
                  metadata:
                    type:
                      - string
                      - 'null'
                  validAfter:
                    type:
                      - number
                      - 'null'
                  validBefore:
                    type:
                      - number
                      - 'null'
                  price:
                    type: number
                    default: 0
                  type:
                    type: number
                    default: 0
                required:
                  - flags
            accountPermissionFlags:
              type:
                - object
                - 'null'
              properties:
                flags:
                  type: number
                metadata:
                  type: string
              required:
                - flags
          required:
            - permissionFlags
        likeCount:
          type: number
        whitelist:
          type: array
          items:
            type: object
            properties:
              accountId:
                type: string
              permissionFlags:
                type: number
            required:
              - accountId
              - permissionFlags
        media:
          type: object
          properties:
            id:
              type: string
            type:
              type: number
            status:
              type: number
            accountId:
              type: string
            mimetype:
              type: string
            flags:
              type: number
            filename:
              type: string
            location:
              type: string
            width:
              type: number
            height:
              type: number
            metadata:
              type: string
            updatedAt:
              type: number
            createdAt:
              type: number
            variants:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  type:
                    type: number
                  status:
                    type: number
                  mimetype:
                    type: string
                  flags:
                    type: number
                  filename:
                    type: string
                  location:
                    type: string
                  width:
                    type: number
                  height:
                    type: number
                  metadata:
                    type: string
                  updatedAt:
                    type: number
                  locations:
                    type: array
                    items:
                      type: object
                      properties:
                        locationId:
                          type: string
                        location:
                          type: string
                      required:
                        - locationId
                        - location
                required:
                  - id
                  - type
                  - status
                  - mimetype
                  - flags
                  - filename
                  - location
                  - width
                  - height
                  - metadata
                  - updatedAt
                  - locations
            variantHash:
              type: object
              properties: {}
            locations:
              type: array
              items:
                type: object
                properties:
                  locationId:
                    type: string
                  location:
                    type: string
                required:
                  - locationId
                  - location
          required:
            - id
            - type
            - status
            - accountId
            - mimetype
            - flags
            - filename
            - location
            - width
            - height
            - metadata
            - updatedAt
            - createdAt
            - variants
            - variantHash
            - locations
        purchased:
          type: boolean
        whitelisted:
          type: boolean
        accountPermissionFlags:
          type: number
        access:
          type: boolean
      required:
        - id
        - accountId
        - mediaId
        - permissionFlags
        - price
        - createdAt
        - deleted
        - permissions
        - likeCount
        - whitelist
        - media
        - purchased
        - whitelisted
        - accountPermissionFlags
        - access
  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.