API version: 0.3.0

---

# Explicit element ids

The simplest way to use the element hydration step: providing a literal list of element ids directly in `query.elementIds`.
This is useful whenever the client already knows exactly which elements it wants, e.g. from a previous, unrelated
request, and just needs the full element objects.

```bash
curl -X POST \
  -H 'Authorization: Bearer secret-token:PIPeJGUt7c00ENn8a5uDlc' \
  -H 'Content-Type: application/json' \
  -d '{
        "debug": true,
        "steps": [
          {
            "type": "element-hydration",
            "query": {
              "elementIds": [
                "02IiNr0GOoKiPMLPDlPbKrlR4vnBQsvSBSkU5",
                "02IiNr0GOoKiPMLVYC87gam9dbmx8E6khf0g8",
                "02IiNr0GOoKiPMMBnI2aIF8Qd4GH33FIAozo7"
              ]
            }
          }
        ]
      }' \
  https://api.example.com/search
```

##### Response Body

```json
{
  "type": "_SearchResultResponse",
  "results": [
    {
      "type": "Plant",
      "id": "02IiNr0GOoKiPMLPDlPbKrlR4vnBQsvSBSkU5",
      "data": {
        "images": [
          {
            "description": "",
            "imageLinkFull": "https://upload.wikimedia.org/wikipedia/commons/f/fe/Flame_lily.png",
            "imageLinkThumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Flame_lily.png/500px-Flame_lily.png",
            "link": "https://en.wikipedia.org/wiki/File:Flame_lily.png"
          },
          {
            "description": "Gloriosa superba at Mabvuku, Harare, Zimbabwe",
            "imageLinkFull": "https://upload.wikimedia.org/wikipedia/commons/b/bc/Gloriosa_superba_1.jpg",
            "imageLinkThumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Gloriosa_superba_1.jpg/960px-Gloriosa_supe...",
            "link": "https://en.wikipedia.org/wiki/File:Gloriosa_superba_1.jpg"
          }
        ],
        "hasFile": true,
        "name": "Flame Lily",
        "scientificName": "G. superba",
        "scenario": "general.botanicExample",
        "link": "https://en.wikipedia.org/wiki/Gloriosa_superba",
        "description": "Gloriosa superba is a species of flowering plant in the family Colchicaceae. Common names include fl...",
        "createdAt": "2026-12-03T12:05:26+00:00",
        "updatedAt": "2026-12-03T12:05:26+00:00"
      },
      "file": {
        "contentLength": 90681,
        "extension": "jpg",
        "mimeType": "image/jpeg",
        "hash": {
          "sha256": "72e3e3770db795b2f04f0b5bb0be43e74df70de4faa0bf83a706bbde29e4ea0b"
        }
      }
    },
    {
      "type": "Plant",
      "id": "02IiNr0GOoKiPMLVYC87gam9dbmx8E6khf0g8",
      "data": {
        "images": [
          {
            "description": "Flower of Nelumbo nucifera, bean of India.",
            "imageLinkFull": "https://upload.wikimedia.org/wikipedia/commons/e/ed/Sacred_lotus_Nelumbo_nucifera.jpg",
            "imageLinkThumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/Sacred_lotus_Nelumbo_nucifera.jpg/960px-Sa...",
            "link": "https://en.wikipedia.org/wiki/File:Sacred_lotus_Nelumbo_nucifera.jpg"
          },
          {
            "description": "Nelumbo nucifera",
            "imageLinkFull": "https://upload.wikimedia.org/wikipedia/commons/3/34/Nelumbo_nucifera1romainguy.jpg",
            "imageLinkThumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Nelumbo_nucifera1romainguy.jpg/500px-Nelum...",
            "link": "https://en.wikipedia.org/wiki/File:Nelumbo_nucifera1romainguy.jpg"
          }
        ],
        "hasFile": true,
        "name": "Lotus",
        "scientificName": "N. nucifera",
        "scenario": "general.botanicExample",
        "link": "https://en.wikipedia.org/wiki/Nelumbo_nucifera",
        "description": "Nelumbo nucifera, also known as Padma (Sanskrit: \\u092a\\u0926\\u094d\\u092e, romanized: Padm\\u0101, li...",
        "createdAt": "2026-12-03T12:05:26+00:00",
        "updatedAt": "2026-12-03T12:05:26+00:00"
      },
      "file": {
        "contentLength": 63295,
        "extension": "jpg",
        "mimeType": "image/jpeg",
        "hash": {
          "sha256": "a46657ef9ece1a7e0939ee5edcc4358f23a3b8b7871c6eba4ad2ce0f30cf4e9f"
        }
      }
    },
    {
      "type": "Plant",
      "id": "02IiNr0GOoKiPMMBnI2aIF8Qd4GH33FIAozo7",
      "data": {
        "images": [
          {
            "description": "in Seoul Forest, South Korea",
            "imageLinkFull": "https://upload.wikimedia.org/wikipedia/commons/7/7b/Tulips_in_Seoul_Forest%2C_South_Korea1.jpg",
            "imageLinkThumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/Tulips_in_Seoul_Forest%2C_South_Korea1.jpg...",
            "link": "https://en.wikipedia.org/wiki/File:Tulips_in_Seoul_Forest,_South_Korea1.jpg"
          },
          {
            "description": "A Yonina cultivar (Division 6) tulip at the Tulip Fest in Albany, New York, United States.",
            "imageLinkFull": "https://upload.wikimedia.org/wikipedia/commons/7/7b/Yonina_Tulip.jpg",
            "imageLinkThumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/Yonina_Tulip.jpg/960px-Yonina_Tulip.jpg",
            "link": "https://en.wikipedia.org/wiki/File:Yonina_Tulip.jpg"
          },
          {
            "description": "Tulipa orphanidea, garden plant",
            "imageLinkFull": "https://upload.wikimedia.org/wikipedia/commons/c/c4/Tulipa_orphanidea_060506.jpg",
            "imageLinkThumbnail": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Tulipa_orphanidea_060506.jpg/500px-Tulipa_...",
            "link": "https://en.wikipedia.org/wiki/File:Tulipa_orphanidea_060506.jpg"
          }
        ],
        "hasFile": true,
        "name": "Tulip",
        "scientificName": "Tulipa",
        "scenario": "general.botanicExample",
        "link": "https://en.wikipedia.org/wiki/Tulip",
        "description": "Tulips are spring-blooming perennial herbaceous bulbiferous geophytes in the Tulipa genus. Their flo...",
        "createdAt": "2026-12-03T12:05:26+00:00",
        "updatedAt": "2026-12-03T12:05:26+00:00"
      },
      "file": {
        "contentLength": 105488,
        "extension": "jpg",
        "mimeType": "image/jpeg",
        "hash": {
          "sha256": "c4c242897c43a74e9e4a8b5bf89e6b2cb1cbd99f8d621f33eea175cbf6dfab97"
        }
      }
    }
  ],
  "debug": [
    {
      "input": {
        "type": "element-hydration",
        "query": {
          "elementIds": [
            "02IiNr0GOoKiPMLPDlPbKrlR4vnBQsvSBSkU5",
            "02IiNr0GOoKiPMLVYC87gam9dbmx8E6khf0g8",
            "02IiNr0GOoKiPMMBnI2aIF8Qd4GH33FIAozo7"
          ]
        },
        "parameters": {
          "stepResults": []
        }
      },
      "step-handler": "element-hydration (App\\EventSystem\\SearchStep\\EventListener\\ElementHydrationSearchStepEventListener)",
      "start": 1796299633.878396,
      "accessibleElementIds": [
        "02IiNr0GOoKiPMLPDlPbKrlR4vnBQsvSBSkU5",
        "02IiNr0GOoKiPMLVYC87gam9dbmx8E6khf0g8",
        "02IiNr0GOoKiPMMBnI2aIF8Qd4GH33FIAozo7"
      ],
      "end": 1796299633.896722,
      "duration": 0.018326
    }
  ]
}
```

##### Response Headers

```http
Access-Control-Allow-Headers: Authorization, Content-Type, Prefer
Access-Control-Allow-Methods: OPTIONS, POST
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: Preference-Applied
Allow: OPTIONS, POST
Cache-Control: no-cache, private
Content-Type: application/json; charset=utf-8
Date: Thu, 03 Dec 2026 12:24:50 GMT
Transfer-Encoding: chunked
Vary: Prefer, Accept-Encoding
X-Powered-By: Ember Nexus API
```

As this is the only step in the request, there are no prior `stepResults` to build on - the three ids are hydrated
directly, in the order they were requested.

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)

Previous: [Element hydration](/reference/search/element-hydration.md)

Next: [Parameterized element ids](/reference/search/element-hydration/parameterized-element-ids.md)
