For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

get
/content_types/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
idintegerOptional

Filter by the exact identifier of a content type.

id__gtintegerOptional

Filter for identifiers greater than the given value.

id__gteintegerOptional

Filter for identifiers greater than or equal to the given value.

id__ltintegerOptional

Filter for identifiers less than the given value.

id__lteintegerOptional

Filter for identifiers less than or equal to the given value.

app_labelstringOptional

Filter by the exact app label (e.g. catalog).

modelstringOptional

Filter by the exact model name (e.g. product).

Responses
200

A page of content types.

application/json

A paginated list of content types.

countintegerOptional

Total number of content types matching the request.

nextstring · nullableOptional

URL of the next page, or null if this is the last page.

previousstring · nullableOptional

URL of the previous page, or null if this is the first page.

get/content_types/
GET /api/v1/remote/1/content_types/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 42,
      "app_label": "catalog",
      "model": "product"
    }
  ]
}

Last updated

Was this helpful?