> ## 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.

# Get Subscription Usage For Current Period

> Retrieve the usage for the current period of the subscription for a specific billable item



## OpenAPI

````yaml https://api.getmeasure.com/api/v1/docs/api_spec.json POST /companies/{company_id}/subscriptions/{id}/current_period_usage
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}/subscriptions/{id}/current_period_usage:
    post:
      tags:
        - Subscriptions
      summary: Get Subscription Usage for Current Period
      description: >-
        Retrieve the usage for the current period of the subscription for a
        specific billable item
      operationId: Get_Subscription_Usage_for_Current_Period
      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: id
          in: path
          description: The resource ID
          required: true
          schema:
            description: The resource ID
            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/RequestSubscriptionCurrentPeriodUsageRequest
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseSubscriptionCurrentPeriodUsage'
      deprecated: false
      security:
        - apiKey:
            - ''
components:
  schemas:
    RequestSubscriptionCurrentPeriodUsageRequest:
      properties:
        item_id:
          description: The specific item for which usage is being requested
          type: string
      required:
        - item_id
      type: object
    ResponseSubscriptionCurrentPeriodUsage:
      properties:
        additional_available_credit_units:
          description: The total credits available for the billable item
          type: number
        used_count_by_metric_id:
          additionalProperties:
            type: string
          description: >-
            The total usage of metrics for the billable item in the current
            billing period of the subscription
          type:
            - object
            - 'null'
      type: object
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````