GET /v2/projects/{project_id}/io-schema
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.
Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.
Project version to inspect: the draft, a saved version number, or latest, the newest saved version (the draft until one is saved)
latestSuccessful Response
Machine-readable response code, when provided.
Invalid request parameters
Missing or invalid credentials
Denied permission, project folder access, or API-key scope (meta.required_scope)
Project or saved version not found in the caller's organization
Other client errors use the same public error envelope
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?

