Validate an agent-authored Grounded result without storing it
POST
/v1/grounded-artifacts/validate
const url = 'https://www.cemented.ai/v1/grounded-artifacts/validate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"artifact":{"kind":"grounded_research_draft","title":"example","question":"example","queries":[],"sources":[{"id":"example","title":"example","content":"example","publishedDate":"example","author":"example","quality":1,"explanation":"example","type":"web","url":"https://example.com","contentSha256":"example"}],"evidence":[{"id":"example","sourceId":"example","quote":"example"}],"constants":[],"computed":[],"output":{"type":"markdown","value":"example"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://www.cemented.ai/v1/grounded-artifacts/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "artifact": { "kind": "grounded_research_draft", "title": "example", "question": "example", "queries": [], "sources": [ { "id": "example", "title": "example", "content": "example", "publishedDate": "example", "author": "example", "quality": 1, "explanation": "example", "type": "web", "url": "https://example.com", "contentSha256": "example" } ], "evidence": [ { "id": "example", "sourceId": "example", "quote": "example" } ], "constants": [], "computed": [], "output": { "type": "markdown", "value": "example" } } }'Runs the same Grounded artifact compiler used by the upload endpoint for Markdown reports and JSON Schema structured results. Returns validation without creating a request, publishing a result, or persisting artifact content. Zero-data-retention API callers are supported.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
artifact
required
object
kind
required
string
title
required
string
question
required
string
queries
Array<object>
object
query
required
string
desiredSnippets
required
string
sourceIds
Array<string>
sources
required
Array
One of:
object
id
required
string
title
required
string
content
required
string
publishedDate
string | null
author
string | null
quality
integer | null
explanation
string | null
type
required
string
url
required
string format: uri
contentSha256
string
object
id
required
string
title
required
string
content
required
string
publishedDate
string | null
author
string | null
quality
integer | null
explanation
string | null
type
required
string
filename
required
string
contentType
string
evidence
required
Array<object>
object
id
required
string
sourceId
required
string
quote
required
string
constants
Array<object>
object
id
required
string
label
required
string
value
required
string
unit
string
note
string
computed
Array<object>
object
id
required
string
label
required
string
code
required
string
formula
string
inputs
required
Array<object>
object
name
required
string
value
required
string
snippetId
string
output
required
object
value
required
string
unit
string
numeric
boolean
output
required
One of:
object
type
required
string
value
required
string
object
type
required
string
name
required
string
description
string
schema
required
object
key
additional properties
strict
boolean | null
value
required
numericGrounding
Array<object>
object
path
required
string
computedId
required
string
Responses
Section titled “ Responses ”Artifact satisfies the Grounded compiler contract
Media type application/json
object
object
required
string
valid
required
boolean
output
required
warnings
Array<object>
object
code
required
string
path
required
string
message
required
string
suggestion
required
string
verified_sources
integer
Example
{ "object": "grounded_artifact_validation", "valid": true, "output": { "type": "markdown" }, "warnings": [ { "code": "retrieval_unverified" } ]}Malformed validation envelope
Media type application/json
object
error
required
object
message
required
string
type
required
string
code
required
string
Example generated
{ "error": { "message": "example", "type": "example", "code": "example" }}Unauthorized
Media type application/json
object
error
required
object
message
required
string
type
required
string
code
required
string
Example generated
{ "error": { "message": "example", "type": "example", "code": "example" }}The artifact is well-formed JSON but fails one or more Grounded invariants
Media type application/json
object
error
required
object
message
required
string
type
required
string
code
required
string
issues
required
Array<object>
object
code
required
string
path
required
string
message
required
string
suggestion
required
string
Example
{ "error": { "type": "invalid_request_error", "code": "artifact_validation_failed", "issues": [ { "code": "invalid_draft" } ] }}