Artifacts
Get an artifact
No auth requiredGET
/api/artifacts/{id}Parameters
Path
idstringrequiredThe artifact ID (`art_…`).Responses
200The artifact.
idstringUnique identifier for the artifact, prefixed with `art_`.Example: "art_xxxxxxxxxxxxxxxxxxxxxxxx"object"artifact"organization_idstring | nullOwning organization ID, or null if the resource is public (created without an API key).namestringsizeintegerSize of the stored content in bytes (UTF-8).contentstringThe stored content. Returned when fetching a single artifact; omitted from list responses — use `raw_url` to fetch the body.format"markdown" | "html"Content format. Determines the content type the raw endpoint serves.raw_urlstringPath serving the raw content with the format's content type (`text/html` for html, `text/markdown` for markdown).created_atinteger | nullWhen the artifact was created. Unix timestamp in seconds.updated_atinteger | nullWhen the artifact was last updated. Unix timestamp in seconds.401No valid API key was provided.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.403The caller is authenticated but lacks access to the resource.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.404The resource does not exist or is not visible to the caller.
errorobjecttype"invalid_request_error" | "authentication_error" | "authorization_error" | "not_found_error" | "rate_limit_error" | "api_error"codestringMachine-readable error code.messagestringHuman-readable error message.paramstring | nullThe offending parameter, when applicable.Example request
curl
curl https://agtls.dev/api/artifacts/{id}