Skip to main content
The inject endpoint returns all published schemas for a given page as a structured JSON response. The SchemaGen JavaScript SDK calls this endpoint automatically when it loads on your site, but you can also call it directly if you want to build a custom schema delivery layer or inspect what schemas are active for a specific URL.
This endpoint requires no authentication. It is a public CORS-enabled endpoint safe to call from browser JavaScript or any server environment.

Endpoint

Query parameters

string
required
The UUID of your client site. You can find your Client ID in Settings → Client in the SchemaGen dashboard.
string
required
The absolute URL of the page you want to fetch schemas for. Must include the protocol (e.g., https://example.com/blog/my-post). SchemaGen uses this to match published schemas scoped to that specific page.

Response

A successful request returns 200 with a JSON body containing the schemas for the given page.
object[]
An array of raw JSON-LD objects — one for each published schema matching the requested URL. These are the objects you can embed directly in <script type="application/ld+json"> tags.
object[]
An array of full schema delivery records. Each item includes the JSON-LD object along with metadata such as the schema name, type, and status.
object

Response headers

Code examples

Example response

Error responses

If clientId is not a valid UUID or url is not an absolute URL, the API returns 400 immediately without attempting schema lookup. Double-check both values in your request.