---
title: "Generate Site Auth"
method: GET
path: "/api/v1/analytics/content/siteauth/generate/{siteId}"
tags: ["Content Analytics"]
---

# Generate Site Auth

`GET /api/v1/analytics/content/siteauth/generate/{siteId}`

## Request

- Base URL: `https://docs.anzworldline-solutions.com.au`
- URL: `https://docs.anzworldline-solutions.com.au/api/v1/analytics/content/siteauth/generate/{siteId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/docs/api/v1/analytics/content/siteauth/generate/:siteId/get.ts> (a function with typed inputs; its response is checked against the schema)

Generates and returns a Site Key that must be used by the client-side JS code to send custom Content Analytics Events

## Path parameters

- `siteId` string, required

## Response `200`

The Site key was generated and returned successfully

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Site ID in path is not found or incorrect path
- `405`: Method Not Allowed
- `500`: Internal Server Error

## Changes

- **2026-10-30** `4fd8e917d458`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/v1/analytics/content/siteauth/generate/:siteId/get.md)

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/revisions/4fd8e917d458?raw)
