Inspect

Create artifact

Publish a link artifact. If an artifact with the same canonical URL already exists, returns it unchanged with status 200 and `meta.created: false`. Returns 400 when the URL has credentials or a local/private host.

Base URL
POST
/api/v2/artifacts

Publish a link artifact. If an artifact with the same canonical URL already exists, returns it unchanged with status 200 and meta.created: false. Returns 400 when the URL has credentials or a local/private host.

Authorization

bearerAuth artifacts:write
headerAuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

Scope: artifacts:write

Request Body

application/json
  1. body
type*Artifacts.LinkArtifactType

Types of artifacts that point at an external resource. Only these types can be created or re-categorized through the API; file and session_replay artifacts are produced by sessions.

Value in"link""doc""ticket""message""channel""dashboard""pdf""design""feature_flag"
title*Artifacts.ArtifactTitle
Length1 <= length <= 200
url*Artifacts.ArtifactUrl

HTTP(S) URL without credentials or local/private host literals. Stored in WHATWG-canonical form.

Formaturi
Lengthlength <= 2048
description*Artifacts.ArtifactDescription
Length10 <= length <= 2000

Response Body

An artifact with the same canonical URL already existed and is returned unchanged

application/json
  1. response
data*||

An artifact, discriminated by type: file and session_replay have their own shapes; every other type is a LinkArtifact.

meta*
Example Request
curl -X POST 'https://app.inspect.com/api/v2/artifacts' \  -H 'Content-Type: application/json' \  -d '{  "type": "doc",  "title": "Cell rollout runbook",  "url": "https://www.notion.so/acme/Cell-rollout-runbook-1f2e3d4c5b6a",  "description": "Steps for approving canary and production cell deployments."}'
Example Response
{  "data": {    "id": "x7k2m9q4p1za",    "title": "Cell rollout runbook",    "description": "Steps for approving canary and production cell deployments.",    "created_at": "2026-10-28T15:42:11.204Z",    "type": "doc",    "url": "https://www.notion.so/acme/Cell-rollout-runbook-1f2e3d4c5b6a"  },  "meta": {    "created": true  }}