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

# Get media metadata

> **Protocols:** Linked Device API · Meta Cloud API · Polymorfa Hybrid Link

<Badge color="green" icon="laptop">Linked Device API</Badge> <Badge color="blue" icon="meta" iconType="brands">Meta Cloud API</Badge> <Badge color="purple" icon="shuffle">Polymorfa Hybrid Link</Badge>


## OpenAPI

````yaml /api-reference/openapi.json get /api/media/{id}/info
openapi: 3.0.3
info:
  title: Polymorfa WhatsApp API
  version: 0.0.0
  description: >-
    Public Polymorfa REST API for sessions, messaging, media, webhooks,
    campaigns, templates, client tokens, widgets, and bridge routing.
  contact:
    name: Polymorfa API
    url: https://docs.polymorfa.com
servers:
  - url: https://api.polymorfa.com
security:
  - BearerAuth: []
paths:
  /api/media/{id}/info:
    get:
      tags:
        - Media
      summary: Get media metadata
      description: >-
        **Protocols:** Linked Device API · Meta Cloud API · Polymorfa Hybrid
        Link
      operationId: getMediaInfo
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Media info
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMediaInfoResponse'
        '400':
          description: Bad request — request body or params failed validation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Authenticated but not permitted (missing scope or rule violation)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    GetMediaInfoResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/MediaInfo'
      required:
        - success
        - data
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message
        docs:
          type: string
          description: URL to the documentation for this error
      required:
        - error
    MediaInfo:
      type: object
      properties:
        id:
          type: string
        session:
          type: string
        messageId:
          type: string
        mimeType:
          type: string
        fileLength:
          type: integer
          minimum: 0
        persisted:
          type: boolean
        s3Url:
          type: string
      required:
        - id
        - session
        - messageId
        - mimeType
        - fileLength
        - persisted
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Polymorfa organization key (titan_ prefix), project token (titan_pt_
        prefix), or client token (titan_ct_ prefix), where the operation permits
        that audience.

````