younifyd
Menu

Get File

Retrieve a File

GET/files/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

Unique identifier for the object.

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

Response

Returns 200 with an object. Read it in later steps with {{getFile.response.data.<field>}}.

dataobject
typeany
descriptionany
json
{
  "data": {
    "type": null,
    "description": null
  }
}

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

Was this page helpful?
Get File — Directus — Documentation