Actions26
- Item Actions
- User Actions
- File Actions
Item → Get (Raw JSON)
AI-generatedSummary
Fetch a single item from a Directus collection as raw JSON, optionally filtered by query parameters.
Inputs
- collection (required) — Name or ID of the collection to query.
- itemId (required) — ID of the item to retrieve.
- queryParameters — Raw JSON query parameters for the GET request, such as fields, filter, sort, limit.
Output shape
a single item record (raw JSON response)
Returns the raw JSON representation of the requested item; may include all fields unless filtered by query parameters.
Examples
Example 1: Retrieve a published post by ID with all fields
collection: "posts", itemId: $json('Prev')['id'], queryParameters: {"filter": {"status": {"_eq": "published"}}, "fields": ["*"]}
Example 2: Get a user with specific fields and a limit
collection: "user", itemId: $json('Prev')['id'], queryParameters: {"fields": ["id", "email"], "limit": 1}