---
updatedAt: 2026-04-08T10:20:58.000Z
agentTools:
  projectIndex: https://developer.goacoustic.com/acoustic-content/llms.txt
---

# Retrieve the total number of layout mappings.

Use the /layout-mappings/count endpoint to obtain the total number of layout mappings within the database.<br />User roles: admin, manager, editor, viewer

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.142",
    "x-ibm-name": "ibm-watson-content-hub-api",
    "title": "Acoustic Content API",
    "description": "Copyright © Acoustic, L.P. 2019"
  },
  "tags": [
    {
      "name": "Authoring layouts",
      "description": "Use the Content content authoring layout service Rest APIs to work with layouts and layout mappings.\n\nLayouts define the template for the type documents. They define the markup and how to add content properties and elements into the markup. For example, the layouts 'Article', and 'Event' would define what an article or event looks like on the web site, or email.\n\nLayout Mappings define an association between a content-type and one or more layouts. Specifically marking those layouts as valid for the given content-type.\n"
    }
  ],
  "paths": {
    "/authoring/v1/layout-mappings/count": {
      "get": {
        "tags": [
          "Authoring layouts"
        ],
        "summary": "Retrieve the total number of layout mappings.",
        "description": "Use the /layout-mappings/count endpoint to obtain the total number of layout mappings within the database.<br />User roles: admin, manager, editor, viewer",
        "responses": {
          "200": {
            "description": "layout mapping count",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests, the server has reached a limit, the request must be sent again at a later time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "an error response.",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "description": "an individual error, info or warning message.",
                        "properties": {
                          "code": {
                            "type": "integer",
                            "description": "The message code."
                          },
                          "key": {
                            "type": "string",
                            "description": "The message key."
                          },
                          "message": {
                            "type": "string",
                            "description": "The error message."
                          },
                          "description": {
                            "type": "string",
                            "description": "Optional detailed error message."
                          },
                          "more_info": {
                            "type": "string",
                            "description": "Optional additional information for the message."
                          },
                          "category": {
                            "type": "string",
                            "description": "The message category whereby only user messages are designed to be shown to an end user.",
                            "enum": [
                              "API",
                              "USER"
                            ]
                          },
                          "level": {
                            "type": "string",
                            "description": "Indicates the message level.",
                            "enum": [
                              "INFO",
                              "WARNING",
                              "ERROR"
                            ]
                          },
                          "parameters": {
                            "type": "object",
                            "description": "The message parameters of this message."
                          },
                          "field": {
                            "type": "string",
                            "description": "Only present on field validation errors, indicates the field in error."
                          },
                          "locale": {
                            "type": "string",
                            "description": "The current locale used to produce the error message."
                          }
                        }
                      }
                    },
                    "requestId": {
                      "type": "string",
                      "description": "The current request ID."
                    },
                    "service": {
                      "type": "string",
                      "description": "The name of the service that produced the error."
                    },
                    "requestMethod": {
                      "type": "string",
                      "description": "The Http method type of the current request."
                    },
                    "requestUri": {
                      "type": "string",
                      "description": "The current request uri."
                    }
                  }
                }
              }
            }
          }
        },
        "x-ibm-dx-security-user-roles": [
          "admin",
          "manager",
          "editor",
          "viewer"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "description": "This JSON record represents an error condition.",
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "description": "This JSON record represents an individual error or warning contained in an error message.",
              "type": "object",
              "properties": {
                "code": {
                  "type": "integer",
                  "description": "An error code"
                },
                "message": {
                  "type": "string",
                  "description": "A message describing what went wrong."
                },
                "description": {
                  "type": "string",
                  "description": "Further explanation of the error condition and potential next steps to resolve the problem."
                },
                "more_info": {
                  "type": "string",
                  "description": "A URL pointing to a web site that provides more information on the given error condition."
                },
                "level": {
                  "type": "string",
                  "enum": [
                    "ERROR",
                    "WARNING"
                  ],
                  "description": "The severity level of the message. Default is error."
                },
                "parameters": {
                  "type": "object",
                  "description": "Additional properties reflecting the dynamic parts of the error condition."
                },
                "cause": {
                  "type": "object",
                  "description": "This property can be used to transport causing error message records produced by a down stream service calls."
                },
                "locale": {
                  "type": "string",
                  "description": "This property represents the locale of the text contained in properties 'message', and 'description'. This property is mandatory if message and description contain translated text."
                }
              },
              "required": [
                "code",
                "message"
              ]
            }
          },
          "requestId": {
            "type": "string",
            "description": "The ID of the failing request."
          },
          "service": {
            "type": "string",
            "description": "The name of the service serving the error message."
          }
        },
        "required": [
          "errors",
          "requestId"
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```