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

# Get media

> Resolves a previously returned `media_id` into its storage path and public URL.



## OpenAPI

````yaml /openapi/public-api.yaml get /v1/media/{id}
openapi: 3.1.0
info:
  title: PostOnce Public API
  version: 1.0.0-alpha
  description: Public API for PostOnce paid users
servers:
  - url: https://postonce.to/api/public
security:
  - bearerAuth: []
paths:
  /v1/media/{id}:
    get:
      summary: Get media
      description: >-
        Resolves a previously returned `media_id` into its storage path and
        public URL.
      parameters:
        - $ref: '#/components/parameters/mediaId'
      responses:
        '200':
          description: Media resolved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Media'
        '400':
          description: Invalid media ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, invalid, revoked, or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthErrorResponse'
components:
  parameters:
    mediaId:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: Encoded `media_id` returned by the upload endpoint.
  schemas:
    Media:
      type: object
      properties:
        id:
          type: string
        path:
          type: string
        public_url:
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: workflow_limit_reached
            message:
              type: string
              example: You have reached the maximum number of workflows for your plan.
    AuthErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_api_key
            message:
              type: string
              example: Invalid API key.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````