> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/admin/schema-types/retrieve-a-schema-type.md).

# Retrieve a schema type

Returns a single schema type, addressed by the model name of its content type.

```json
{"openapi":"3.1.0","info":{"title":"Admin API","version":"1.0.0"},"tags":[{"name":"Schema Types","description":"Administrative endpoints for **schema types** — the registry that maps a model (a Django content type) to a JSON-schema definition describing the structured attribute data allowed for that model's instances. There is exactly one schema type per content type. Schema types back the dynamic/EAV attribute data used by products, attributes, subscriptions, order requests, menu items, bundle chapters, and other models.\n\n## Core Capabilities\n\n**1. Listing & Filtering**\n* Retrieve a paginated list of schema types.\n* Filter by `app_label` or `model`.\n* Order results with the `sort` parameter.\n\n**2. Create & Update**\n* Create a schema type for a content type.\n* Retrieve a single schema type — addressed by **model name**, not by numeric identifier (see **Addressing a Record**).\n* Fully or partially update the `schema` of an existing record.\n\n**Delete is not supported** — there is no `DELETE` route (`405 Method Not Allowed`).\n\n## Schema Type Fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `pk` | integer | The unique identifier of the record. Read-only. |\n| `content_type` | integer | The identifier of the Django content type (model) this schema describes. Required on create; unique across all schema types. Not writable on update. |\n| `schema` | object | The JSON-schema document describing the model's structured attribute data. Required on create and on update. |\n| `model` | string | Read-only. The model name of the content type (for example `product`). |\n| `created_date` | string (date-time) | Read-only. When the record was created. |\n| `modified_date` | string (date-time) | Read-only. When the record was last modified. |\n\n## Addressing a Record\n\nDetail operations key on the **model name** of the content type, not the numeric identifier: `/schema_types/{content_type__model}/` — for example `/schema_types/product/`. The additional `/schema_types/{content_type__model}/detailed/` route returns the same representation as retrieve.\n\n## Filtering & Ordering\n\n| Parameter | Match |\n|-----------|-------|\n| `app_label` | Exact match on the content type's app label (for example `products`). |\n| `model` | Exact match on the content type's model name (for example `product`). |\n\nUse the `sort` parameter to order the results; any field is orderable. Prefix a field with a hyphen for descending order.\n\n## Dynamic Settings & Environment Variables\n\nNo dynamic settings (`dj_dynamic_settings`) are read by these endpoints, and no environment variables are read directly."}],"servers":[{"description":"Omnitron Remote Proxy (external access — recommended)","url":"https://{omnitron_url}/api/v1/remote/{channel_id}","variables":{"omnitron_url":{"default":"sandbox.akinon.com","description":"Omnitron server URL (e.g., {omnitron.akinon.com})"},"channel_id":{"default":"1","description":"The channel identifier the remote request is routed through"}}},{"description":"Commerce API Server (internal / direct access only)","url":"https://{commerce_url}/api/v1","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Internal commerce server URL, reachable only from within the Omnitron network"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token credential sent in the Authorization header, in the form: `Token <your-token>`. Requires a staff (admin) account."}},"schemas":{"SchemaType":{"type":"object","description":"A schema type — a JSON-schema definition bound to a model (content type).","properties":{"pk":{"type":"integer","readOnly":true,"description":"The unique identifier of the record."},"content_type":{"type":"integer","description":"The identifier of the Django content type (model) this schema describes. Set on create; unique across all schema types."},"schema":{"type":"object","description":"The JSON-schema document describing the model's structured attribute data."},"model":{"type":"string","readOnly":true,"description":"The model name of the content type (e.g. `product`)."},"created_date":{"type":"string","format":"date-time","readOnly":true,"description":"When the record was created."},"modified_date":{"type":"string","format":"date-time","readOnly":true,"description":"When the record was last modified."}}},"Error":{"type":"object","description":"An error response.","properties":{"detail":{"type":"string","description":"A human-readable description of the error."}},"additionalProperties":true}},"responses":{"Unauthorized":{"description":"Authentication credentials were not provided or are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The authenticated user does not have administrator privileges.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"SchemaTypeNotFound":{"description":"The requested schema type does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/schema_types/{content_type__model}/":{"get":{"tags":["Schema Types"],"operationId":"retrieveSchemaType","summary":"Retrieve a schema type","description":"Returns a single schema type, addressed by the model name of its content type.","responses":{"200":{"description":"The requested schema type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaType"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/SchemaTypeNotFound"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.akinon.com/commerce-openapis/admin/schema-types/retrieve-a-schema-type.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
