Laurel Metrics API

The Metrics API from Laurel — 3 operation(s) for metrics.

Operations 3

GET /api/v1/customers/{customerId}/metrics/entry Customer metrics controller get entry metrics v1 #
GET /api/v1/metrics/entry-release Metrics controller get entry release metrics v1 #
GET /api/v1/metrics/entry-work-dates Returns the work dates on which the current user has entries for the given… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/laurel-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

laurel-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Time Service Metrics API
  description: ''
  version: '1'
  contact: {}
servers: []
security:
- ApiBearerAuth: []
tags:
- name: Metrics
paths:
  /api/v1/customers/{customerId}/metrics/entry:
    get:
      operationId: CustomerMetricsController_getEntryMetrics_v1
      parameters:
      - name: customerId
        required: true
        in: path
        description: customer id
        schema:
          format: objectid
          type: string
      - name: startDate
        required: true
        in: query
        schema:
          format: iso-date
          example: '2022-08-12'
          type: string
      - name: endDate
        required: true
        in: query
        schema:
          format: iso-date
          example: '2022-08-12'
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntryCustomerMetricsResponseDto'
      tags:
      - Metrics
      summary: Customer metrics controller get entry metrics v1
      x-summary-source: derived
  /api/v1/metrics/entry-release:
    get:
      operationId: MetricsController_getEntryReleaseMetrics_v1
      parameters:
      - name: date
        required: true
        in: query
        schema:
          format: iso-date
          example: '2022-08-12'
          type: string
      - name: timePeriod
        required: true
        in: query
        schema:
          type: string
          enum:
          - day
          - week
          - month
          - year
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntryReleaseMetricsWithGoalResponseDto'
      tags:
      - Metrics
      summary: Metrics controller get entry release metrics v1
      x-summary-source: derived
  /api/v1/metrics/entry-work-dates:
    get:
      operationId: MetricsController_getEntryWorkDatesByInitiative_v1
      parameters:
      - name: initiativeId
        required: true
        in: query
        description: initiative id whose entry work dates are being requested
        schema:
          format: objectid
          type: string
      - name: workDateStart
        required: true
        in: query
        description: inclusive lower bound for entry work dates
        schema:
          format: iso-date
          example: '2022-08-12'
          type: string
      - name: workDateEnd
        required: true
        in: query
        description: inclusive upper bound for entry work dates
        schema:
          format: iso-date
          example: '2022-08-12'
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EntryWorkDateByInitiativeResponseDto'
      summary: Returns the work dates on which the current user has entries for the given…
      tags:
      - Metrics
components:
  schemas:
    Metrics:
      type: object
      properties:
        releasedInSeconds:
          type: number
          description: Released in seconds
          format: int64
          minimum: 0
        unreleasedInSeconds:
          type: number
          description: Released in seconds
          format: int64
          minimum: 0
      required:
      - releasedInSeconds
      - unreleasedInSeconds
    EntryWorkDateByInitiativeResponseDto:
      type: object
      properties:
        workDate:
          type: string
          description: ISO calendar date (YYYY-MM-DD) on which the user logged time for this initiative.
        totalSeconds:
          type: number
          description: Total time the user logged for this initiative on workDate, in seconds.
          format: int64
      required:
      - workDate
      - totalSeconds
    EntryCustomerMetricsResponseDto:
      type: object
      properties:
        startDate:
          type: string
          example: '2022-08-12'
          format: iso-date
        endDate:
          type: string
          example: '2022-08-12'
          format: iso-date
        unreleasedTimeInSeconds:
          type: number
          format: int64
        releasePendingTimeInSeconds:
          type: number
          format: int64
        releasedTimeInSeconds:
          type: number
          format: int64
      required:
      - startDate
      - endDate
      - unreleasedTimeInSeconds
      - releasePendingTimeInSeconds
      - releasedTimeInSeconds
    EntryReleaseMetricsWithGoalResponseDto:
      type: object
      properties:
        billableProjectionInSeconds:
          type: number
          description: Projection in seconds
          format: int64
          minimum: 0
        billableGoalInSeconds:
          type: number
          description: Goal in seconds
          format: int64
        billable:
          description: Metrics for entries with billable initiatives
          allOf:
          - $ref: '#/components/schemas/Metrics'
        nonBillable:
          description: Metrics for entries with nonBillable initiatives
          allOf:
          - $ref: '#/components/schemas/Metrics'
      required:
      - billable
      - nonBillable
  securitySchemes:
    ApiBearerAuth:
      scheme: bearer
      bearerFormat: JWT
      description: Enter access token
      type: http
externalDocs:
  description: Laurel API Documentation
  url: https://developer.laurel.ai/