> ## Documentation Index
> Fetch the complete documentation index at: https://conductorone-docs-terraform-v2-owner-resources.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get My Spend History

> Get the caller's settled AI spend history and current calendar-month totals.



## OpenAPI

````yaml https://spec.speakeasy.com/conductor-one/conductorone/my-source-with-code-samples get /api/v1/spend-insights/my/history
openapi: 3.1.0
info:
  description: The C1 API is a HTTP API for managing C1 resources.
  title: C1 API
  version: 0.1.0-alpha
servers:
  - description: The C1 API server for the current tenant.
    url: https://{tenantDomain}.conductor.one
    variables:
      tenantDomain:
        default: example
        description: The domain of the tenant to use for this request.
security:
  - bearerAuth: []
    oauth: []
paths:
  /api/v1/spend-insights/my/history:
    get:
      tags:
        - Spend Insights
      summary: Get My Spend History
      description: >-
        Get the caller's settled AI spend history and current calendar-month
        totals.
      operationId: c1.api.spendinsights.v1.SpendInsightsService.GetMySpendHistory
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/c1.api.spendinsights.v1.GetMySpendHistoryResponse
          description: >-
            GetMySpendHistoryResponse contains the caller's complete-day history
            and
             current calendar-month totals.
components:
  schemas:
    c1.api.spendinsights.v1.GetMySpendHistoryResponse:
      description: |-
        GetMySpendHistoryResponse contains the caller's complete-day history and
         current calendar-month totals.
      properties:
        currencyCode:
          description: Currency used for monetary values.
          type: string
        monthEnd:
          format: date-time
          type:
            - string
            - 'null'
        monthStart:
          format: date-time
          type:
            - string
            - 'null'
        reportingEnd:
          format: date-time
          type:
            - string
            - 'null'
        reportingStart:
          format: date-time
          type:
            - string
            - 'null'
        spentInRangeNano:
          description: Settled spend from reporting_start through reporting_end.
          format: int64
          type: string
        spentThisMonthNano:
          description: >-
            Settled spend from month_start through the current whole-second
            cutoff.
          format: int64
          type: string
        spentThroughYesterdayNano:
          description: Settled spend from month_start through reporting_end.
          format: int64
          type: string
        trajectory:
          description: Settled spend for each complete UTC day in the reporting range.
          items:
            $ref: >-
              #/components/schemas/c1.api.spendinsights.v1.MySpendTrajectoryPoint
          type:
            - array
            - 'null'
      title: Get My Spend History Response
      type: object
      x-speakeasy-name-override: GetMySpendHistoryResponse
    c1.api.spendinsights.v1.MySpendTrajectoryPoint:
      description: >-
        MySpendTrajectoryPoint represents the caller's settled spend for one UTC
        day.
      properties:
        consumedNano:
          description: >-
            Spend settled during the day, in billionths of the configured
            currency unit.
          format: int64
          type: string
        day:
          format: date-time
          type:
            - string
            - 'null'
      title: My Spend Trajectory Point
      type: object
      x-speakeasy-name-override: MySpendTrajectoryPoint
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http
    oauth:
      description: >-
        This API uses OAuth2 with the Client Credential flow.

        Client Credentials must be sent in the BODY, not the headers.

        For an example of how to implement this, refer to the
        [c1TokenSource.Token()](https://github.com/ConductorOne/conductorone-sdk-go/blob/3375fe7c0126d17e7ec4e711693dee7b791023aa/token_source.go#L101-L187)
        function.
      flows:
        clientCredentials:
          scopes: {}
          tokenUrl: /auth/v1/token
      type: oauth2

````