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

# Get Service Line usage

> Returns metered usage and cost breakdown for a Service Line over a billing period.



## OpenAPI

````yaml GET /service-lines/{lin_code}/usage
openapi: 3.1.0
info:
  title: Scrums.com API
  version: 1.0.0
  description: >-
    The Scrums.com Software Engineering Orchestration Platform (SEOP) REST API.
    Every capability — talent, managed delivery, ODS, infrastructure,
    intelligence, and agents — operates through a Service Line (LIN-*). Base
    URL: https://api.scrums.com/v1
servers:
  - url: https://api.scrums.com/v1
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Service Lines
    description: Manage SEOP Service Lines (LIN-*) across all product types.
  - name: Organizations
    description: Top-level account containers (ORG-*).
  - name: Workspaces
    description: Team workspaces nested within an organization (WS-*).
  - name: AI Agent Gateway
    description: Trigger and monitor AI agent runs (AGT-*, RUN-*).
  - name: Observability & Metrics
    description: Health scores, risk signals, and delivery metrics.
  - name: ODS
    description: On-Demand Solutions scoping and request management.
  - name: Talent Marketplace
    description: Submit and manage vetted talent placement requests.
paths:
  /service-lines/{lin_code}/usage:
    get:
      tags:
        - Service Lines
      summary: Get service line usage metrics
      description: >-
        Returns metered usage and cost breakdown for a Service Line over a
        billing period.
      operationId: getServiceLineUsage
      parameters:
        - name: lin_code
          in: path
          required: true
          description: The unique identifier of the Service Line.
          schema:
            type: string
            pattern: ^LIN-
        - name: from
          in: query
          description: Start date for the usage period (YYYY-MM-DD).
          schema:
            type: string
            format: date
        - name: to
          in: query
          description: End date for the usage period (YYYY-MM-DD).
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Usage and cost metrics for the service line.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ServiceLineUsage'
              example:
                data:
                  service_line_id: LIN-26-084729
                  period:
                    from: '2026-03-01'
                    to: '2026-03-31'
                  metrics:
                    - metric: engineer_days
                      quantity: 40
                      unit: days
                      cost: 12000
                      currency: USD
                    - metric: ci_minutes
                      quantity: 8500
                      unit: minutes
                      cost: 85
                      currency: USD
                  total_cost: 12085
                  currency: USD
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    ServiceLineUsage:
      type: object
      properties:
        service_line_id:
          type: string
          example: LIN-26-084729
        period:
          type: object
          properties:
            from:
              type: string
              format: date
              example: '2026-03-01'
            to:
              type: string
              format: date
              example: '2026-03-31'
        metrics:
          type: array
          items:
            type: object
            properties:
              metric:
                type: string
                example: engineer_days
              quantity:
                type: number
                example: 40
              unit:
                type: string
                example: days
              cost:
                type: number
                example: 12000
              currency:
                type: string
                example: USD
        total_cost:
          type: number
          example: 12000
        currency:
          type: string
          example: USD
    Error:
      type: object
      required:
        - code
        - message
        - status
      properties:
        code:
          type: string
          example: not_found
        message:
          type: string
          example: The requested resource was not found.
        status:
          type: integer
          example: 404
  responses:
    BadRequest:
      description: The request was malformed or contained invalid parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: invalid_request
            message: workspace_id is required.
            status: 400
    Unauthorized:
      description: Missing or invalid authentication token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: unauthorized
            message: Bearer token is missing or expired.
            status: 401
    Forbidden:
      description: >-
        The authenticated principal does not have permission to perform this
        action.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: forbidden
            message: You do not have access to this resource.
            status: 403
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: not_found
            message: The requested resource was not found.
            status: 404
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````