---
title: "List a property's media"
url: "https://real-estate-agency.apim.eu/apis/property-management/versions/0192f0a1-654d-4abd-aa88-6716d49df69f/operations/listMedia"
---

> Full API specification: https://real-estate-agency.apim.eu/apis/property-management/versions/0192f0a1-654d-4abd-aa88-6716d49df69f.md

# List a property's media

`GET` `/properties/{propertyId}/media`

Operation ID: `listMedia`

## Path parameters

- `propertyId` (string, required)

## Responses

- `200` - Media list

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Property Management
  version: 1.0.0
servers:
  - url: https://api.realestateagency.example/v1
    description: Production
  - url: https://sandbox.api.realestateagency.example/v1
    description: Sandbox
paths:
  /properties/{propertyId}/media:
    parameters:
      - name: propertyId
        in: path
        required: true
        schema:
          type: string
          example: prop_8f2c1a
    get:
      tags:
        - Media
      summary: List a property's media
      operationId: listMedia
      responses:
        "200":
          description: Media list
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: "#/components/schemas/Media"
security:
  - apiKey: []
components:
  schemas:
    Media:
      type: object
      properties:
        id:
          type: string
          example: med_31c9
        category:
          $ref: "#/components/schemas/MediaCategory"
        url:
          type: string
          format: uri
          example: https://cdn.realestateagency.example/properties/prop_8f2c1a/med_31c9.jpg
        order:
          type: integer
          example: 1
        caption:
          type: string
          example: Living room overlooking the courtyard
        size_bytes:
          type: integer
          example: 2418112
    MediaCategory:
      type: string
      enum:
        - cover_photo
        - interior
        - exterior
        - floor_plan
        - energy_certificate
        - document
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: |
        Every call carries an API key in the `apikey` header. You generate the
        key in the Real Estate portal under "My Apps"; it's shown exactly once.

        Each key has the scopes it's allowed to use attached to it. If one is
        missing, the API responds with `403` and `code: "scope_missing"`; the
        missing scope is in `details[].field`.
```
