ThreatConnect Custommetrics API

The Custommetrics API from ThreatConnect — 1 operation(s) for custommetrics.

Operations 1

POST /v2/customMetrics/tasksCompleted/data Add content to the non‑keyed metric "tasksCompleted" #

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/threatconnect:threatconnect-custommetrics-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

threatconnect-custommetrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThreatConnect Custommetrics API
  version: '2026-10-14'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-14: 55 operation(s) read from 31 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; ThreatConnect has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 8
    documentation: 47
    pages-with-code: 5
    pages-read: 31
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-14'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.threatconnect.com/en/latest/rest_api/v2/tasks/tasks.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/groups/groups.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/victims/victims.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/batch_api/batch_api.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/playbooks/playbooks.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/attributes/attributes.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/indicators/indicators.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/notifications/notifications.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/custom_metrics/custom_metrics.html
  - https://docs.threatconnect.com/en/latest/rest_api/v2/security_labels/security_labels.html
  - https://docs.threatconnect.com/en/latest/rest_api/overview.html
  - https://docs.threatconnect.com/en/latest/rest_api/quick_start.html
  - https://docs.threatconnect.com/en/latest/rest_api/taxii/taxii_2.1.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/tc_exchange_administration/tc_exchange_administration.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/associations.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/bulk_delete.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/enable_pagination.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/filter_results.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/additional_fields.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/return_count.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/sort_results.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/specify_owner.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/update_metadata.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/case_management/artifacts/artifacts.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/case_management/case_attributes/case_attributes.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/case_management/cases/cases.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/case_management/workflow_templates/workflow_templates.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/group_attributes/group_attributes.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/groups/groups.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/indicator_attributes/indicator_attributes.html
  - https://docs.threatconnect.com/en/latest/rest_api/v3/indicator_enrichment/indicator_enrichment.html
servers:
- url: https://companyabc.threatconnect.com
security:
- TC-Token: []
tags:
- name: Custommetrics
paths:
  /v2/customMetrics/tasksCompleted/data:
    post:
      operationId: post_v2_customMetrics_tasksCompleted_data
      tags:
      - Custommetrics
      summary: Add content to the non‑keyed metric "tasksCompleted"
      x-source: https://docs.threatconnect.com/en/latest/rest_api/v2/custom_metrics/custom_metrics.html
      parameters:
      - name: returnValue
        in: query
        required: false
        schema:
          type: boolean
        description: If true, the API returns a 200 status with the current metric value instead of a 204.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostV2CustommetricsTaskscompletedDataRequest'
      responses:
        '204':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV2CustommetricsTaskscompletedDataResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    PostV2CustommetricsTaskscompletedDataRequest:
      type: object
      properties:
        value:
          type: integer
          description: The value to add to the non‑keyed metric. Not required if the metric’s data type is Count.
        date:
          type: string
          description: The date and time when the provided value was added to the metric (ISO‑8601). If omitted, defaults to today’s date.
        weight:
          type: integer
          description: The weight of the provided value.
      required:
      - value
    PostV2CustommetricsTaskscompletedDataResponse:
      type: object
      properties:
        value:
          type: number
          description: The current value of the metric (present when returnValue=true).
        date:
          type: string
          description: The timestamp of the metric value (minutes and seconds set to 00).
  securitySchemes:
    TC-Token:
      type: apiKey
      in: header
      name: Authorization
      x-source: https://docs.threatconnect.com/en/latest/tcex/authorization.html