/artifacts
Create an artifact from a Markdown or HTML document and return its viewer URL
In: header
Request Body
application/json
Title shown in the viewer and the list. When omitted, the first heading of the Markdown or the of the HTML is used
length <= 500A complete, self-contained HTML document. Give either html or markdown, not both
1 <= length <= 52428800A Markdown document (GitHub flavored). Stored as written and rendered to HTML when served. Give either html or markdown, not both
1 <= length <= 10485760Stylesheet linked into the page when it is served. 'gatana' applies the Gatana fonts, colors and typography to plain HTML; an organization theme (by id or by name) is the Gatana theme in the organization's colors, fonts and logo; 'none' serves the document as published. A new artifact without one gets the organization default
1 <= length <= 100Response Body
application/json
curl -X POST "https://YOUR_ORG_ID.s.gatana.ai/api/v1/artifacts" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"title": "string",
"createdByUserId": "string",
"createdByUserName": "string",
"createdByUserEmail": "string",
"visibility": "private",
"theme": "string",
"currentVersion": 0,
"sharedWithUserIds": [
"string"
],
"sharedWithTeamIds": [
"string"
],
"createdAt": "string",
"updatedAt": "string",
"url": "string"
}