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

# Find Billable Metrics

> Find billable metrics



## OpenAPI

````yaml https://api.getmeasure.com/api/v1/docs/api_spec.json post /companies/{company_id}/billable_metrics/find
openapi: 3.1.0
info:
  title: Measure API
  description: APIs to communicate with Measure
  version: 1.0.0
servers:
  - url: https://api.getmeasure.com/api/v1
security: []
paths:
  /companies/{company_id}/billable_metrics/find:
    post:
      tags:
        - Pricing
      summary: Find Billable Metrics
      description: Find billable metrics
      operationId: Find_Billable_Metrics
      parameters:
        - name: company_id
          in: path
          description: 'The company ID with the prefix ''cmp_''. '
          required: true
          schema:
            description: 'The company ID with the prefix ''cmp_''. '
            type: string
        - name: Idempotency-Key
          in: header
          description: >-
            The idempotency key that will be used to ensure the request is only
            performed once
          schema:
            description: >-
              The idempotency key that will be used to ensure the request is
              only performed once
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestFindBillableMetricsRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseFindBillableMetricsResponse'
      deprecated: false
      security:
        - apiKey:
            - ''
components:
  schemas:
    RequestFindBillableMetricsRequest:
      properties:
        include_meta:
          description: >-
            Whether to include additional metadata in the pagination response
            such the number of total results
          type:
            - boolean
            - 'null'
        pagination:
          $ref: '#/components/schemas/RequestPaginationRequest'
          description: The pagination parameters for the request
        query:
          $ref: '#/components/schemas/RequestFindBillableMetricsQueryCriteria'
          description: The query criteria for the request
        sort_key:
          default: createdAtDesc
          enum:
            - createdAtDesc
            - createdAtAsc
            - updatedAtAsc
            - updatedAtDesc
          type: string
      required:
        - sort_key
        - pagination
      type: object
    ResponseFindBillableMetricsResponse:
      properties:
        pagination:
          $ref: '#/components/schemas/ResponsePaginationResponse'
        results:
          items:
            $ref: '#/components/schemas/ResponseBillableMetricRepresentation'
          type:
            - array
            - 'null'
      type: object
    RequestPaginationRequest:
      description: The pagination parameters for the request
      properties:
        from_key:
          type:
            - 'null'
            - string
        limit:
          default: 20
          format: int64
          maximum: 200
          minimum: 0
          type: integer
      type: object
    RequestFindBillableMetricsQueryCriteria:
      properties:
        external_name:
          type:
            - 'null'
            - string
        item_id:
          type:
            - 'null'
            - string
        name:
          type:
            - 'null'
            - string
        state:
          type:
            - 'null'
            - string
      type:
        - object
        - 'null'
    ResponsePaginationResponse:
      properties:
        from_key:
          type:
            - 'null'
            - string
        limit:
          format: int64
          type: integer
      type: object
    ResponseBillableMetricRepresentation:
      properties:
        company_id:
          description: The company ID for the billable metric
          type: string
        created_at:
          description: The date the billable metric was created
          format: date-time
          type: string
        description:
          description: Any description attached to the billable metric
          type: string
        editable:
          description: Whether the billable metric can be further edited
          type: boolean
        external_name:
          description: The public name of the billable metric
          type: string
        id:
          description: The ID of the billable metric in Measure
          type: string
        is_billable:
          description: Whether this is a billable metric
          type: boolean
        item_id:
          description: The billable item this metric is tied to
          type: string
        metering_rule:
          $ref: '#/components/schemas/ModelMeteringRule'
          description: JSON representation of the metering rule associated with the metric
        name:
          description: The name of the billable metric
          type: string
        standard:
          description: >-
            Whether this is a standard billable metric in Measure or a custom
            billable metric
          type: boolean
        state:
          description: The state of the metric which can be one of ACTIVE or ARCHIVED
          type: string
        type:
          description: >-
            The type of the billable metric which can be one of LICENSE_METRIC,
            ONETIME_METRIC or CUSTOM_METRIC depending if it is a standard
            billable metric in Measure or a custom metric
          type: string
        updated_at:
          description: The date the billable metric was last updated
          format: date-time
          type: string
      type: object
    ModelMeteringRule:
      properties:
        aggregator:
          type: string
        group_keys:
          items:
            type: string
          type:
            - array
            - 'null'
        property:
          type: string
        rule:
          $ref: '#/components/schemas/ModelMatchingRule'
      type: object
    ModelMatchingRule:
      properties:
        comparator:
          $ref: '#/components/schemas/ModelMatchingRuleComparator'
      type: object
    ModelMatchingRuleComparator:
      properties:
        items:
          items:
            $ref: '#/components/schemas/ModelMatchingRule'
          type: array
        left_item:
          $ref: '#/components/schemas/ModelMatchingRuleItem'
        right_item:
          $ref: '#/components/schemas/ModelMatchingRuleItem'
        type:
          type: string
      type: object
    ModelMatchingRuleItem:
      properties:
        comparator:
          $ref: '#/components/schemas/ModelMatchingRuleComparator'
        item_type:
          type: string
        property:
          type: string
        value:
          type: string
      type: object
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````