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

# List content types

Returns a paginated list of content types.

Use `id` (with its range lookups), `app_label`, or `model` to narrow the list. Query parameters other than the ones listed below are ignored.

```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."}},"parameters":{"page":{"name":"page","in":"query","required":false,"description":"The page number to return.","schema":{"type":"integer","default":1}},"limit":{"name":"limit","in":"query","required":false,"description":"The number of items to return per page.","schema":{"type":"integer","default":10}},"sort":{"name":"sort","in":"query","required":false,"description":"Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (`-`) for descending order.","schema":{"type":"string"}}},"schemas":{"PaginatedContentTypeList":{"type":"object","description":"A paginated list of content types.","properties":{"count":{"type":"integer","description":"Total number of content types matching the request."},"next":{"type":["string","null"],"format":"uri","description":"URL of the next page, or `null` if this is the last page."},"previous":{"type":["string","null"],"format":"uri","description":"URL of the previous page, or `null` if this is the first page."},"results":{"type":"array","description":"The content types on the current page.","items":{"$ref":"#/components/schemas/ContentType"}}}},"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`)."}}},"ValidationError":{"type":"object","description":"Returned when the request contains invalid or missing data. Errors are grouped by the field they apply to: each key is the name of a field from the request and its value is a list of one or more messages describing what is wrong with that field. Messages that do not belong to any single field are grouped under `non_field_errors`.","properties":{"non_field_errors":{"type":"array","description":"Error messages that apply to the request as a whole rather than to a specific field.","items":{"type":"string"}}},"additionalProperties":{"type":"array","description":"The list of error messages for the field named by the key.","items":{"type":"string"}}},"Error":{"type":"object","description":"An error response.","properties":{"detail":{"type":"string","description":"A human-readable description of the error."}},"additionalProperties":true}},"responses":{"ValidationError":{"description":"The request contains invalid or missing data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationError"}}}},"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"}}}},"ContentTypePageNotFound":{"description":"The requested page of the content type list does not exist — the page number is beyond the last page or is not a number.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/content_types/":{"get":{"tags":["Content Types"],"operationId":"listContentTypes","summary":"List content types","description":"Returns a paginated list of content types.\n\nUse `id` (with its range lookups), `app_label`, or `model` to narrow the list. Query parameters other than the ones listed below are ignored.","parameters":[{"$ref":"#/components/parameters/page"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/sort"},{"name":"id","in":"query","description":"Filter by the exact identifier of a content type.","required":false,"schema":{"type":"integer"}},{"name":"id__gt","in":"query","description":"Filter for identifiers greater than the given value.","required":false,"schema":{"type":"integer"}},{"name":"id__gte","in":"query","description":"Filter for identifiers greater than or equal to the given value.","required":false,"schema":{"type":"integer"}},{"name":"id__lt","in":"query","description":"Filter for identifiers less than the given value.","required":false,"schema":{"type":"integer"}},{"name":"id__lte","in":"query","description":"Filter for identifiers less than or equal to the given value.","required":false,"schema":{"type":"integer"}},{"name":"app_label","in":"query","description":"Filter by the exact app label (e.g. `catalog`).","required":false,"schema":{"type":"string"}},{"name":"model","in":"query","description":"Filter by the exact model name (e.g. `product`).","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"A page of content types.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedContentTypeList"}}}},"400":{"$ref":"#/components/responses/ValidationError"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/ContentTypePageNotFound"}}}}}}
```


---

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