---
title: "Get the site tag"
method: GET
path: "/v1/optimize/snippet"
tags: ["Optimize"]
---

# Get the site tag

`GET /v1/optimize/snippet`

## Request

- Base URL: `https://api.revdesk.com`
- URL: `https://api.revdesk.com/v1/optimize/snippet`
- Auth: HTTP bearer

Returns the script tag for the workspace's website. Install it in the head of every page; the property is verified the first time the tag loads from the registered domain.

## Response `200`

Success

- object
  - `data` object, required
    - `property_id` string, required
    - `public_key` string, required
    - `script_tag` string, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict (incl. idempotency conflicts)
- `429`: Rate limited

---

[API](https://skmtc.dev/revdesk/apis/revdesk-v1-api.md) · [All operations](https://skmtc.dev/revdesk/apis/revdesk-v1-api/llms.txt) · [OpenAPI document](https://skmtc.dev/revdesk/apis/revdesk-v1-api/revisions/fcbd43530a48?raw)
