Comments
Get attachment
Changed onGets an attachment's metadata and a presigned download URL. The URL expires after 1 hour.
get/rooms/{roomId}/attachments/{attachmentId}
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/rooms/{roomId}/attachments/{attachmentId}
- Auth: none declared
Path parameters
roomIdstring required
ID of the room
Example:my-room-id
attachmentIdstring required
ID of the attachment
Example:at_abc123
Response
Success. Returns the attachment metadata with a presigned download URL.
Example response
{
"type": "attachment",
"id": "at_abc123",
"mimeType": "image/png",
"name": "screenshot.png",
"size": 12345,
"url": "https://example.com/at_abc123?X-Amz-Expires=3600&X-Amz-Signature=...",
"expiresAt": "2026-03-16T14:00:00.000Z"
}Changes
- info
endpoint added
- info