Get media file

Get details of a specific media file by its ID, including the public URL, content type, file size, upload status (pending or active), and expiration date. The media ID is the encoded string identifier returned during the upload flow.

GET/v1/media/{id}

Path Parameters

idstring

Response Body

fetch("https://api.outstand.so/v1/media/string", {  method: "GET"})
{
  "success": true,
  "data": {
    "id": "9dyJS",
    "filename": "product-image.jpg",
    "url": "https://media.outstand.so/org_abc123/550e8400-e29b-41d4-a716-446655440000/product-image.jpg",
    "content_type": "image/jpeg",
    "size": 1024000,
    "status": "active",
    "created_at": "2025-01-15T10:30:00Z",
    "expires_at": "2025-03-16T10:30:00Z"
  }
}
{
  "success": false,
  "error": "Invalid request",
  "details": {
    "filename": {
      "_errors": [
        "Required"
      ]
    }
  }
}
{
  "success": false,
  "error": "Invalid request",
  "details": {
    "filename": {
      "_errors": [
        "Required"
      ]
    }
  }
}
{
  "success": false,
  "error": "Internal server error",
  "message": "Failed to generate upload URL"
}