---
title: "Create View Token"
method: POST
path: "/api/artifacts/{artifact_id}/view-token"
tags: ["artifacts"]
---

# Create View Token

`POST /api/artifacts/{artifact_id}/view-token`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/artifacts/{artifact_id}/view-token`
- Auth: none declared

Short-lived token letting the in-app viewer iframe load a private artifact.

Cross-workspace requests get 404 (not 403) — consistent with the serve
route's no-existence-oracle rule: artifact ids must not be probeable.

NOTE: artifacts live on the MAIN engine (async_session_maker) — the same
one the serve route and the artifacts.* tools use — deliberately not
get_workspace_session, which can route to a per-workspace engine that has
no artifacts tables.

## Path parameters

- `artifact_id` integer, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
