# Retrieve a personalization condition template

Retrieves a condition template by ID including its parameters for creating a personalization variant on a page.

Endpoint: GET /api/v1/personalization/condition-templates/{template_id}
Version: v2.0
Security: HTTPBearer

## Security:

  - `HTTPBearer` (unknown)
    http bearer JWT

## Path parameters:

  - `template_id` (string, required)
    The unique identifier of the condition template. To get this ID, you can use the [List personalization condition templates](#/operation/personalization-get_condition_templates) endpoint to retrieve the list of available condition templates.

## 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):

  - `href` (any)
    The URL of the condition template.
    Example: https://www.example.com/condition-template

  - `ref` (string)
    A reference identifier for the condition template.
    Example: ConditionTemplate-12345

  - `name` (string)
    The name of the condition template.
    Example: Time on Site

  - `modifiedByRef` (any)
    A reference identifier for the user who last modified the condition template.
    Example: User-67890

  - `modifiedAt` (any)
    The timestamp when the condition template was last modified.
    Example: 2025-01-15T10:30:00Z

  - `revision` (any)
    The revision number of the condition template.
    Example: 3

  - `archived` (boolean)
    Whether the condition template is archived.
    Example: false

  - `friendlyId` (string)
    A user-friendly identifier for the condition template.
    Example: time_on_site

  - `type` (string)
    The type of the condition template.
    Example: time-based

  - `status` (string)
    The status of the condition template.
    Example: active

  - `icon` (any)
    The icon representing the condition template.
    Example: https://www.example.com/icons/time-on-site.png

  - `additionalFields` (any)
    A key-value map of additional fields for the condition template.

  - `templateElements` (any)
    A list of template elements for the condition template.

  - `defaultTemplate` (any)
    Whether the condition template is the default.
    Example: false

  - `tags` (any)
    A list of tags associated with the condition template.

  - `customTemplate` (any)
    Whether the condition template is custom.
    Example: true

  - `clientKey` (any)
    The client key for the condition template, or null if not applicable.
    Example: pers123jgltUp

  - `description` (any)
    A description of the condition template, or null if not provided.
    Example: This condition is based on the time a user spends on the site.

  - `revisionComment` (any)
    A comment about the revision of the condition template, or null if not provided.
    Example: Updated time thresholds for better accuracy.

  - `render` (any)
    Whether to render the condition template, or null if not applicable.
    Example: true

## 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.

