> 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/content-types/retrieve-a-content-type.md). Agents can also search and read this documentation through its [MCP server](https://apidocs.akinon.com/~gitbook/mcp).

# Retrieve a content type

Returns a single content type by its identifier.

```json
{"openapi":"3.1.0","info":{"title":"Admin API","version":"1.0.0"},"tags":[{"name":"Content Types","description":"Read-only endpoints for **content types** — Django's registry of the models installed in the system. Each record binds an `app_label` and a `model` name to a stable integer identifier, so that other parts of the platform can reference a model generically (permissions, generic relations, polymorphic attachments) without a hard link to a specific table.\n\nThese endpoints let integration clients enumerate the available models, resolve a model to its numeric content-type identifier, and — through the `fields` sub-endpoint — introspect a model's fields and relations at runtime.\n\n## Core Capabilities\n\n**1. Listing & Filtering**\n* Retrieve a paginated list of content types.\n* Filter by `id` (with range lookups), `app_label`, or `model`.\n* Order results with the `sort` parameter, as described under **Filtering & Ordering**.\n\n**2. Retrieval**\n* Retrieve a single content type by its identifier.\n\n**3. Field Introspection**\n* Retrieve the concrete fields, related objects, and many-to-many fields of the model a content type points to, through `GET /content_types/{id}/fields/`.\n\n> **Read-only.** Only `GET` (and `OPTIONS`) are supported. `POST`, `PUT`, `PATCH`, and `DELETE` are rejected with `405 Method Not Allowed`.\n\n## Content Type Fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `id` | integer | The unique identifier of the content type. |\n| `app_label` | string | The label of the Django app the model belongs to (e.g. `catalog`). Up to 100 characters. |\n| `model` | string | The lowercased model name (e.g. `product`). Up to 100 characters. |\n\n## Filtering & Ordering\n\nThe list endpoint accepts these filters:\n\n| Parameter | Match |\n|-----------|-------|\n| `id` | Exact identifier. |\n| `id__gt`, `id__gte`, `id__lt`, `id__lte` | Identifier range comparisons. |\n| `app_label` | Exact app label. |\n| `model` | Exact model name. |\n\nResults can be ordered with the `sort` parameter on any model field (`id`, `app_label`, `model`); prefix a field with a hyphen for descending order and separate several fields with commas.\n\n## Dynamic Settings & Environment Variables\n\nNo dynamic settings (`dj_dynamic_settings`) and no environment variables are read by these endpoints."}],"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":{"ContentType":{"type":"object","description":"A content type — the registry entry that binds an app label and model name to a stable integer identifier.","properties":{"id":{"type":"integer","readOnly":true,"description":"The unique identifier of the content type."},"app_label":{"type":"string","maxLength":100,"description":"The label of the Django app the model belongs to (e.g. `catalog`)."},"model":{"type":"string","maxLength":100,"description":"The lowercased model name (e.g. `product`)."}}},"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"}}}},"ContentTypeNotFound":{"description":"No content type exists with the given identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/content_types/{id}/":{"get":{"tags":["Content Types"],"operationId":"retrieveContentType","summary":"Retrieve a content type","description":"Returns a single content type by its identifier.","responses":{"200":{"description":"The requested content type.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentType"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/ContentTypeNotFound"}}}}}}
```


---

# 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/content-types/retrieve-a-content-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.
