> ## Documentation Index
> Fetch the complete documentation index at: https://docs.embedreach.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Resource Counts for All Tenants

> Returns the count of each resource type (schema definition) for all tenants of the authenticated partner. Counts are grouped by tenant external ID and schema definition. Useful for monitoring data syncing across all tenants and comparing numbers with partner databases. Supports pagination with cursor and limit parameters.



## OpenAPI

````yaml GET /partner/resources/counts
openapi: 3.0.0
info:
  title: Reach API
  version: 1.0.0
  description: API documentation for Reach platform
servers:
  - url: https://api.embedreach.com
    description: Production server
security: []
paths:
  /partner/resources/counts:
    get:
      tags:
        - Partner Resources
      summary: Get Resource Counts for All Tenants
      description: >-
        Returns the count of each resource type (schema definition) for all
        tenants of the authenticated partner. Counts are grouped by tenant
        external ID and schema definition. Useful for monitoring data syncing
        across all tenants and comparing numbers with partner databases.
        Supports pagination with cursor and limit parameters.
      parameters:
        - schema:
            type: string
            description: >-
              Cursor for pagination. Use the cursor from the previous response
              to get the next page.
          required: false
          description: >-
            Cursor for pagination. Use the cursor from the previous response to
            get the next page.
          name: cursor
          in: query
        - schema:
            type: number
            nullable: true
            default: 50
            description: >-
              Number of tenant groups to return per page. Default is 50, maximum
              is 200.
          required: false
          description: >-
            Number of tenant groups to return per page. Default is 50, maximum
            is 200.
          name: limit
          in: query
        - schema:
            type: string
            nullable: true
            description: >-
              Filter by tenant external ID. Use "(No External ID)" to filter for
              tenants without an external ID.
          required: false
          description: >-
            Filter by tenant external ID. Use "(No External ID)" to filter for
            tenants without an external ID.
          name: tenantExternalId
          in: query
      responses:
        '200':
          description: Status 200 response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            tenantExternalId:
                              type: string
                              nullable: true
                              description: The external ID of the tenant (business)
                            schemaDefinitionId:
                              type: string
                              format: uuid
                              description: The ID of the schema definition
                            schemaDefinitionName:
                              type: string
                              description: The name of the schema definition
                            count:
                              type: number
                              description: >-
                                The count of resources for this schema and
                                tenant
                          required:
                            - tenantExternalId
                            - schemaDefinitionId
                            - schemaDefinitionName
                            - count
                      pagination:
                        type: object
                        properties:
                          hasNextPage:
                            type: boolean
                          cursor:
                            type: string
                            nullable: true
                          total:
                            type: number
                        required:
                          - hasNextPage
                    required:
                      - results
                      - pagination
                required:
                  - success
        '400':
          description: Bad Request - Validation or request error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    default: false
                  message:
                    type: string
                    description: Error message describing what went wrong
                  errors:
                    type: array
                    items:
                      type: string
                    description: Optional array of specific validation errors
                required:
                  - message

````