younifyd
Menu

Get Content By Id

Get a Content Item by id

GET/content/id/{id}

Use it in a workflow

  1. Add a step and choose the Amplience Delivery connector.
  2. Pick the Get Content By Id action (under item).
  3. Fill in the fields below, then reference the result from later steps as {{getContentById.response.data}}.

Request

Path parameters

idstringrequired

content item UUID

Query parameters

depthstring

One of: * string * `root` (default) retrieves the root content item only * `all` retrieves the full dependency tree * integer * The depth of the dependency tree to retrieve. A value between 0 and 22, with 0 being the root.

formatstring

One of: * `linked` (default) delivered with a lookup array for bandwidth optimisation. * `inlined` delivered with content-link replacement (will not conform to the content type).

localestring

* A comma separated list of ISO supported language and region codes

Headers

Hoststringrequired

The hostname containing the hub name

Response

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

contentobject
_metaobject2 fields
linkedContentarray<object>
_metaobject2 fields
json
{
  "content": {
    "_meta": {
      "deliveryId": "string",
      "schema": "string"
    }
  },
  "linkedContent": [
    {
      "_meta": {
        "deliveryId": "string",
        "schema": "string"
      }
    }
  ]
}

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

Was this page helpful?