Retrieve a single media asset
cURL
curl --request GET \ --url https://api.example.com/media/{id}
GET /media/{id}
id
curl -X GET "https://api.skayle.ai/v1/media/media_abc123" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "data": { "id": "media_abc123", "type": "media", "attributes": { "filename": "hero-image.jpg", "url": "https://cdn.skayle.io/media/hero-image.jpg", "mimeType": "image/jpeg", "size": 245678, "width": 1920, "height": 1080, "alt": "Hero image for blog post", "caption": "Photo by John Doe", "variants": { "thumbnail": "https://cdn.skayle.io/media/hero-image-thumb.jpg", "medium": "https://cdn.skayle.io/media/hero-image-medium.jpg", "large": "https://cdn.skayle.io/media/hero-image-large.jpg" }, "metadata": { "camera": "Canon EOS R5", "focalLength": "50mm", "aperture": "f/1.8" }, "createdAt": "2024-01-15T10:00:00Z", "updatedAt": "2024-01-15T10:00:00Z" } } }
{ "errors": [ { "status": "404", "title": "Not Found", "detail": "Media asset not found" } ] }