younifyd
Menu

Get Asset

Retrieve an Asset

GET/assets/{id}

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Get Asset action (under Assets).
  3. Fill in the fields below, then reference the result from later steps as {{getAsset.response.data}}.

Request

Path parameters

idstringrequired

The id of the file.

Query parameters

keystring

The key of the asset size configured in settings.

transformsstring

A JSON array of image transformations.

downloadboolean

Download the asset to your computer

Response

Returns 200 with a string. Read it in later steps with {{getAsset.response.data.<field>}}.

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?
Get Asset — Directus — Documentation