---
title: "Get public links"
method: POST
path: "/getlinks_45W_v1"
---

# Get public links

`POST /getlinks_45W_v1`

Generate an embed or download link to multiple assets

## Request body

- object
  - `RecordID` string — The record ID of an asset.<br>This parameter <b>or</b> the Identifier parameter is required.
  - `Identifier` string — The <a href="https://developer.orangelogic.com/reference/assets">Unique Identifier</a> of an asset.<br>This parameter <b>or</b> the RecordID parameter is required.
  - `Format` string — The code of the <a href="https://developer.orangelogic.com/reference/assets#formats">asset format</a> that you want to generate a link for (TRX, TR1, etc.).
  - `LogViews` boolean — Whether OrangeDAM logs each view or download. Administrators can view this information in the Full logs of views and downloads. Orange Logic users with a Link account can go to the <a href="https://link.orangelogic.com/CMS4/Permalinks/2P7YOHA7V1MI" target="_blank">Full logs of views and downloads</a> article to learn more.
  - `CreateDownloadLink` boolean — <code>True</code>: The link downloads the assets.</br><code>False</code>: The link will be an embed link.
  - `ExpirationDate` string — An expiration date in the <a href="https://www.iso.org/iso-8601-date-and-time-format.html" target="_blank">ISO 8601</a> format: "YYYY-MM-DDTHH:MM:SS.SSSZ" The [<i>sss</i>] value is optional. It represents the <a href="https://en.wikipedia.org/wiki/UTC_offset" target="_blank">UTC offset</a>. Example: "2024-10-31T13:44:39.735Z"
  - `MaxWidth` integer — The maximum width of the assets.<br>If you are generating transformations, the transformation crop or resize takes precedence over <code>MaxWidth</code>.
  - `MaxHeight` integer — The maximum height of the assets.<br>If you are generating transformations, the transformation crop or resize takes precedence over <code>MaxHeight</code>.
  - `FileExtension` string — The file extension of the assets (.jpeg, .png, etc.).
  - `ImageResizingMethod` 'Fit' | 'Stretch' | 'NorthwestCrop' | 'NorthCrop' | 'NortheastCrop' | 'WestCrop' | 'CenterCrop' | 'EastCrop' | 'SouthwestCrop' | 'SouthCrop' | 'SoutheastCrop' | 'OpticalCrop' | 'AICrop' — Resizes the image's aspect ratio based on <code>Maxwidth</code> and <code>MaxHeight</code>.
  - `Transformations` string[] — Enter a string for each transformation you want to apply to the asset. Transformations are applied in the order in which they appear in the string and take precedence over <code>Maxwidth</code> and <code>MaxHeight</code>.<br>This parameter is available beginning in <a href="https://link.orangelogic.com/CMS4/Permalinks/2P7YOHY7FJDO" target="_blank">Orange Logic Kobe</a>.<br>See the <a href="https://developer.orangelogic.com/reference/transformation-example">transformation example</a> for more information.
  - `Title` string — Title of the asset link
  - `TrackingParameters` object — { "name": "string", "value": "string" }
    - `Name` string — The UTM name, such as utm_source or utm_campaign.
    - `Value` string — Enter the tracking parameter value, such as "Instagram."
  - `CustomAccessKey` string — Enter a <a href="https://developer.orangelogic.com/reference/assets">custom access key</a> to use for the generated link. If this is not specified, the link will have a random access key.
  - `IsVideo` boolean — Set to true if the asset is a video.

## Response `200`

200

- object
  - `assetLinks` object[]
    - `recordID` string
    - `identifier` string
    - `format` string
    - `link` string
    - `maxWidth` integer
    - `maxHeight` integer
    - `expirationDate` string
    - `fileExtension` string
    - `imageResizingMethod` unknown
  - `exportedFileInfo` object
    - `fileName` unknown
    - `fileStream` unknown

---

[API](https://skmtc.net/orangelogic/apis/security.md) · [All operations](https://skmtc.net/orangelogic/apis/security/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orangelogic/security/versions/c8e945426c5e/schema)
