Artifacts
Create an artifact
Creates a private artifact at version 1. session_id files it under a session you can edit, and project_id under a project you can read. Unknown body fields are rejected.
post/api/v1/artifacts
Request
- Base URL: https://your-deployment.example.com
- URL: https://your-deployment.example.com/api/v1/artifacts
- Auth: one of:
- HTTP bearer
- API key in header x-api-key
Request body
Example request
{
"type": "mermaid",
"title": "Signup flow",
"content": "graph TD; A[Sign up] --> B[Verify email]",
"tags": [
"onboarding"
]
}Response
The new artifact.
Example response
{
"id": "<artifactId>",
"type": "mermaid",
"title": "Signup flow",
"description": null,
"version": 1,
"version_tag": null,
"status": "draft",
"tags": [
"onboarding"
],
"session_id": "<sessionId>",
"project_id": null,
"visibility": "private",
"created_at": "2026-10-01T12:00:00.000Z",
"updated_at": "2026-10-02T09:30:00.000Z",
"content": "graph TD; A[Sign up] --> B[Verify email]"
}Changes
No recorded changes to this operation across all 1 revision of this API.