younifyd
Menu

List Documents

List documents

GET/api/{pluralApiId}

Use it in a workflow

  1. Add a step and choose the Strapi connector.
  2. Pick the List Documents action (under Documents).
  3. Fill in the fields below, then reference the result from later steps as {{listDocuments.response.data}}.

Request

Path parameters

pluralApiIdstringrequired

Plural API ID of the content type, for example articles. Single types are reached by the same operations using their singular API ID (via the Base URL path field), where the document ID is not needed.

Query parameters

sortstring

Field and direction to sort by, for example title:asc or createdAt:desc. Comma-separate for multiple.

filtersobject

Filter object using operators such as $eq, $ne, $contains, $gt, $lt, $in, for example {"title":{"$contains":"news"}}.

populatestring

Relations, media, components or dynamic zones to include. Use * for all first-level relations, or a comma-separated list of field names.

fieldsstring

Comma-separated list of fields to return.

pagination[page]integer

Page number, starting at 1 (page-based pagination).

Default 1

pagination[pageSize]integer

Number of entries per page (default 25).

Default 25

pagination[start]integer

Offset of the first entry (offset-based pagination).

pagination[limit]integer

Maximum number of entries to return (offset-based pagination).

statusstring

Draft or published version of the document. Defaults to published when Draft and Publish is enabled.

One ofdraftpublished

localestring

Locale code of the document version, for example en or fr.

Response

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

dataarray<object>
idinteger
documentIdstring
metaobject
paginationobject4 fields
json
{
  "data": [
    {
      "id": 0,
      "documentId": "string"
    }
  ],
  "meta": {
    "pagination": {
      "page": 0,
      "pageSize": 0,
      "pageCount": 0,
      "total": 0
    }
  }
}

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

Was this page helpful?