Codecov · Schema

BranchDetail

CompanyCode CoverageCI/CDDevOpsTestingAnalytics

Properties

Name Type Description
name string
updatestamp string
head_commit object
View JSON Schema on GitHub

JSON Schema

codecov-branch-detail-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/codecov/main/json-schema/codecov-branch-detail-schema.json",
  "title": "BranchDetail",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codecov-branches-api-openapi.yml#/components/schemas/BranchDetail",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "title": "branch name"
    },
    "updatestamp": {
      "type": "string",
      "format": "date-time",
      "title": "last updated timestamp"
    },
    "head_commit": {
      "allOf": [
        {
          "$ref": "#/$defs/CommitDetail"
        }
      ],
      "readOnly": true,
      "title": "branch's current head commit"
    }
  },
  "required": [
    "head_commit",
    "name",
    "updatestamp"
  ],
  "$defs": {
    "CommitDetail": {
      "type": "object",
      "properties": {
        "commitid": {
          "type": "string",
          "title": "commit SHA"
        },
        "message": {
          "type": "string",
          "title": "commit message"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "title": "timestamp when commit was made"
        },
        "ci_passed": {
          "type": "boolean",
          "title": "indicates whether the CI process passed for this commit"
        },
        "author": {
          "allOf": [
            {
              "$ref": "#/$defs/Owner"
            }
          ],
          "title": "author of the commit"
        },
        "branch": {
          "type": "string",
          "title": "branch name on which this commit currently lives"
        },
        "totals": {
          "allOf": [
            {
              "$ref": "#/$defs/CommitTotals"
            }
          ],
          "title": "coverage totals"
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/StateB73Enum"
            }
          ],
          "title": "Codecov processing state for this commit"
        },
        "parent": {
          "type": "string",
          "title": "commit SHA of first ancestor commit with coverage"
        },
        "report": {
          "allOf": [
            {
              "$ref": "#/$defs/Report"
            }
          ],
          "title": "coverage report"
        }
      },
      "required": [
        "author",
        "branch",
        "ci_passed",
        "commitid",
        "message",
        "parent",
        "report",
        "state",
        "timestamp",
        "totals"
      ]
    },
    "CommitTotals": {
      "type": "object",
      "properties": {
        "files": {
          "type": "integer"
        },
        "lines": {
          "type": "integer"
        },
        "hits": {
          "type": "integer"
        },
        "misses": {
          "type": "integer"
        },
        "partials": {
          "type": "integer"
        },
        "coverage": {
          "type": "number",
          "format": "double",
          "readOnly": true
        },
        "branches": {
          "type": "integer"
        },
        "methods": {
          "type": "integer"
        },
        "sessions": {
          "type": "integer"
        },
        "complexity": {
          "type": "number",
          "format": "double"
        },
        "complexity_total": {
          "type": "number",
          "format": "double"
        },
        "complexity_ratio": {
          "type": "number",
          "format": "double",
          "readOnly": true
        },
        "diff": {
          "type": "integer",
          "readOnly": true,
          "title": "Deprecated: this will always return 0.  Please use comparison endpoint for diff totals instead."
        }
      },
      "required": [
        "branches",
        "complexity",
        "complexity_ratio",
        "complexity_total",
        "coverage",
        "diff",
        "files",
        "hits",
        "lines",
        "methods",
        "misses",
        "partials",
        "sessions"
      ]
    },
    "Owner": {
      "type": "object",
      "properties": {
        "service": {
          "allOf": [
            {
              "$ref": "#/$defs/ServiceEnum"
            }
          ],
          "readOnly": true
        },
        "username": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        }
      },
      "required": [
        "name",
        "service",
        "username"
      ]
    },
    "Report": {
      "type": "object",
      "properties": {
        "totals": {
          "allOf": [
            {
              "$ref": "#/$defs/ReportTotals"
            }
          ],
          "title": "coverage totals"
        },
        "files": {
          "allOf": [
            {
              "$ref": "#/$defs/ReportFile"
            }
          ],
          "readOnly": true,
          "title": "file specific coverage totals"
        }
      },
      "required": [
        "files",
        "totals"
      ]
    },
    "ReportFile": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "file path"
        },
        "totals": {
          "allOf": [
            {
              "$ref": "#/$defs/ReportTotals"
            }
          ],
          "title": "coverage totals"
        },
        "line_coverage": {
          "type": "array",
          "items": {},
          "readOnly": true,
          "title": "line-by-line coverage values"
        }
      },
      "required": [
        "line_coverage",
        "name",
        "totals"
      ]
    },
    "ReportTotals": {
      "type": "object",
      "properties": {
        "files": {
          "type": "integer"
        },
        "lines": {
          "type": "integer"
        },
        "hits": {
          "type": "integer"
        },
        "misses": {
          "type": "integer"
        },
        "partials": {
          "type": "integer"
        },
        "coverage": {
          "type": "number",
          "format": "double",
          "readOnly": true
        },
        "branches": {
          "type": "integer"
        },
        "methods": {
          "type": "integer"
        },
        "messages": {
          "type": "integer"
        },
        "sessions": {
          "type": "integer"
        },
        "complexity": {
          "type": "number",
          "format": "double"
        },
        "complexity_total": {
          "type": "number",
          "format": "double"
        },
        "complexity_ratio": {
          "type": "number",
          "format": "double",
          "readOnly": true
        },
        "diff": {}
      },
      "required": [
        "branches",
        "complexity",
        "complexity_ratio",
        "complexity_total",
        "coverage",
        "diff",
        "files",
        "hits",
        "lines",
        "messages",
        "methods",
        "misses",
        "partials",
        "sessions"
      ]
    },
    "ServiceEnum": {
      "enum": [
        "github",
        "gitlab",
        "bitbucket",
        "github_enterprise",
        "gitlab_enterprise",
        "bitbucket_server"
      ],
      "type": "string",
      "description": "* `github` - Github\n* `gitlab` - Gitlab\n* `bitbucket` - Bitbucket\n* `github_enterprise` - Github Enterprise\n* `gitlab_enterprise` - Gitlab Enterprise\n* `bitbucket_server` - Bitbucket Server"
    },
    "StateB73Enum": {
      "enum": [
        "complete",
        "pending",
        "error",
        "skipped"
      ],
      "type": "string",
      "description": "* `complete` - Complete\n* `pending` - Pending\n* `error` - Error\n* `skipped` - Skipped"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/codecov-branch-detail"
All schemas
curl "https://apis.io/api/v1/json-schemas?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.