Cachet Metric Points API

The Metric Points API from Cachet — 2 operation(s) for metric points.

GitHub OpenAPI

Operations 4

GET /metrics/{metric}/points List Metric Points #
POST /metrics/{metric}/points Create Metric Point #
GET /metrics/{metric}/points/{metricPoint} Get Metric Point #
DELETE /metrics/{metric}/points/{metricPoint} Delete Metric Point #

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/cachethq:cachethq-metric-points-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

cachethq-metric-points-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cachethq Metric Points API
  version: 0.0.1
  description: 'Operations tagged Metric Points across 2 of this provider''s published API definitions: cachethq-openapi.json, openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:8001/api
- url: https://v3.cachethq.io/api
  description: The Cachet v3 demo server.
security:
- http: []
tags:
- name: Metric Points
paths:
  /metrics/{metric}/points:
    get:
      operationId: cachet.api.metrics.points.index
      summary: List Metric Points
      tags:
      - Metric Points
      parameters:
      - name: metric
        in: path
        required: true
        description: The metric ID
        schema:
          type: integer
      - name: per_page
        in: query
        description: How many items to show per page.
        schema:
          type: integer
          default: 15
        example: 20
      - name: page
        in: query
        description: Which page to show.
        schema:
          type: integer
        example: 2
      - name: sort
        in: query
        schema:
          type: array
          items:
            type: string
            enum:
            - id
            - -id
            - value
            - -value
            - created_at
            - -created_at
        explode: false
      - name: include
        in: query
        schema:
          type: array
          items:
            type: string
            enum:
            - metric
            - metricCount
            - metricExists
        explode: false
      responses:
        '200':
          description: Paginated set of `MetricPoint`
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/MetricPoint'
                  links:
                    type: object
                    properties:
                      first:
                        type: string
                      last:
                        type: string
                      prev:
                        type: string
                      next:
                        type: string
                  meta:
                    type: object
                    properties:
                      current_page:
                        type: integer
                        minimum: 1
                      from:
                        type:
                        - integer
                        - 'null'
                        minimum: 1
                      path:
                        type:
                        - string
                        - 'null'
                        description: Base path for paginator generated URLs.
                      per_page:
                        type: integer
                        description: Number of items shown per page.
                        minimum: 0
                      to:
                        type:
                        - integer
                        - 'null'
                        description: Number of the last item in the slice.
                        minimum: 1
                    required:
                    - current_page
                    - from
                    - path
                    - per_page
                    - to
                  included:
                    type: array
                    items:
                      $ref: '#/components/schemas/Metric'
                required:
                - data
                - links
                - meta
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error overview.
                required:
                - message
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
      security: []
    post:
      operationId: cachet.api.metrics.points.store
      summary: Create Metric Point
      tags:
      - Metric Points
      parameters:
      - name: metric
        in: path
        required: true
        description: The metric ID
        schema:
          type: integer
      requestBody:
        description: '`CreateMetricPointRequestData`'
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMetricPointRequestData'
      responses:
        '201':
          description: '`MetricPoint`'
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/MetricPoint'
                  included:
                    type: array
                    items:
                      $ref: '#/components/schemas/Metric'
                required:
                - data
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error overview.
                required:
                - message
        '403':
          $ref: '#/components/responses/MissingAbilityException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '401':
          $ref: '#/components/responses/AuthenticationException'
        '422':
          $ref: '#/components/responses/ValidationException'
    servers:
    - url: http://localhost:8001/api
    - url: https://v3.cachethq.io/api
      description: The Cachet v3 demo server.
  /metrics/{metric}/points/{metricPoint}:
    get:
      operationId: cachet.api.metrics.points.show
      summary: Get Metric Point
      tags:
      - Metric Points
      parameters:
      - name: metric
        in: path
        required: true
        description: The metric ID
        schema:
          type: integer
      - name: metricPoint
        in: path
        required: true
        description: The metric point ID
        schema:
          type: integer
      - name: include
        in: query
        schema:
          type: array
          items:
            type: string
            enum:
            - metric
            - metricCount
            - metricExists
        explode: false
      responses:
        '200':
          description: '`MetricPoint`'
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/MetricPoint'
                  included:
                    type: array
                    items:
                      $ref: '#/components/schemas/Metric'
                required:
                - data
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error overview.
                required:
                - message
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
      security: []
    delete:
      operationId: cachet.api.metrics.points.destroy
      summary: Delete Metric Point
      tags:
      - Metric Points
      parameters:
      - name: metric
        in: path
        required: true
        description: The metric ID
        schema:
          type: integer
      - name: metricPoint
        in: path
        required: true
        description: The metric point ID
        schema:
          type: integer
      responses:
        '204':
          description: No content
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Error overview.
                required:
                - message
        '403':
          $ref: '#/components/responses/MissingAbilityException'
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
        '401':
          $ref: '#/components/responses/AuthenticationException'
    servers:
    - url: http://localhost:8001/api
    - url: https://v3.cachethq.io/api
      description: The Cachet v3 demo server.
components:
  responses:
    ValidationException:
      description: Validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Errors overview.
              errors:
                type: object
                description: A detailed description of each field that failed validation.
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
            - message
            - errors
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
            - message
    AuthenticationException:
      description: Unauthenticated
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
            - message
    MissingAbilityException:
      description: Authorization error
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
            - message
  schemas:
    MetricPoint:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
          - metricPoints
        attributes:
          type: object
          properties:
            id:
              type: integer
            metric_id:
              type: integer
            calculated_value:
              type: number
            value:
              type: number
            counter:
              type: integer
            created:
              type: object
              properties:
                human:
                  type:
                  - string
                  - 'null'
                string:
                  type:
                  - string
                  - 'null'
              required:
              - human
              - string
            updated:
              type: object
              properties:
                human:
                  type:
                  - string
                  - 'null'
                string:
                  type:
                  - string
                  - 'null'
              required:
              - human
              - string
          required:
          - id
          - metric_id
          - calculated_value
          - value
          - counter
          - created
          - updated
        relationships:
          type: object
          properties:
            metric:
              type: object
              properties:
                data:
                  anyOf:
                  - $ref: '#/components/schemas/MetricIdentifier'
                  - type: 'null'
              required:
              - data
      required:
      - id
      - type
      title: MetricPoint
    MetricViewEnum:
      type: integer
      enum:
      - 0
      - 1
      - 2
      - 3
      title: MetricViewEnum
    Metric:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
          - metrics
        attributes:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
            suffix:
              type: string
            description:
              type:
              - string
              - 'null'
            default_value:
              type:
              - object
              - 'null'
            calc_type:
              $ref: '#/components/schemas/MetricTypeEnum'
            display_chart:
              type: integer
            places:
              type: integer
            default_view:
              $ref: '#/components/schemas/MetricViewEnum'
            threshold:
              type: integer
            order:
              type: integer
            visible:
              $ref: '#/components/schemas/ResourceVisibilityEnum'
            created:
              type: object
              properties:
                human:
                  type:
                  - string
                  - 'null'
                string:
                  type:
                  - string
                  - 'null'
              required:
              - human
              - string
            updated:
              type: object
              properties:
                human:
                  type:
                  - string
                  - 'null'
                string:
                  type:
                  - string
                  - 'null'
              required:
              - human
              - string
          required:
          - id
          - name
          - suffix
          - description
          - default_value
          - calc_type
          - display_chart
          - places
          - default_view
          - threshold
          - order
          - visible
          - created
          - updated
        relationships:
          type: object
          properties:
            points:
              type: object
              properties:
                data:
                  type: array
                  items:
                    $ref: '#/components/schemas/MetricPointIdentifier'
              required:
              - data
            tags:
              type: object
              properties:
                data:
                  type: array
                  items:
                    $ref: '#/components/schemas/TagIdentifier'
              required:
              - data
      required:
      - id
      - type
      title: Metric
    CreateMetricPointRequestData:
      type: object
      properties:
        value:
          type: number
        timestamp:
          type:
          - string
          - 'null'
          format: date-time
      required:
      - value
      title: CreateMetricPointRequestData
    ResourceVisibilityEnum:
      type: integer
      enum:
      - 0
      - 1
      - 2
      title: ResourceVisibilityEnum
    MetricPointIdentifier:
      type: object
      properties:
        type:
          type: string
          enum:
          - metricPoints
        id:
          type: string
      required:
      - type
      - id
      title: MetricPointIdentifier
    TagIdentifier:
      type: object
      properties:
        type:
          type: string
          enum:
          - tags
        id:
          type: string
      required:
      - type
      - id
      title: TagIdentifier
    MetricTypeEnum:
      type: integer
      enum:
      - 0
      - 1
      title: MetricTypeEnum
    MetricIdentifier:
      type: object
      properties:
        type:
          type: string
          enum:
          - metrics
        id:
          type: string
      required:
      - type
      - id
      title: MetricIdentifier
  securitySchemes:
    http:
      type: http
      scheme: bearer
x-refined-from:
- cachethq-openapi.json
- openapi.json