younifyd
Menu

Get Collection Item

Retrieve an Item

GET/items/{collection}/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

Unique identifier for the object.

collectionstringrequired

Collection of which you want to retrieve the items from.

Query parameters

versionstring

Retrieve an item's state from a specific Content Version. The value corresponds to the "key" of the Content Version.

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 {{getCollectionItem.response.data.<field>}}.

dataobject
json
{
  "data": {}
}

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