Comments

Gets 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.

type'attachment' required
idstring required
mimeTypestring required
namestring required
sizeinteger required
urlstring required

Presigned download URL for the attachment

expiresAtstring date-time required

ISO 8601 timestamp when the presigned URL expires

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