---
title: "Locate Artifact"
method: GET
path: "/api/artifacts/by-slug/{slug}"
tags: ["artifacts"]
---

# Locate Artifact

`GET /api/artifacts/by-slug/{slug}`

## 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/by-slug/{slug}`
- Auth: none declared

Which workspace an artifact lives in, for a link opened from another one.

An artifact's link carries only its slug, and the viewer lists the CURRENT
workspace, so a link handed from one workspace to a member who is sitting
in another found nothing and said "failed to load". This answers where it
is, for a workspace the caller is a member of, so the viewer can say so and
offer the switch. Membership is the whole gate: an artifact in a workspace
the caller does not belong to is 404, the same answer as no artifact at all,
so the slug cannot be used to probe.

## Path parameters

- `slug` string, 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)
