Get an asset
Retrieves an asset by ID, including a signed URL for downloading the file.
Use this endpoint when you have an asset ID and need the asset’s current metadata
or a new download URL. For example, invoice responses include attached assets in
attachmentAssets; pass an attachment’s id to this endpoint to retrieve its
metadata and a new download URL.
Headers
Your API credentials. Eg. Basic {credentials}.
Use this header to select an API version
2024-07-30 Path Parameters
Asset ID
Response
OK
Unique ID for this asset.
"e007e884-5100-4183-8355-4771865cb4dd"
The ID of the asset creator. A Sequence user id or API key id, as identified by createdByType.
"94703530-1293-479b-bd37-ccad42fd9c8b"
Whether createdBy identifies a SEQUENCE_USER or an API_CLIENT.
SEQUENCE_USER, API_CLIENT "SEQUENCE_USER"
Classification of this asset as IMAGE, DOCUMENT, or BINARY.
IMAGE, DOCUMENT, BINARY "IMAGE"
File format of this asset. For uploaded assets, this value is derived from the Content-Type of the file part.
JPEG, JPG, PNG, PDF, CSV, TXT, RTF, MD, XLS, XLSX, XLSM, DOC, DOCX, ZIP, ODT, ODS "PNG"
Original filename provided when the asset was uploaded.
"my-image.png"
Size of the stored file, in bytes. This may differ from the size of the uploaded file.
12345
Signed URL for downloading the file. The URL expires one week after it is generated. Call Get an asset when you need a new URL.
"https://assets.sequencehq.com/1986c663-9ee9-4811-bfbf-57d2ad666096/images/e007e884-5100-4183-8355-4771865cb4dd.png?token=grhc3VtaoNLAifDBFXWYLHcNnK3XJHzFjZ4iMf78Ozg&expires=604800"
The time at which this asset was created. Formatted as an ISO 8601 timestamp.
"2023-11-27T12:00:00Z"