Brain Docs

Reference

Python SDKInstallationHTTP clientWire clientSync vs async
get_schemavalidate_schemaupload_schemareplace_schemadrop_schemalist_schemaslist_extractors
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Python SDKSchemalist_schemas

list_schemas

Every schema version in the namespace, and whether each one kept its source text.

PURPOSE

Every schema version in the namespace, newest first, cursor-paged.

GET/v1/schemasBearer API keystable
list_schemas(limit=None, cursor=None) -> ListSchemasResult
Handshake credentialstable
list_schemas(request: SchemaListRequest) -> list[SchemaListItem]
list_schemas_frames(request: SchemaListRequest) -> list[SchemaListResponseFrame]

Parameters

ParameterTypeRequired
limitintegeroptional

Page size.

cursorstring (wire: bytes)optional

Cursor from the previous page.

Returns

FieldTypePresence
namespacestringalways

The namespace.

itemsSchemaVersion[]always

Each with schemaVersion, uploadedAtUnixNanos, validatorVersion and hasSourceText.

totalintegeralways

How many versions exist in total.

next_cursorstring

Absent on the last page.

hasSourceText can be false

false means the document itself was not retained for that version, only the compiled form. get_schema on such a version cannot give you the text back — so keep your schemas in version control, not only in Brain.

See also
get_schemaPagination

Was this page helpful?

drop_schema

Remove one declaration — and find out how many live rows still depend on it.

list_extractors

The extractors bound to the active schema, and the extractor ids you attribute claims to.

On this page

ParametersReturns
Suggest an editOpen in Playground