Read an artifact's content
GET
/api/v1/artifacts/{type}/{name}
const url = 'http://localhost:11044/api/v1/artifacts/example/example';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”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
Responses
Section titled “Responses”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

