Get Schema
Retrieve the complete schema for a branch, including nodes, generics, profiles, and templates.Query Parameters
Name of the branch to retrieve the schema from. Defaults to the main branch.
Filter schemas by specific namespaces. If not provided, returns all namespaces.
Response
Main hash for the entire schema
List of node schemas (excluding Internal namespace)
List of generic schemas (excluding Internal namespace)
List of profile schemas (excluding Internal namespace)
List of template schemas (excluding Internal namespace)
List of available namespaces in the schema
Example
Get Schema Summary
Retrieve a summary hash of the schema for a specific branch.Query Parameters
Name of the branch to retrieve the schema summary from
Response
Hash information for the schema branch, including main hash and component hashes
Example
Get Schema by Kind
Retrieve a specific schema by its kind (namespace + name).Path Parameters
The kind of schema to retrieve (e.g., “CoreDevice”, “InfraPrefix”)
Query Parameters
Name of the branch to use for the query
Response
Returns the schema definition including attributes, relationships, and metadata.Example
Get JSON Schema by Kind
Retrieve a JSON Schema representation of a specific schema kind.Path Parameters
The kind of schema to retrieve as JSON Schema
Query Parameters
Name of the branch to use for the query
Response
JSON Schema version identifier (http://json-schema.org/draft-07/schema#)
Title of the schema
Description of the schema
Type of the schema element (typically “object”)
Properties of the schema including field definitions
List of required properties
Example
Load Schema
Load or update schema definitions on a branch. This endpoint validates, migrates, and applies schema changes.Query Parameters
Name of the branch to load the schema into. Defaults to main branch.
Time to use for the query, in absolute or relative format
Request Body
Array of schema definitions to load. Each schema must include a version field.
Response
The new hash for the entire schema after loading
The previous hash for the entire schema before loading
The modifications made to the schema
Warnings encountered while loading the schema
Indicates if the loading of the schema changed the existing schema
Example
Check Schema
Validate schema changes without applying them. Useful for CI/CD pipelines.Query Parameters
Name of the branch to check the schema against
Request Body
Array of schema definitions to validate
Response
Returns 202 Accepted if the schema is valid.The modifications that would be made to the schema
Warnings that would be generated when loading the schema
Example
Authentication
All schema endpoints require authentication using either:- Bearer Token: Include
Authorization: Bearer YOUR_ACCESS_TOKENheader - API Key: Include
X-API-KEY: YOUR_API_KEYheader
Permissions
Loading schemas requires:manage_schemaglobal permissionedit_default_branchpermission when modifying the default branch