# List media (/ms/growsocmed/docs/api-reference/media/list-media)

List the workspace's media library, newest first

GET /media

```json
{
  "tags": [
    "Media"
  ],
  "summary": "List media",
  "parameters": [
    {
      "schema": {
        "type": "string",
        "enum": [
          "image",
          "video",
          "document"
        ]
      },
      "required": false,
      "name": "type",
      "in": "query"
    },
    {
      "schema": {
        "type": "string",
        "format": "date-time",
        "description": "Cursor: created_at of the last file of the previous page"
      },
      "required": false,
      "description": "Cursor: created_at of the last file of the previous page",
      "name": "before",
      "in": "query"
    },
    {
      "schema": {
        "type": "integer",
        "minimum": 1,
        "maximum": 100,
        "default": 100
      },
      "required": false,
      "name": "limit",
      "in": "query"
    }
  ],
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "image",
                        "video",
                        "document"
                      ]
                    },
                    "page_count": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "ready",
                        "failed",
                        "expired"
                      ]
                    },
                    "original_name": {
                      "type": "string"
                    },
                    "mime_type": {
                      "type": "string"
                    },
                    "size_bytes": {
                      "type": "number"
                    },
                    "width": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "height": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "duration_ms": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "frame_rate": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "fail_reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "alt_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "keep": {
                      "type": "boolean",
                      "description": "Kept files are never deleted automatically"
                    },
                    "used_in_posts": {
                      "type": "number"
                    },
                    "expires_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "When the file is deleted automatically; null = never"
                    },
                    "url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "created_at": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "status",
                    "original_name",
                    "mime_type",
                    "size_bytes",
                    "width",
                    "height",
                    "duration_ms",
                    "frame_rate",
                    "fail_reason",
                    "alt_text",
                    "keep",
                    "url",
                    "created_at"
                  ]
                }
              },
              "next_cursor": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "data",
              "next_cursor"
            ]
          }
        }
      }
    }
  },
  "operationId": "list-media",
  "description": "List the workspace's media library, newest first"
}
```