Create artifact
Create a published artifact. If the canonical URL already exists, returns the existing artifact unchanged.
Base URL
POST
Create a published artifact. If the canonical URL already exists, returns the existing artifact unchanged.
bearerAuthheader
AuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
application/json- body
Metadata must match the artifact kind: file requires uploadId, fileName and mimeType; session_replay requires inspectSessionId, replayId, replay and markers. url is always taken from the top-level field.
title*Artifacts.ArtifactTitleLength
1 <= length <= 200url*Artifacts.ArtifactUrlHTTP(S) URL without credentials or local/private host literals. Stored in WHATWG-canonical form.
Format
uriLength
length <= 2048description*Artifacts.ArtifactDescriptionLength
10 <= length <= 2000kind*Artifacts.ArtifactKindValue in
"link""doc""ticket""message""channel""dashboard""pdf""design""feature_flag""file""session_replay"metadata?Default
{}Artifact already existed for the provided URL
application/json- response
data*meta*curl -X POST 'https://your-org.inspect.com/api/public/v1/artifacts' \ -H 'Content-Type: application/json' \ -d '{ "title": "string", "url": "http://example.com", "description": "stringstri", "kind": "link"}'Example Response
{ "data": { "id": "string", "title": "string", "url": "http://example.com", "description": "string", "kind": "link", "metadata": {}, "created_at": "2019-08-24T14:15:22Z" }, "meta": { "created": true, "duplicate_url": true }}