> ## 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 LinkedIn media by URN

> Get LinkedIn media by URN via Posttu's LinkedIn REST API (POST /api/v1/linkedin/media/get) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/linkedin/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/linkedin/media/get:
    post:
      tags:
        - LinkedIn
      summary: Get LinkedIn media by URN
      description: |-
        Get LinkedIn media by URN
        Requires API key scope: `linkedin:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LinkedinMediaLookupInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedinMediaGetResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    LinkedinMediaLookupInput:
      type: object
      properties:
        channelId:
          type: string
          description: LinkedIn channel ID
          example: ch_li123
        type:
          type: string
          enum:
            - image
            - video
            - document
        ids:
          type: array
          items:
            type: string
          minItems: 1
      required:
        - channelId
        - type
        - ids
    LinkedinMediaGetResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          anyOf:
            - $ref: '#/components/schemas/LinkedinBatchMediaResponse'
            - $ref: '#/components/schemas/LinkedinBatchVideoResponse'
            - type: 'null'
          description: The | LinkedinBatchMediaResponse | LinkedinBatchVideoResponse.
      required:
        - success
        - data
    LinkedinBatchMediaResponse:
      type: object
      properties:
        results:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/LinkedinMediaStatusResponse'
        statuses:
          type: object
          additionalProperties:
            type: number
        errors:
          type: object
          additionalProperties: {}
      required:
        - results
        - statuses
        - errors
    LinkedinBatchVideoResponse:
      type: object
      properties:
        results:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/LinkedinMediaVideoStatusResponse'
        statuses:
          type: object
          additionalProperties:
            type: number
        errors:
          type: object
          additionalProperties: {}
      required:
        - results
        - statuses
        - errors
    LinkedinMediaStatusResponse:
      type: object
      properties:
        status:
          type: string
        duration:
          type: number
        aspectRatioWidth:
          type: number
        aspectRatioHeight:
          type: number
      additionalProperties: {}
    LinkedinMediaVideoStatusResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - PROCESSING
            - PROCESSING_FAILED
            - AVAILABLE
            - WAITING_UPLOAD
        duration:
          type: number
        aspectRatioWidth:
          type: number
        aspectRatioHeight:
          type: number
      additionalProperties: {}
  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.