Skip to content

HTTP API

Info

The HTTP API is enabled by default on every Sourcemeta One instance. It can be disabled by setting api to false in the configuration file.

This API has been architected with performance as a primary consideration, ensuring fast response times and efficient resource utilization across all endpoints.

  • Cross-origin resource sharing (CORS): Full CORS support is implemented throughout the API, including proper handling of preflight OPTIONS requests, making it seamlessly compatible with browser-based applications and cross-origin requests
  • HTTP conventions: Every GET request has a corresponding HEAD method. For brevity, we don't specify this every time
  • Errors: Error responses follow the RFC 9457 Problem Details specification for consistent, machine-readable error information
  • Schema Documentation: While we don't provide an OpenAPI specification due to its current limitations with multi-fragment path support (see OpenAPI Issue #2653) which make describing this API impossible, Sourcemeta One itself is comprehensively defined using JSON Schemas mounted in /self/v1/schemas

General

Health Check

This endpoint can be used as a health check for infrastructure integration such as Docker HEALTHCHECK or load balancer probes.

GET /self/v1/health

Empty response body.

The HTTP method is not GET or HEAD.

Metrics

Enterprise

This endpoint is only available in the Enterprise edition. Learn more about commercial licensing.

This endpoint reports instance telemetry in the Prometheus exposition format.

GET /self/v1/metrics

Any Prometheus-compatible scraper reads this without configuration beyond the path. Request behaviour follows the RED method, with request and error counts reported per action and status code, and duration reported per action. This endpoint is not exempt from authentication, so a policy covering its path gates it like any other route.

The metrics in the Prometheus exposition format.

The instance is running the Community edition.

The HTTP method is not GET or HEAD.

List

This endpoint lists the contents of a directory at the specified {path} parameter.

GET /self/v1/api/list/{path?}

If no path is provided, the endpoint returns the contents of the root directory. The response includes every resource and subdirectory available at the requested path, providing a hierarchical view of the instance structure for navigation and discovery purposes.

Property Type Required Description
/url String Yes The absolute URL of the directory
/path String Yes The relative URL of the directory
/breadcrumb Array Yes The breadcrumb of the directory entry
/breadcrumb/*/name String Yes The breadcrumb entry URL path segment
/breadcrumb/*/path String Yes The relative URL of the breadcrumb location
/title String No The title associated with the directory
/description String No The description associated with the directory. The web explorer renders this as Markdown
/email String No The e-mail address associated with the directory
/github String No The GitHub organisation or repository associated with the directory
/website String No The external URL associated with the directory
/resources Object Yes How much of each kind this directory holds, recursively, keyed by what an entry of that kind calls itself
/resources/schema Integer Yes The recursive count of schemas
/resources/openapi Integer Yes The recursive count of OpenAPI descriptions
/health Integer Yes The aggregated health of the directory, over every resource it holds of either kind
/private Boolean Yes Whether an authentication policy governs this directory
/entries Array Yes The entries inside the directory
/entries/*/type schema / openapi / directory Yes What the entry is
/entries/*/name String Yes The last URL path segment of the entry
/entries/*/path String Yes The relative URL of the entry
/entries/*/private Boolean Yes Whether an authentication policy governs the entry
/entries/*/health Integer Yes The aggregated health of the entry
/entries/*/resources Object No For directory entries, how much of each kind the entry holds, recursively
/entries/*/resources/schema Integer Yes The recursive count of schemas
/entries/*/resources/openapi Integer Yes The recursive count of OpenAPI descriptions
/entries/*/title String No The title associated with the entry
/entries/*/description String No The description associated with the entry. The web explorer renders this as Markdown
/entries/*/email String No For directory entries, the e-mail address associated with the entry
/entries/*/github String No For directory entries, the GitHub organisation or repository associated with the entry
/entries/*/website String No For directory entries, the website URL associated with the entry
/entries/*/dependencies Integer No For resource entries, the number of references the resource makes to other resources, directly and indirectly
/entries/*/bytes Integer No For resource entries, the bytes that the entry occupies
/entries/*/bytesBundled Integer No For resource entries, the bytes that the entry occupies when bundled
/entries/*/conformsTo String No For resource entries, the absolute URI of what defines the format of the entry, as the metadata endpoint reports it
/entries/*/baseDialect String No For resource entries, the base dialect URI of the entry
/entries/*/dialect String No For resource entries, the dialect URI of the entry
/entries/*/identifier String No For resource entries, the absolute URI of the entry
/entries/*/alert String / Null No For resource entries, the human readable alert message for the collection. The web explorer renders this as Markdown
/entries/*/priority Integer No For resource entries, an importance hint from 0 (least important) to 100 (most important), inherited from the collection's x-sourcemeta-one:priority configuration value

The query carries a parameter this endpoint does not read. It declares none, so any name at all is refused rather than ignored.

The directory does not exist.

Dependencies

This endpoint retrieves all direct and indirect dependencies of the resource located at the specified {path} parameter, which may be a JSON Schema or an OpenAPI description alike.

GET /self/v1/api/dependencies/{path}

Where a reference sits is part of what this report is for, so a resource is reported once for each position that names it. A cycle that leads back to the resource this report is of ends in such a position, so that resource is listed among its own dependencies. A reference whose destination is the document spelling it is left out, as it reaches nothing beyond that document.

A base dialect is a default for an OpenAPI description

A description is no schema itself, so the base reported for one is the base of the dialect its Schema Objects answer to by default. Revision 3.0 fixes that dialect and gives a description no way to name another, which makes the base reported the whole truth for one. Revisions 3.1 and later let the document set it with jsonSchemaDialect and let any Schema Object override that with $schema, so the base reported is the one in force wherever no Schema Object says otherwise.

Property Type Required Description
/*/from Object Yes The resource that originates the reference, and where within it the reference sits
/*/from/identifier String Yes The absolute URL of that resource
/*/from/type schema / openapi Yes What this instance serves at that URL, or schema for a resource it resolves without serving
/*/from/baseDialect String Yes The absolute URI of the base dialect of that resource. For an OpenAPI description, the base of the dialect its Schema Objects default to
/*/from/location String Yes The JSON Pointer to the position within that resource where the reference sits
/*/to Object Yes The resource being referenced
/*/to/identifier String Yes The absolute URL of that resource
/*/to/type schema / openapi Yes What this instance serves at that URL, or schema for a resource it resolves without serving
/*/to/baseDialect String Yes The absolute URI of the base dialect of that resource. For an OpenAPI description, the base of the dialect its Schema Objects default to

An end may name a resource this instance resolves without serving, as an official JSON Schema dialect is. Such an end is reported as a schema.

The query carries a parameter this endpoint does not read. It declares none, so any name at all is refused rather than ignored.

There is nothing at this URL.

Dependents

This endpoint retrieves all direct and transitive dependents of the resource located at the specified {path} parameter, which may be a JSON Schema or an OpenAPI description alike.

GET /self/v1/api/dependents/{path}

Every entry carries the same shape as a dependency entry, read the other way around: from is the resource that reaches this one, and to is the resource of this catalog that it reaches.

Property Type Required Description
/*/from Object Yes The resource that originates the reference, and where within it the reference sits
/*/from/identifier String Yes The absolute URL of that resource
/*/from/type schema / openapi Yes What this instance serves at that URL, or schema for a resource it resolves without serving
/*/from/baseDialect String Yes The absolute URI of the base dialect of that resource. For an OpenAPI description, the base of the dialect its Schema Objects default to
/*/from/location String Yes The JSON Pointer to the position within that resource where the reference sits
/*/to Object Yes The resource being referenced
/*/to/identifier String Yes The absolute URL of that resource
/*/to/type schema / openapi Yes What this instance serves at that URL, or schema for a resource it resolves without serving
/*/to/baseDialect String Yes The absolute URI of the base dialect of that resource. For an OpenAPI description, the base of the dialect its Schema Objects default to

The query carries a parameter this endpoint does not read. It declares none, so any name at all is refused rather than ignored.

There is nothing at this URL.

Metadata

This endpoint retrieves metadata information about the resource located at the {path} parameter, which may be a JSON Schema or an OpenAPI description alike.

GET /self/v1/api/metadata/{path}
Property Type Required Description
/path String Yes The relative URL of the resource
/identifier String Yes The absolute URI of the resource
/type schema / openapi Yes What this instance serves at that URL
/conformsTo String Yes The absolute URI of what defines the format of this resource. For a schema, its base dialect. For an OpenAPI description, the revision of the OpenAPI Specification it declares
/dialect String Yes The dialect URI of the resource. For an OpenAPI description, the dialect its Schema Objects answer to where none of them declares another
/baseDialect String Yes The base dialect URI of the resource. For an OpenAPI description, the base of the dialect above
/metaschema Boolean Yes Whether the resource is a meta-schema, as it either declares $vocabulary or another schema in this instance declares it as its $schema. Always false for an OpenAPI description
/conversions Object No Only in the Enterprise edition, where it is always present. What the resource can be fetched as with the as query parameter, keyed by that value, and empty when there is nothing
/conversions/*/mediaType String Yes The media type a fetch with that as value responds with
/health Integer Yes The health score of the resource
/priority Integer Yes An importance hint from 0 (least important) to 100 (most important), inherited from the collection's x-sourcemeta-one:priority configuration value
/private Boolean Yes Whether an authentication policy governs this resource
/dependencies Integer Yes The number of references the resource makes to other resources, directly and indirectly
/bytes Integer Yes The bytes that the resource occupies
/bytesBundled Integer Yes The bytes that the resource occupies when bundled
/alert String / Null No The human readable alert message for the collection, if any. The web explorer renders this as Markdown
/title String No The title of the resource, if any
/description String No The description of the resource, if any. The web explorer renders this as Markdown
/examples Array Yes Up to 10 of the schema examples, if any. Always empty for an OpenAPI description
/breadcrumb Array Yes The breadcrumb of the resource
/breadcrumb/*/name String Yes The breadcrumb entry URL path
/breadcrumb/*/path String Yes The relative URL of the breadcrumb location

What a resource conforms to, and the dialect of the schemas in it

For a schema the two coincide, as what defines a schema is the base dialect it answers to. For an OpenAPI description they are different subjects. conformsTo is the revision of the OpenAPI Specification the document itself is written in, while dialect and baseDialect describe the Schema Objects inside it.

The query carries a parameter this endpoint does not read. It declares none, so any name at all is refused rather than ignored.

There is nothing at this URL.

Positions

This endpoint retrieves line and column position information for every token in the resource located at the specified {path} parameter, which may be a JSON Schema or an OpenAPI description alike.

GET /self/v1/api/positions/{path}

The result is a JSON object where every property is a JSON Pointer into the resource.

Property Type Required Description
/*/0 Integer Yes Starting line number
/*/1 Integer Yes Starting column number
/*/2 Integer Yes Ending line number
/*/3 Integer Yes Ending column number

The query carries a parameter this endpoint does not read. It declares none, so any name at all is refused rather than ignored.

The resource does not exist.

The HTTP method is not GET or HEAD.

Health

This endpoint retrieves the health analysis and score for the resource located at the specified {path} parameter, which may be a JSON Schema or an OpenAPI description alike. A description is scored over the Schema Objects it holds.

GET /self/v1/api/health/{path}

A rule that the resource holds itself exempt from through x-lint-exclude, or that the collection disables through lint/exclude, is left out of both the score and the issue list.

Property Type Required Description
/score Integer Yes The overall health score of the resource (0 to 100)
/errors Array Yes Array of health issues found in the resource
/errors/*/pointers Array Yes The paths where the issue occurs
/errors/*/pointers/* String Yes A JSON Pointer path of where the issue occurs
/errors/*/name String Yes The identifier name of the health issue
/errors/*/custom Boolean Yes Whether the issue comes from a custom lint rule rather than a built-in one
/errors/*/message String Yes Human-readable description of the issue. The web explorer renders this as Markdown
/errors/*/description String / Null Yes Additional description. The web explorer renders this as Markdown

The query carries a parameter this endpoint does not read. It declares none, so any name at all is refused rather than ignored.

The resource does not exist.

Static

This endpoint serves static assets such as stylesheets, scripts, icons, and the web manifest used by the HTML web explorer.

GET /self/v1/static/{path}

This endpoint is always mounted, but web assets are only served when the html configuration option is enabled.

The static asset contents with its corresponding Content-Type header.

The static asset does not exist, or the instance is running in headless mode.

The HTTP method is not GET or HEAD.

Authentication

Enterprise

Gating any part of an instance is only available in the Enterprise edition. Learn more about commercial licensing.

Every endpoint on this page is public unless the configuration file declares a policy that governs the path it reaches. An endpoint no governing policy admits the caller to is answered with 401 and a WWW-Authenticate header.

A registry path is different. A schema or collection the caller is not admitted to is answered exactly as one that does not exist, and directory listings leave it out. Where an endpoint below names a registry path among its arguments, that path decides the answer, so it reports 404 rather than 401.

A machine caller presents its credential on every request and needs none of the endpoints below:

Authorization: Bearer <credential>

For an apiKey policy that credential is one of the keys the policy declares. For a jwt policy it is an access token from the issuer the policy trusts.

An oidc policy signs a person in at their provider instead, through the three endpoints below, leaving the browser holding a session cookie that admits it exactly as a credential would. That cookie is HttpOnly, SameSite=Lax, scoped to the instance rather than to the whole host, and Secure whenever the instance URL is https. It carries its own expiry and the signature that proves this instance minted it, so no session is kept in memory and every replica of an instance accepts the sessions the others mint.

A signed-in browser also holds a short-lived transaction cookie during a login, and a renewal marker naming the policy it signed in under, which is what lets an expired session be renewed against the provider without asking the person again. The marker carries no credential.

Providers

This endpoint names the ways of signing in to this instance, as a page for a browser and as data for anything else.

GET /self/v1/auth/login

Only oidc policies appear here. A policy that admits a program has nowhere to send a person, so naming it would offer a way in that does not exist.

Property Type Required Description
/title String No The name this instance goes by, where it has been given one
/providers Array Yes The identity providers a person may sign in through, in declaration order
/providers/*/name String Yes The policy name
/providers/*/title String Yes The human readable version of the policy name
/providers/*/path String Yes The relative URL that starts a login through this provider

The instance is running the Community edition, which signs nobody in.

The HTTP method is not GET or HEAD.

Login

This endpoint begins an interactive login against the named policy's identity provider.

GET /self/v1/auth/login/{policy}[?to={redirect-location}]

The response redirects the browser to the provider's authorization endpoint, discovered from the policy's issuer, and sets a short-lived transaction cookie that binds the login to this browser. That cookie is what the callback checks before it acts on anything the provider says.

to names where to land once the login completes, and is honoured only when it is a path on this instance, so the endpoint cannot be turned into an open redirect by whoever composes the link. Anything else falls back to the referring page, and then to the first path the policy declares.

The provider's authorization URL in Location, with the transaction cookie in Set-Cookie.

No oidc policy carries that name. A policy of another type answers the same way, so the endpoint discloses nothing about what is configured.

The HTTP method is not GET or HEAD.

The login cannot be started. Every cause answers this way, among them a client secret or session secret absent from the environment, provider metadata that could not be retrieved or that names no authorization endpoint, and a provider this instance will not send a credential to. A login that could not be completed is refused here rather than stranding the person at the provider. Nothing distinguishes the causes, so the endpoint cannot be used to learn how an instance is configured or whether its provider is answering. The cause goes to the server log.

Callback

This endpoint completes an interactive login by exchanging the provider's authorization code for a session.

GET /self/v1/auth/callback/{policy}

This is the redirect URI to register with the identity provider, as {url}/self/v1/auth/callback/{policy}, built from the instance url and the policy name. The provider sends the browser here, and the endpoint verifies that the transaction cookie belongs to a login this instance started before acting on the outcome, so a callback arriving from anywhere else cannot establish a session or report a failure on somebody's behalf.

The session cookie in Set-Cookie, the spent transaction cookie expired alongside it, and the login's return target in Location.

The callback does not belong to a login this instance started, or is missing the code that would complete one. Nothing distinguishes the two, so a caller learns nothing about the login by asking.

The provider declined the login, in a callback that does belong to a login this instance started.

The HTTP method is not GET or HEAD.

The callback belongs to a login this instance started, but no session came of it. Every cause answers this way, among them a client secret or session secret absent from the environment, a provider that could not be reached or that refused the authorization code, and an identity token that does not validate or that no session cookie can hold. Anybody can start a login and return with a code of their own invention, so reaching this says nothing about who is asking, and nothing distinguishes the causes. The cause goes to the server log.

Logout

This endpoint ends the browser's session, and the provider's session with it.

POST /self/v1/auth/logout

Every cookie this endpoint mints is expired before anything else is decided, and whether or not the request carried it, so no outcome leaves a session behind or a browser eligible to renew one. Where the session names a policy whose provider offers to end its own session, the browser is then sent on to do so, carrying the identity token as proof of whose session it is asking to end. That is what stops the next sign-in from silently admitting whoever used the browser last.

This endpoint answers POST rather than GET because signing out changes state at the provider, which RFC 9110 §9.2.1 puts outside what a safe method may do. A link to it would be followed by anything that prefetches or unfurls URLs, signing the person out unasked, so the control that reaches it is a form submission.

The session, transaction and renewal cookies expired in Set-Cookie, and either the provider's end-session URL or the instance root in Location.

The HTTP method is not POST.

Schemas

Fetch

This endpoint fetches the JSON Schema located at the {path} parameter.

GET /{path}[.json][?bundle=1][?as={dialect}]

The .json extension is optional unless the HTML UI is enabled and the Accept header is set to prefer an HTML response. The extension and the {path} segment are matched case-insensitively within the catalog's URL namespace, so foo.json, foo.JSON, and FOO.json all resolve to the same schema, even though RFC 3986 §6.2.2.1 makes the path component of a URI case-sensitive in general. If the bundle query parameter is set, the schema references are embedded using the standard JSON Schema Bundling process. Meta-schemas are not embedded, as the registry serves every meta-schema that a schema may declare.

bundle is a presence flag, not a boolean

Bundling is triggered by the presence of the bundle query parameter regardless of its value. ?bundle, ?bundle=1, ?bundle=true, ?bundle=0, and ?bundle=false all trigger bundling. To disable bundling, omit the parameter entirely.

Enterprise

The as query parameter is only available in the Enterprise edition. Learn more about commercial licensing.

If the as query parameter is set, the schema is served converted into another dialect: draft4, draft6, draft7, 2019-09, 2020-12, openapi3.1, or openapi3.2. The upgrade path runs through the official JSON Schema dialects up to 2020-12 and carries on into the OpenAPI 3.1 and OpenAPI 3.2 Schema Object dialects, each of which is 2020-12 plus a vocabulary of its own, so a Draft 4 schema can be asked for as openapi3.2. A schema can be asked for in the dialect it is served as or in any newer one, and the conversions property of its metadata lists exactly the values it accepts. Learn more about this approach in Solving the JSON Schema dialect fragmentation problem with auto-upgrades.

A conversion is always bundled

A conversion is served as a bundle, the whole closure of references embedded and converted alongside the schema, exactly as if bundle had been asked for too, so asking for both is the same request and either order is accepted. Converting a schema on its own would leave every reference pointing at a document in its original dialect, handing whoever asked for 2020-12 an older one the moment they followed a reference.

as means nothing older, not exactly this

A resource newer than the dialect asked for is carried across as it is, because only upgrades are supported and downgrades are a harder problem this does not attempt: moving a schema backwards means expressing what a newer dialect can say in a dialect that cannot say it. So asking for the newest dialect gives a document written entirely in it, since nothing can be newer, while asking for an older one raises whatever sits below the line and leaves the rest.

A conversion is refused when the schema, or anything its references reach, is something a conversion cannot move: a meta-schema, or a schema on a dialect that is not one of the dialects on that path. Because the closure travels with the schema, one such document anywhere in it is enough, and the conversions property reports none for that schema.

Why meta-schemas are not converted

A meta-schema describes a dialect, so converting one changes the dialect it is written in without restating the dialect it describes. Take a team dialect that insists every schema gathers its subschemas in one place:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://example.com/meta",
  "type": "object",
  "required": [ "definitions" ]
}

A schema written in that dialect satisfies it. Converting that schema into 2020-12 would rename definitions into $defs, and point the reference at its new home:

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/contact",
  "properties": { "address": { "$ref": "#/$defs/email" } },
  "$defs": { "email": { "type": "string" } }
}

The schema satisfies its dialect as written and would not after such a conversion, as the dialect still requires definitions. Converting the meta-schema alongside it changes nothing, as that only changes the dialect the meta-schema is written in, leaving the keyword it requires exactly as it was.

Nothing in either document says whether the author meant the JSON Schema keyword, which a conversion should rename, or a keyword of their own that happens to share the name, which it should leave alone. Plenty of conversions would be harmless, and a dialect that constrains nothing of the sort converts cleanly, but since nothing says which case is at hand, this is refused rather than guessed at, and it is unlikely to ever happen automatically.

The same reasoning is what makes a reference to such a schema enough to refuse the whole conversion. A bundled conversion has to convert every document it embeds, so there is nowhere to put one it cannot move.

The schema as JSON.

The as query parameter names a dialect the schema cannot be converted into, or is combined with a query parameter other than bundle.

The as query parameter is set on an instance that is not running the Enterprise edition.

The schema does not exist.

The HTTP method is not GET or HEAD.

Evaluate

This endpoint takes a JSON instance as a request body and evaluates it against the JSON Schema located at the {path} parameter.

POST /self/v1/api/schemas/evaluate/{path}

Perform exhaustive JSON Schema evaluation (including annotation collection) and respond back using the Basic JSON Schema Standard Output Format.

You must pass an instance to validate against, or the query carries a parameter this endpoint does not read, as it declares none.

The schema does not exist.

The HTTP method is not POST, the configuration file excludes evaluation for this schema, or the target is an OpenAPI description, whose embedded schemas this operation does not support.

The request body is too large. See RFC 9110 §15.5.14.

The Expect header carries an expectation other than 100-continue. See RFC 9110 §10.1.1.

Trace

This endpoint takes a JSON instance as a request body and evaluates it against the JSON Schema located at the {path} parameter.

POST /self/v1/api/schemas/trace/{path}

Unlike standard schema validation, this endpoint performs a detailed trace evaluation that exposes the complete internal validation process, including each step, rule application, and decision point that occurs during schema processing. This granular visibility into the validation workflow makes it particularly valuable for debugging complex schema issues, understanding validation failures, and for developers building JSON Schema tooling who need insight into the validation engine's behavior and logic flow.

Property Type Required Description
/valid Boolean Yes Whether evaluation succeeded or not
/steps Array Yes The evaluation steps that took place
/steps/* Object Yes Each evaluation step that took place
/steps/*/type push / pass / fail Yes The type of the step entry
/steps/*/message String Yes A description of the step
/steps/*/evaluatePath String Yes The evaluate path as a JSON Pointer
/steps/*/keywordLocation String Yes The absolute keyword location as a URI
/steps/*/instanceLocation String Yes The instance location as a JSON Pointer
/steps/*/name String Yes The internal name of the step
/steps/*/vocabulary String / Null Yes The vocabulary URI that defines the keyword, if any
/steps/*/annotation JSON / Null Yes The annotation value produced by the step, if any
/steps/*/instancePositions Array Yes The instance line positions associated with the step
/steps/*/instancePositions/0 Integer Yes Starting line number
/steps/*/instancePositions/1 Integer Yes Starting column number
/steps/*/instancePositions/2 Integer Yes Ending line number
/steps/*/instancePositions/3 Integer Yes Ending column number

You must pass an instance to validate against, or the query carries a parameter this endpoint does not read, as it declares none.

The schema does not exist.

The HTTP method is not POST, the configuration file excludes evaluation for this schema, or the target is an OpenAPI description, whose embedded schemas this operation does not support.

The request body is too large. See RFC 9110 §15.5.14.

The Expect header carries an expectation other than 100-continue. See RFC 9110 §10.1.1.

RDF

Enterprise

This endpoint is only available in the Enterprise edition. Learn more about commercial licensing.

This endpoint takes a JSON object wrapping an instance as its request body, validates the instance against the JSON Schema located at the {path} parameter, and promotes it to JSON-LD (and therefore RDF) using the schema's x-jsonld-* annotations.

POST /self/v1/api/schemas/rdf/{path}

The same schema that validates the instance declares how it maps to Linked Data, keeping a single source of truth for both concerns. Learn more about this approach in Fully solving JSON Schema and JSON-LD interoperability. The annotation vocabulary is documented in the JSON Schema CLI RDF documentation. If you are new to JSON-LD, A JSON-LD Handbook is a great place to learn the format from. A schema without such annotations (including schemas on dialects older than 2019-09, which do not support annotation collection) produces an empty JSON-LD document. Availability follows the evaluate flag: schemas excluded from evaluation in the configuration file cannot be promoted.

Unlike the evaluate and trace endpoints, the request body is not the bare instance, but a JSON object with the following properties:

Property Type Required Description
/instance JSON Yes The instance to validate and promote
/flatten Boolean No Whether to flatten the resulting document. Defaults to false
/context Object No A JSON-LD context to compact (or, with flatten, flatten) the resulting document against

Without a context, the response is the document in expanded form (or flattened form with flatten). With a context, the response is in compacted form. Remote contexts are not fetched.

The instance promoted to JSON-LD, served as application/ld+json.

You must pass a request body that matches the request schema, the provided context cannot be processed (for example because it references a remote context), or the query carries a parameter this endpoint does not read, as it declares none. flatten and context are read out of the request body rather than the query string.

The schema does not exist.

The HTTP method is not POST, the configuration file excludes evaluation for this schema, or the target is an OpenAPI description, whose embedded schemas this operation does not support.

The request body is too large. See RFC 9110 §15.5.14.

The Expect header carries an expectation other than 100-continue. See RFC 9110 §10.1.1.

The instance does not conform to the schema (the problem details carry the standard JSON Schema output errors), or the schema's JSON-LD annotations cannot be resolved for this instance (the problem details carry the offending annotation facet and instance location).

This endpoint searches the catalog based on the provided query {term}, over JSON Schemas and OpenAPI descriptions alike.

GET /self/v1/api/search?q={term}[&limit={n}][&scope={fields}][&type={kinds}]
Parameter Type Required Default Description
q String Yes - Search term (case-insensitive substring, at most 256 characters)
limit Integer No 10 Maximum number of results, between 1 and 100
scope String No path,title,description Comma-separated fields to match against
type String No schema,openapi Comma-separated kinds of resource to answer for

The valid values for scope are path, title, and description, which can be combined in any order (i.e. scope=title,description). The valid values for type are schema and openapi, likewise combinable (i.e. type=openapi).

Property Type Required Description
/*/type schema / openapi Yes What this instance serves at that URL
/*/path String Yes The relative URL of the resource
/*/identifier String Yes The absolute URL of the resource
/*/title String Yes The title of the resource
/*/description String Yes The description of the resource. The web explorer renders this as Markdown
/*/priority Integer Yes An importance hint from 0 (least important) to 100 (most important), inherited from the collection's x-sourcemeta-one:priority configuration value
/*/health Integer Yes The health score of the resource (0 to 100)

Returned when q is missing or empty, when q or limit do not match their corresponding ranges, when scope names anything other than the three fields above, when type names anything other than the two kinds above, or when the query carries a name other than q, limit, scope and type.

Locations

This endpoint retrieves metadata about every URI associated with the resource located at the specified {path} parameter, whether that resource is a JSON Schema or an OpenAPI Description.

GET /self/v1/api/locations/{path}
Property Type Required Description
/static Object Yes Static URI locations within the resource
/static/* Object Yes Metadata for a specific URI location
/static/*/base String For a schema location The base URI of the location
/static/*/baseDialect String For a schema location The base dialect of the schema
/static/*/defaultDialect String For a Schema Object or a whole Description The dialect in force where this sits, which a schema of its own overrides
/static/*/dialect String For a schema location The JSON Schema dialect URI
/static/*/parent String / Null Yes The JSON Pointer of the place that holds this one, null where nothing does
/static/*/pointer String Yes The JSON Pointer to this location from the root of the document
/static/*/relativePointer String For a schema location The JSON Pointer rebased on the nearest enclosing schema resource. A Schema Object is one only once it declares an $id, so one that declares none reports the whole document pointer
/static/*/root String / Null For a schema location The root URI of the schema, null where the frame has none
/static/*/type String Yes What sits here. A schema location reports resource, anchor, pointer or subschema, except where it is a Schema Object of an OpenAPI Description, which reports schema whichever of those it would otherwise be. Anything else is the name of the OpenAPI Object, such as openapi, info, paths, path-item or operation
/static/*/position Array Yes The entry location positions
/static/*/position/0 Integer Yes Starting line number
/static/*/position/1 Integer Yes Starting column number
/static/*/position/2 Integer Yes Ending line number
/static/*/position/3 Integer Yes Ending column number
/static/*/propertyName Boolean For a schema location Whether the location applies to a property name
/static/*/orphan Boolean For a schema location Whether the location is inside a definitions container
/dynamic Object Yes Dynamic URI locations within the resource
/dynamic/* Object Yes Metadata for a specific URI location
/dynamic/*/base String For a schema location The base URI of the location
/dynamic/*/baseDialect String For a schema location The base dialect of the schema
/dynamic/*/defaultDialect String For a Schema Object or a whole Description The dialect in force where this sits, which a schema of its own overrides
/dynamic/*/dialect String For a schema location The JSON Schema dialect URI
/dynamic/*/parent String / Null Yes The JSON Pointer of the place that holds this one, null where nothing does
/dynamic/*/pointer String Yes The JSON Pointer to this location from the root of the document
/dynamic/*/relativePointer String For a schema location The JSON Pointer rebased on the nearest enclosing schema resource. A Schema Object is one only once it declares an $id, so one that declares none reports the whole document pointer
/dynamic/*/root String / Null For a schema location The root URI of the schema, null where the frame has none
/dynamic/*/type String Yes What sits here. A schema location reports resource, anchor, pointer or subschema, except where it is a Schema Object of an OpenAPI Description, which reports schema whichever of those it would otherwise be. Anything else is the name of the OpenAPI Object, such as openapi, info, paths, path-item or operation
/dynamic/*/position Array Yes The entry location positions
/dynamic/*/position/0 Integer Yes Starting line number
/dynamic/*/position/1 Integer Yes Starting column number
/dynamic/*/position/2 Integer Yes Ending line number
/dynamic/*/position/3 Integer Yes Ending column number
/dynamic/*/propertyName Boolean For a schema location Whether the location applies to a property name
/dynamic/*/orphan Boolean For a schema location Whether the location is inside a definitions container

The query carries a parameter this endpoint does not read. It declares none, so any name at all is refused rather than ignored.

The resource does not exist.

The HTTP method is not GET or HEAD.

Stats

This endpoint retrieves keyword statistics, by vocabulary, about the schemas the resource located at the specified {path} parameter holds. For a JSON Schema those are the schema and its subschemas. For an OpenAPI Description they are the Schema Objects it holds, counted together, which is why this endpoint stays under /schemas while answering for both.

GET /self/v1/api/schemas/stats/{path}
Property Type Required Description
/<vocabulary>/<keyword> Integer Yes The number of occurrences of a specific keyword name from a specific vocabulary (or unknown otherwise). Occurrences are counted per subschema, not per URI, so a subschema that an $id or an $anchor makes addressable under several URIs has its keywords counted once

The query carries a parameter this endpoint does not read. It declares none, so any name at all is refused rather than ignored.

The resource does not exist.

The HTTP method is not GET or HEAD.

Playground

Everything under /self/v1/api/playground evaluates a document the caller supplies in the request rather than one this instance holds. An authentication policy naming /self/v1/api/playground governs the whole namespace, including operations added to it later.

Schema Trace

This endpoint takes a JSON instance and a JSON Schema in the request body and traces the evaluation of one against the other, without the schema having to be in the catalog.

POST /self/v1/api/playground/schemas/trace

The request body is an object rather than the bare instance that Trace takes:

Property Type Required Description
/instance JSON Yes The instance to trace evaluation for
/schema Object Yes The schema to evaluate it against, which must declare its dialect with $schema

A $ref to a schema in the catalog or to an official JSON Schema is respected, on the same terms as fetching that schema directly. Anything else does not resolve.

To prevent abuse, the number of keywords, the nesting depth and the size of a schema compiled on demand are limited. Those limits do not apply to a schema ingested into the catalog the normal way.

The same response as Trace.

The body is not the expected object, the schema cannot be compiled, which includes a $ref in it not resolving, or the query carries a parameter this endpoint does not read, as it declares none.

The request body is too large. See RFC 9110 §15.5.14.

The Expect header carries an expectation other than 100-continue. See RFC 9110 §10.1.1.

The schema is too complex to compile.

Model Context Protocol

Enterprise

The Model Context Protocol server is only available in the Enterprise edition. Learn more about commercial licensing.

This endpoint exposes the entire instance as a Model Context Protocol server, offering every JSON Schema in the catalog as an MCP resource and every action documented above as an MCP tool.

POST /self/v1/mcp

Sourcemeta One implements the Streamable HTTP transport with full CORS support, and enforces the Origin header validation principle recommended by the specification to protect against DNS rebinding attacks. On 2026-07-28 that transport also requires every request to carry Mcp-Method, and Mcp-Name where the method names a target, so that whatever sits in front of the instance can route on the same values the instance acts on. The two are checked against the body and a disagreement is refused.

Authorization. The specification's authorization model has this endpoint act as an OAuth 2.1 resource server that tells a client where its tokens come from. Where a jwt policy names this endpoint as its audience, the instance serves that discovery both ways the specification accepts: RFC 9728 protected resource metadata at its standard well-known location, and a resource_metadata parameter naming it in the WWW-Authenticate header of every denial here. The specification defines a resource identifier as an https URL and makes no exception for loopback, so an instance served in the clear publishes nothing rather than metadata a conforming client would reject.

The specification also has an MCP server accept only tokens issued for itself, rather than for whatever wider resource happens to contain it, so that a token minted for one service cannot be spent at another. A presented token must therefore name this endpoint in aud whichever policy admits the caller, and a token naming only the registry reaches everything that policy governs except here. An aud claim may list several audiences, so one token naming both the registry and this endpoint continues to reach both. Credentials that carry no audience, an apiKey or a browser session, are unaffected. OAuth scopes are not implemented, so no scope parameter is advertised and no request is refused for want of one.

Protocol versions. The server simultaneously supports four revisions of the MCP specification: 2025-03-26, 2025-06-18, 2025-11-25, and 2026-07-28. Clients pick a revision on every request via the MCP-Protocol-Version header, falling back to 2025-03-26 when omitted as the specification requires. A revision this server does not implement is refused with 400 and an UnsupportedProtocolVersionError naming every revision that it does.

On 2026-07-28 the server answers server/discover, tools/list, tools/call, resources/list, resources/read and resources/templates/list. Any other method, including subscriptions/listen, is answered as an unknown method with 404. Nothing here advertises listChanged or resources.subscribe, so a subscription would have nothing to deliver.

On that revision the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers must agree with the body they travel with, and a request whose headers and body disagree is refused with 400. Every result names this instance in its _meta. Answers a client may cache are good for five minutes, and are marked private when assembled for a credential or public when they are what any caller would be handed.

We recommend connecting with the latest revision to take advantage of all available features, but the server gracefully degrades to support older clients as needed.

Resources. Every JSON Schema and every OpenAPI description in the catalog is offered as an MCP resource addressable by its canonical absolute URI, served in paginated form. Each resource's importance hint, inherited from its collection's x-sourcemeta-one:priority configuration value, is mapped to the standard MCP annotations.priority value, so that AI clients can rank resources by it. A resource listing names only the resources the client's credential reaches.

Tools. Every action documented in this page is also exposed as an MCP tool that performs the same work over JSON-RPC. The server supports the full range of advanced MCP tool features applicable to each revision, including per-tool outputSchema declarations, structured content responses, resource_link content blocks, JSON-RPC batching, and the standard tool hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint). Each tool also carries a display title on the revisions that define one. tools/list offers only the tools whose endpoint the client's credential admits it to, and calling one that was not listed is answered as an unknown tool. The listing is returned in a deterministic order, so a client that caches it is handed the same order on every request for as long as the set of tools its credential reaches does not change.

Tool input schemas and $ref

Each tool's inputSchema names its parameters through a $ref to the schema that defines them, which is itself a resource in this catalog. Clients are not to resolve such a reference over the network on their own, so read it by calling resources/read on the $ref URL, which is an ordinary request rather than the automatic dereferencing a client is warned off. We keep the $ref because the alternative is to stop describing tool parameters by the schemas that already define them.

Tool argument stringification

Note several widely-deployed MCP clients incorrectly stringify non-string tool arguments before transmission. See the following open tickets: anthropics/claude-code#24599 and modelcontextprotocol/python-sdk#1112. We work around this on a per-tool basis as needed so that affected clients remain fully interoperable with Sourcemeta One. We aim to eventually revert these workarounds once the client ecosystem stabilises.

MCP client schema compliance

The MCP ecosystem is young and several widely-deployed clients get confused by any tool inputSchema beyond the most trivial shape, rejecting or silently degrading legal JSON Schema constructs such as $ref (including the schemas-as-resources pattern this server relies on). OpenAI Codex is currently among the most affected. See for example openai/codex#13746, openai/codex#3152, and openai/codex#4176. Our stance on broad compliance gaps like these is to not work around them on our side. Mangling the MCP surface to fit each non-compliant client would compromise the integrity of the specification for every other client. We will instead keep the server faithful to the specification and put pressure on MCP client providers to reach a reasonable level of compliance.

A JSON-RPC response envelope, or, on 2025-03-26, a batch of envelopes. A refusal that came out of answering the request travels here too, since what it reports is the thing asked for rather than the request itself: a schema that does not exist, a cursor that names no page, a tool that was never listed.

Acknowledged notification with no body.

The MCP-Protocol-Version header is not one of the supported revisions, answered with -32022. On 2026-07-28 also a routing field that is missing, repeated or disagrees with the body, answered with -32020, and a request whose _meta omits the revision or the client's capabilities, answered with -32602.

The request Origin does not match the configured instance URL.

On 2026-07-28, the request names a method this instance does not implement, answered with -32601. Earlier revisions report the same refusal under 200.

The HTTP method is not POST or OPTIONS.

The request body exceeds the maximum allowed size.