younifyd
Menu

Get Content By Key

Get a Content Item by delivery key

GET/content/key/*

Use it in a workflow

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

Request

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 {{getContentByKey.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.

Get Content By Key — Amplience Delivery — Documentation