Skip to main content

Overview

The Artifacts API turns data you already have — aggregates, metrics, sample records — into a structured, narrative report: an executive summary, categorized insights, and follow-up considerations, generated by an LLM against a fixed output schema so it’s safe to render directly in your product.
Unlike the Chat API, you don’t send free-form prompts here. You send data (aggregates + samples) and a template, and the model returns a validated JSON report shaped to that template.

Base URL

https://suite.sundaypyjamas.com/api/v1/artifacts

Authentication

Authorization: Bearer spj_ai_your_api_key_here

Resources

Generate Artifact

POST aggregated data and get back a structured insight report.