Documentation

API reference · environment
Sections

environment

Used by the website. These routes don't accept an API key.

GET/environment/catalog

What a new project or an "Add to project" screen offers: the templates and the first-party skills

Website sign-in only

Each skill has its name and description; each template its name and a one-line description.

Response: EnvironmentCatalog
FieldTypeDescription
skills *CatalogSkill[]
description *string
name *stringThe skill's name, as the manifest's `skills` list spells it
templates *CatalogTemplate[]
description *string
name *"group-report-code" | "essay" | "empty"The manifest's `template` value
curl
curl 'https://api.papervantage.com/environment/catalog' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN"

POST/environment/preview

Validate a manifest and list the files it would produce, without creating anything

Website sign-in only

Returns the normalised manifest, each file's path, size, sha256 and its generated and protected flags, and the text of AGENTS.md. An invalid manifest is a 422 whose detail says what to fix (an unknown skill, a package that is not a plain name and version, a server name that is not a slug, a request over 64 KB).

Response: EnvironmentPreview
FieldTypeDescription
agents_md *stringThe text of the generated AGENTS.md
files *PreviewFile[]Every file the manifest produces, sorted by path
generated *booleanWritten from the manifest and never edited by hand
path *string
protected *booleanA hosted agent session's change here needs a person's approval
sha256 *string
size *integerBytes
manifest *objectThe validated, normalised manifest (papervantage.json's content)
curl
curl -X POST 'https://api.papervantage.com/environment/preview' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Next: Feed