Get template data schemas
Read the data schemas of up to 50 saved templates of the account. Use them to build forms, check data without code, or ask an AI model for data in the right shape. Choose templates with repeated template_id values, or with one tag. A tag selects active templates newest first. Each item names the exact version it uses. With form=saved, each schema is exactly as published, and a template without a schema has a null schema. With form=strict, each schema is converted to the subset that AI structured output accepts: every object has additionalProperties false and requires all its properties, an optional property also accepts null, oneOf becomes anyOf, and only type, properties, required, additionalProperties, items, enum, const, anyOf, description, $defs, and $ref stay. Length, item count, number range, pattern, format, and default rules become sentences in description. Remove null values of optional properties before you render with that data. With combine=one_of, combined is one schema with an object root. Its template property is any one of the templates, and each branch names template_id, version, and data. The $defs keys of each template get a prefix such as t0_. A template without a schema fails a strict or combined request with 422 template_schema_missing. A strict form with allOf, not, if, then, else, patternProperties, dependentSchemas, prefixItems, a map of additional properties, a non-object root, or a reference other than #/$defs/name fails with 422 template_schema_unsupported. A combined saved form fails the same way for a reference other than #/$defs/name. Unknown parameters and other combinations are 400 invalid_request.
Request
- Base URL: https://thirds.ai
- URL: https://thirds.ai/v1/templates/schemas
- Auth: HTTP bearer
Query parameters
One saved template. Repeat it for up to 50 templates. The items keep this order. Use template_id or tag, not both.
Select up to 50 active templates with this exact tag, newest first.
An exact version. Allowed only with one template_id. The default is the latest version.
Response
The schemas in the requested form.
Changes
No recorded changes to this operation across all 1 revision of this API.