Skip to content

Read an artifact's content

GET
/api/v1/artifacts/{type}/{name}
curl --request GET \
--url http://localhost:11044/api/v1/artifacts/example/example \
--header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'

Type is one of the ArtifactType names (case-insensitive).

type
required
string

The artifact’s type, one of the ArtifactType names, case-insensitive. An unrecognised type is refused with 400

name
required
string

The artifact’s name, including its extension, unique within its type

The artifact content

Media type*/*

An artifact’s content, as stored

object
content
required

The content, verbatim

string
name
required

The artifact’s name

string
type
required

The ArtifactType name, upper case, as resolved from the request’s case-insensitive type

string

Unknown type

Media type*/*

A refusal carrying only its reason

object
error
required

Why the request was refused, written to be shown

string

No such artifact