dotCMS Theme API

Theme browsing and management

Operations 2

GET /api/v1/themes/id/{id} Get theme by ID #
GET /api/v1/themes List themes with pagination #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dotcms-theme-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dotcms-theme-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: dotCMS REST Theme API
  version: '3'
  description: Theme browsing and management
servers:
- url: /
  description: dotCMS Server
tags:
- name: Theme
  description: Theme browsing and management
paths:
  /api/v1/themes/id/{id}:
    get:
      tags:
      - Theme
      summary: Get theme by ID
      description: Returns a single theme given its folder inode ID. The 'theme' identifier in this endpoint corresponds to 'themeId' used in template endpoints.
      operationId: findThemeById
      parameters:
      - name: id
        in: path
        description: Theme folder inode identifier
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Theme returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseEntityMapStringObjectView'
        '401':
          description: Authentication required
        '404':
          description: Theme not found
  /api/v1/themes:
    get:
      tags:
      - Theme
      summary: List themes with pagination
      description: 'Returns a paginated list of themes for a given host (site). Results can be filtered by a search parameter and sorted in ascending or descending order. The hostId parameter is required. Note: The ''theme'' identifier returned by this endpoint corresponds to ''themeId'' used in template endpoints.'
      operationId: findThemes
      parameters:
      - name: hostId
        in: query
        description: Host (site) identifier to filter themes by (required)
        schema:
          type: string
      - name: page
        in: query
        description: Page number for pagination
        schema:
          type: integer
          format: int32
      - name: per_page
        in: query
        description: Number of items per page (-1 for default)
        schema:
          type: integer
          format: int32
          default: -1
      - name: direction
        in: query
        description: 'Sort direction: ASC or DESC'
        schema:
          type: string
          default: ASC
      - name: searchParam
        in: query
        description: 'Search term to filter themes (Lucene criteria: +catchall:*searchParam*)'
        schema:
          type: string
      responses:
        '200':
          description: Themes returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseEntityPaginatedArrayListMapView'
        '400':
          description: Missing or invalid hostId parameter
        '401':
          description: Authentication required
components:
  schemas:
    ErrorEntity:
      type: object
      properties:
        errorCode:
          type: string
        message:
          type: string
        fieldName:
          type: string
    ResponseEntityMapStringObjectView:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorEntity'
        entity:
          type: object
          additionalProperties:
            type: object
        messages:
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        i18nMessagesMap:
          type: object
          additionalProperties:
            type: string
        permissions:
          type: array
          items:
            type: string
        pagination:
          $ref: '#/components/schemas/Pagination'
    Pagination:
      type: object
      properties:
        currentPage:
          type: integer
          format: int32
        perPage:
          type: integer
          format: int32
        totalEntries:
          type: integer
          format: int64
    ResponseEntityPaginatedArrayListMapView:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorEntity'
        entity:
          type: array
          properties:
            totalResults:
              type: integer
              format: int64
            query:
              type: string
            empty:
              type: boolean
            first:
              type: object
              additionalProperties:
                type: object
            last:
              type: object
              additionalProperties:
                type: object
          items:
            type: object
            additionalProperties:
              type: object
        messages:
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        i18nMessagesMap:
          type: object
          additionalProperties:
            type: string
        permissions:
          type: array
          items:
            type: string
        pagination:
          $ref: '#/components/schemas/Pagination'
    MessageEntity:
      type: object
      properties:
        message:
          type: string