Get an artifact
GET
/v1/artifacts/{id}
const url = 'https://shareout.site/v1/artifacts/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://shareout.site/v1/artifacts/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Artifact ID (e.g. art_abc123).
Responses
Section titled “ Responses ”The artifact
Media type application/json
object
id
string
name
string
slug
string
visibility
string
url
string format: uri
thumbnail_url
string format: uri
is_favorite
boolean
created_at
integer
Example
{ "visibility": "public"}Resource not found
Media type application/json
object
success
required
boolean
error
required
Human-readable message.
string
code
required
Machine-readable error code.
string
Example
{ "success": false}