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

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



## OpenAPI

````yaml openapi.json POST /api/v1/onlyfans/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/onlyfans/media/get:
    post:
      tags:
        - OnlyFans
      summary: Get OnlyFans media by IDs
      description: |-
        Fetches OnlyFans media items for the given media IDs.
        Requires API key scope: `onlyfans:read`.
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/OnlyfansBaseInput'
                - type: object
                  properties:
                    ids:
                      type: array
                      items:
                        type: string
                      description: OnlyFans media IDs
                  required:
                    - ids
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OnlyfansMediaGetResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    OnlyfansBaseInput:
      type: object
      properties:
        channelId:
          type: string
          description: OnlyFans channel ID
          example: ch_of123
      required:
        - channelId
    OnlyfansMediaGetResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          type:
            - array
            - 'null'
          items:
            $ref: '#/components/schemas/OnlyfansVaultFile'
          description: The OnlyfansVaultFile[].
      required:
        - success
        - data
    OnlyfansVaultFile:
      type: object
      properties:
        id:
          type: number
        type:
          type: string
          enum:
            - photo
            - video
            - audio
            - gif
        convertedToVideo:
          type: boolean
        canView:
          type: boolean
        hasError:
          type: boolean
        createdAt:
          type: string
        isReady:
          type: boolean
        counters:
          type: object
          properties:
            likesCount:
              type: number
            tipsSumm:
              type: number
          required:
            - likesCount
            - tipsSumm
        files:
          type: object
          properties:
            full:
              type: object
              properties:
                url:
                  type: string
                width:
                  type: number
                height:
                  type: number
                size:
                  type: number
                sources:
                  type: array
                  items: {}
              required:
                - url
                - width
                - height
                - size
                - sources
            thumb:
              type: object
              properties:
                url:
                  type: string
                width:
                  type: number
                height:
                  type: number
                size:
                  type: number
              required:
                - url
                - width
                - height
                - size
            preview:
              type: object
              properties:
                url:
                  type: string
                width:
                  type: number
                height:
                  type: number
                size:
                  type: number
              required:
                - url
                - width
                - height
                - size
            squarePreview:
              type: object
              properties:
                url:
                  type: string
                width:
                  type: number
                height:
                  type: number
                size:
                  type: number
              required:
                - url
                - width
                - height
                - size
        duration:
          type: number
        hasPosts:
          type: boolean
        listStates:
          type: array
          items:
            type: object
            properties:
              id:
                type: number
              type:
                type: string
              name:
                type: string
              hasMedia:
                type: boolean
              canAddMedia:
                type: boolean
            required:
              - id
              - type
              - name
              - hasMedia
              - canAddMedia
        hasCustomPreview:
          type: boolean
        videoSources:
          type: object
          properties:
            '240': {}
            '720': {}
      required:
        - id
        - type
        - files
  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.