younifyd
Menu

Get Singleton

Retrieve a Singleton Item

GET/items/{collection}‏

Use it in a workflow

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

Request

Path parameters

collectionstringrequired

Collection of which you want to retrieve the items from.

Query parameters

fieldsarray<string>

Control what fields are being returned in the object.

metastring

What metadata to return in the response.

versionstring

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

versionRawboolean

Retrieve the raw delta of a Content Version item instead of the full merged item.

Default false

deepany

Deep allows you to set any of the other query parameters on a nested relational dataset. Use underscore-prefixed parameter names.

aliasany

Alias allows you to rename fields in the response payload. The key is the new name, the value is the original field name.

Response

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

dataobject
json
{
  "data": {}
}

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

Get Singleton — Directus — Documentation