For the complete documentation index, see llms.txt. This page is also available as Markdown.

GET /v2/projects/{project_id}/io-schema

Get Project Io Schema

get

Describe input keys and output nodes exposed by the selected project version.

How to use

Call before constructing run inputs or evaluation contracts. Match the selected saved version to the version you intend to execute. latest is newest saved (or draft), not necessarily published. Use returned parameter identifiers, not labels from your UI.

Authentication and permissions

Required permissions: projects.read. Resource and owner access checks also apply.

Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Path parameters
project_idstringRequired
Query parameters
versionany ofOptional

Project version to inspect: the draft, a saved version number, or latest, the newest saved version (the draft until one is saved)

Default: latest
const: latestOptional
or
const: draftOptional
or
integerOptional
Responses
200

Successful Response

application/json
response_codestring · nullableOptional

Machine-readable response code, when provided.

get/v2/projects/{project_id}/io-schema
curl
curl --fail-with-body -sS \
  "$STACKAI_BASE_URL/v2/projects/${PROJECT_ID}/io-schema" \
  -H "Authorization: Bearer $STACKAI_API_KEY"
{
  "data": {
    "input_kind": "legacy_input_nodes",
    "inputs": [
      {
        "id": "in-0",
        "name": "Question"
      }
    ],
    "outputs": [
      {
        "id": "out-0",
        "name": "Answer"
      }
    ]
  }
}

Last updated

Was this helpful?