younifyd
Menu

Get Document

Get a document

GET/api/{pluralApiId}/{documentId}

Use it in a workflow

  1. Add a step and choose the Strapi connector.
  2. Pick the Get Document action (under Documents).
  3. Fill in the fields below, then reference the result from later steps as {{getDocument.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.

documentIdstringrequired

Document ID (documentId, a string) of the document.

Query parameters

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.

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

dataobject

A document with its content type attributes flattened at the top level.

idinteger
documentIdstring
metaobject
json
{
  "data": {
    "id": 0,
    "documentId": "string"
  },
  "meta": {}
}

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

Was this page helpful?