Yes! Workspace admins on Business and Enterprise plans can use Air's Public API to programmatically generate CDN links for assets.
Programmatically generated CDN links allow developers to quickly distribute compressed proxy images across websites, Shopify pages, and custom applications without manual exporting. These API-generated links provide the same flexibility as the in-product CDN workflow, letting you customize the output to fit your exact needs.
Getting Started
To access the Public API, a workspace admin must first generate a public API key. You can create and manage your keys by navigating to Workspace Settings and selecting API Access.
Configuring CDN Links
When generating a CDN link through the API, developers can configure several core parameters in the request to customize the response:
Size: Choose between preset export sizes (original or half) or specify a custom width and height to fit the asset to its final location.
Format: Request the image in JPG, PNG, or WEBP format depending on your performance and quality needs.
Note: Take care when using PNG format through a standard CDN link does not make the response equivalent to the original uploaded file. If your website depends on original-file behavior, such as transparent PNG rendering, use a delivery option that preserves the original file.
Eligible users can use original file CDNs in beta when they need delivery that preserves transparent image settings and can stay linked to the current version of an asset. For more context, see the CDN Links overview.
Ready to start building? Visit the API developer documentation for complete details on endpoints and the request/response flow.
For more context on these features, check out our guides on API Access and the CDN Links overview.
