This guide covers the optional organisation service. Configuration, console and API paths refer to your Lolly Work instance. The packaged console keeps its release-matched copy of this guide.
Connect an Image Relay DAM and its files appear in the Lolly Work catalog for the groups you choose, with an expiry date if you keep one in a custom field. Image Relay stays the source: Lolly Work reads through an app you register and never writes back.
Canto acquired Image Relay in September 2024. If your tenant has moved to Canto, use the Canto source. If you are not sure which applies, read Off-boarding first.
Onboarding
- Scope. Confirm that the tenant still uses Image Relay's API. Select a curated folder and Lolly Work groups.
- Connection. Register your app, obtain the sealed OAuth credential described below and follow the four-step connection. Map your expiry field if you use one.
- Tenant check. Run the Image Relay tenant check, compare required originals and test group access and expiry in a real Lolly task before expanding the source.
The driver is not yet confirmed against a live tenant. The endpoints and field names come from Image Relay's documentation. Check a source on your own tenant lists what to look at. Contributors changing the driver follow its maintainer runbook in the Lolly Work repository.
What you need from Image Relay
- An OAuth2 app you register in Image Relay, with read access to the files and folders you want to federate. The client id, secret and the refresh token your tenant issues against them are yours.
- Optionally, a folder id to federate one folder, with
recursivefor its subfolders. - If you keep expiry dates, the custom-metadata field that holds them. Image Relay has no native availability field, so you map one.
Credential shape
One sealed OAuth credential, pasted rather than captured:
{ "clientId": "…", "clientSecret": "…", "refreshToken": "…" }lw providers credential acme-imagerelay # prompts for the JSON; never argv, never shell historyGet the refresh token by running Image Relay's own documented OAuth2 authorization-code flow once by hand against your app. lw providers auth refuses this kind; see OAuth sources.
instance.json / lw providers add
{
"id": "acme-imagerelay",
"kind": "imagerelay",
"label": "Acme Image Relay",
"options": { "folderId": "1234", "recursive": true },
"mapping": { "availabilityFields": { "until": "Expiry Date" } },
"exposure": { "groups": ["marketing"] }
}options.folderIdandoptions.recursivescope federation.options.baseUrlandoptions.tokenUrloverride the defaults (api.imagerelay.com/api/v2and that host's/oauth/token).mapping.availabilityFieldsimports expiry: name the custom field that holds the date (here"Expiry Date", which becomes an availability windowavailableUntil). Without it, the manualcatalog.expirecontrol is the only expiry.
Leave exposure.requireApproved off. With it on, nothing federates.
Verify
lw providers preview --kind imagerelay --options '{"folderId":"1234"}' # dry run, nothing stored
lw providers health acme-imagerelayWhat each error means
| Error | Meaning |
|---|---|
oauth token refresh failed (401) | The client id, secret or refresh token is wrong, or the grant was revoked. Capture the credential again. |
oauth token refresh failed (400) | The token endpoint refuses the request format. A new credential cannot fix this; report it with the tenant check. |
imagerelay api 401 | The token exchange worked; the tenant refused the access token. |
imagerelay url outside allowed hosts | A baseUrl or tokenUrl override, or a download link, points outside imagerelay.com. |
Notes / limits
- Signed, short-lived download links, fetched on each request and pinned to
imagerelay.com. The driver sends theUser-AgentImage Relay requires and keeps to 5 requests a second. - Deleted files leave the catalog. A file Image Relay reports as deleted is dropped.
Off-boarding
Choose the exit driver by the API serving your tenant: imagerelay for the legacy tenant and canto after a move to Canto. When both remain active, inventory both sets and reconcile overlap; materialization is idempotent within a provider, not a promise to deduplicate two providers.
Use the self-hosting strategy with S3 storage, then follow Leave a DAM for materialize, drift and cutover. Preserve the mapped expiry dates and separately export required approval, rights and history records. Confirm field names and original fidelity on your own tenant before fixing a cutover date.
Compare offboarding destinations, starting with open-source services you can run. Each route remains subject to this source's limits.