# Retrieve a content item by path

Retrieves the details of a content item by specifying its path in the content tree.

Endpoint: GET /api/v1/content
Version: v2.0
Security: HTTPBearer

## Security:

  - `HTTPBearer` (unknown)
    http bearer JWT

## Query parameters:

  - `item_path` (string, required)
    The path of the content item in the content tree.

  - `failOnNotFound` (any)
    Determines the behavior when the content item is not found.

  - `language` (any)
    The language version of the content item to be retrieved.

## Header parameters:

  - `x-sc-job-id` (any)
    A unique identifier for the job, used to trace, audit, and revert actions performed by an AI agent through the Agent API.

## Response 200:

  - `200` (unknown)
    Successful response

## Response 200 fields (application/json):

  - `itemId` (string)
    The unique identifier of the content item.
    Example: 3f2504e0-4f89-11d3-9a0c-0305e82c3301

  - `name` (string)
    The name of the content item.
    Example: New Article

  - `path` (string)
    The path of the content item in the content tree.
    Example: /sitecore/content/Skate Park/Home/New Article

  - `workflow` (any)
    The workflow information of the content item, or null if not in a workflow.

  - `workflow.workflowState` (any)
    The current workflow state of the content item.

  - `workflow.workflowState.final` (boolean)
    Whether this is a final workflow state.
    Example: false

  - `workflow.workflowState.displayName` (string)
    The display name of the workflow state.
    Example: Published

  - `version` (any)
    The version number of the content item, or null if not applicable.
    Example: 1

  - `template` (object)

  - `template.templateId` (string)
    The unique identifier of the template.
    Example: 3f2504e0-4f89-11d3-9a0c-0305e82c3301

  - `template.name` (string)
    The name of the template.
    Example: Article Page

  - `fields` (any)
    A key-value map of field names and their values for the content item.

  - `created_at` (any)
    The timestamp when the content item was created.
    Example: 2025-01-15T10:30:00Z

  - `updated_at` (any)
    The timestamp when the content item was updated.
    Example: 2025-01-15T10:30:00Z

  - `children` (any)

## Response 422:

  - `422` (unknown)
    Unprocessable entity

## Response 422 fields (application/json):

  - `detail` (array)

  - `detail.loc` (array)
    The location of the error in the request.

  - `detail.msg` (string)
    The error message.

  - `detail.type` (string)
    The type of error.

  - `detail.input` (any)
    The input that caused the error.

  - `detail.ctx` (object)
    The context in which the error occurred.

