> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.hrizn.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get elements

> List all raw site elements (staff, links, target geographies, etc.)

Returns all raw site elements configured for this site. Each element has a `type` and a `content` object whose shape varies by type.

This is a low-level endpoint — for more convenient access, use the typed endpoints like [Get staff](/api-reference/site/get-staff), [Get links](/api-reference/site/get-links), and [Get target geography](/api-reference/site/get-target-geography).

**Scope required:** `site:read`

<ResponseExample>
  ```json 200 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  {
    "data": {
      "elements": [
        {
          "id": "b3933cb2-5176-4255-907e-b508ea8927d9",
          "type": "staff",
          "content": {
            "role": "Master Technician",
            "imageKey": null,
            "lastName": "Armorer",
            "firstName": "Shawn",
            "yearHired": 2016
          },
          "created_at": "2026-02-27T19:47:53.347064+00:00",
          "updated_at": "2026-02-27T19:47:53.347064+00:00"
        },
        {
          "id": "41749ea2-38eb-4cc2-9779-93dcbeb4ad53",
          "type": "staff",
          "content": {
            "role": "Master Technician",
            "imageKey": null,
            "lastName": "Schlesinger",
            "firstName": "Eric",
            "yearHired": 2016
          },
          "created_at": "2026-02-23T18:46:08.234091+00:00",
          "updated_at": "2026-02-23T18:46:08.234091+00:00"
        }
      ]
    }
  }
  ```
</ResponseExample>

<Note>
  The `content` object shape varies by element `type`. Common types include `staff`, `link`, `target_geo`, `marketing`, and `why_buys`. Use the typed sub-endpoints for a more structured response.
</Note>


## OpenAPI

````yaml GET /site/elements
openapi: 3.1.0
info:
  title: Hrizn Public API
  version: 1.2.0
  description: >
    The Hrizn Public API allows partners to programmatically create content,
    manage inventory descriptions, and integrate with the Hrizn platform.


    All endpoints are prefixed with `/public` and require an API key passed via
    the `X-API-Key` header (except the health check).
  contact:
    email: support@hrizn.io
servers:
  - url: https://api.app.hrizn.io/v1/public
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: IdeaClouds
    description: Create and manage AI-powered keyword research
  - name: Content Intelligence
    description: AI-powered content gap analysis and recommendations
  - name: Content
    description: Generate content from IdeaClouds
  - name: Compliance
    description: Run OEM compliance checks on content
  - name: Content Tools
    description: Generate SEO metadata, schemas, and social snippets
  - name: Inventory
    description: Access vehicle data and AI descriptions
  - name: Site
    description: View dealership details and configuration
  - name: Webhooks
    description: Manage webhook subscriptions for real-time events
  - name: Reference
    description: Look up available types, scopes, and events
  - name: Social
    description: >-
      Zernio-backed social posting and reviews across all connected platforms
      (X, Facebook, Instagram, LinkedIn, Google Business Profile)
  - name: Health
    description: Health check (no authentication)
paths:
  /site/elements:
    get:
      tags:
        - Site
      summary: List site elements
      operationId: getSiteElements
      parameters:
        - name: type
          in: query
          schema:
            type: string
          description: Filter by element type
      responses:
        '200':
          description: Site elements
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ElementsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    ElementsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            elements:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  type:
                    type: string
                  content:
                    type: string
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
              example: 'keyword: Required'
            details:
              type: object
            request_id:
              type: string
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: API key lacks required scope
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your Hrizn API key (prefix hzk_)

````